コード例 #1
0
ファイル: POI.cs プロジェクト: brianlsharp/MissionPlanner
        public static void UpdateOverlay(GMap.NET.WindowsForms.GMapOverlay poioverlay, bool showSuspectReadings, bool showReacs)
        {
            if (poioverlay == null)
            {
                return;
            }

            poioverlay.Clear();

            foreach (var pnt in POIs)
            {
                GMarkerGoogle marker = null;
                if (pnt.export)
                {
                    marker = new GMarkerGoogle(pnt, GMarkerGoogleType.red_small);
                }
                else // not exporting this poi
                {
                    if (pnt.groundTruth)
                    {
                        marker = new GMarkerGoogle(pnt, GMarkerGoogleType.green_dot);
                    }
                    else if (pnt.suspectReading)
                    {
                        if (showSuspectReadings)
                        {
                            marker = new GMarkerGoogle(pnt, GMarkerGoogleType.blue_small);
                        }
                    }
                    else if (pnt.isReac)
                    {
                        if (showReacs)
                        {
                            marker = new GMarkerGoogle(pnt, GMarkerGoogleType.green_small);
                        }
                    }
                    else if (pnt.neutralized)
                    {
                        marker = new GMarkerGoogle(pnt, GMarkerGoogleType.red_pushpin);
                    }
                    else
                    {
                        marker = new GMarkerGoogle(pnt, GMarkerGoogleType.yellow_small);
                    }
                }

                if (marker != null)
                {
                    marker.ToolTipMode = MarkerTooltipMode.OnMouseOver;
                    marker.ToolTipText = pnt.Tag;
                    poioverlay.Markers.Add(marker);
                }
            }
        }
コード例 #2
0
        public static void UpdateOverlay(GMap.NET.WindowsForms.GMapOverlay poioverlay)
        {
            poioverlay.Clear();

            foreach (var pnt in POIs)
            {
                poioverlay.Markers.Add(new GMarkerGoogle(pnt, GMarkerGoogleType.red_dot)
                {
                    ToolTipMode = MarkerTooltipMode.OnMouseOver, ToolTipText = pnt.Tag
                });
            }
        }
コード例 #3
0
        public static void UpdateOverlay(GMap.NET.WindowsForms.GMapOverlay poioverlay)
        {
            if (poioverlay == null)
            {
                return;
            }

            poioverlay.Clear();

            foreach (var pnt in POIs)
            {
                poioverlay.Markers.Add(new GMapMarkerPOI(pnt)
                {
                    ToolTipMode = MarkerTooltipMode.OnMouseOver,
                    ToolTipText = pnt.Tag
                });
            }
        }