Exemple #1
0
 private void MapViewer_OnMarkerEnter(GMapMarker item)
 {
     if (!markerClicked)
     {
         currentMarker = (GMarkerImage)item;
     }
 }
Exemple #2
0
        public void addMarker(int tag, double lat, double lng)
        {
            GMarkerImage marker = new GMarkerImage(new PointLatLng(lat, lng), MiREV.Properties.Resources.marker);

            marker.Tag = tag;
            markerOverlay.Markers.Add(marker);
        }
Exemple #3
0
        public void MarkerImageSwitch(GMarkerImage marker)
        {
            if (previouMarker != null)
            {
                previouMarker.markerChange(MiREV.Properties.Resources.marker, 0);
            }
            previouMarker = marker;
            marker.markerChange(MiREV.Properties.Resources.image, -15);

            gMapControl.Position = new PointLatLng(marker.Position.Lat, marker.Position.Lng);
        }
Exemple #4
0
        public void addMarker(int tag, PointLatLng point, int markerType)
        {
            GMarkerImage marker;

            switch (markerType)
            {
            case 0:
                marker     = new GMarkerImage(point, MiREV.Properties.Resources.marker);
                marker.Tag = tag;
                markerOverlay.Markers.Add(marker);
                break;

            case 1:
                marker     = new GMarkerImage(point, MiREV.Properties.Resources.image);
                marker.Tag = tag;
                markerOverlay.Markers.Add(marker);
                break;
            }

            marker     = new GMarkerImage(point, MiREV.Properties.Resources.marker);
            marker.Tag = tag;
            markerOverlay.Markers.Add(marker);
        }
Exemple #5
0
 private void MapViewer_MouseUp(object sender, MouseEventArgs e)
 {
     currentMarker = null;
     markerClicked = false;
 }