private void MapViewer_OnMarkerEnter(GMapMarker item) { if (!markerClicked) { currentMarker = (GMarkerImage)item; } }
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); }
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); }
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); }
private void MapViewer_MouseUp(object sender, MouseEventArgs e) { currentMarker = null; markerClicked = false; }