private void clearMap() { _drawedStation.Clear(); markersOverlay.Clear(); routerOverlay.Clear(); currentMarker = null; }
void gmap_OnMarkerClick(GMapMarker item, MouseEventArgs e) { if (_currentKeyDown == Keys.A) { currentMarker = item as StationMaker; } }
private void drawStation(List <int> listStation, int routerId = -1, int turn = 0) { for (int i = 0; i < listStation.Count; i++) { Station currentStation = _listStation[listStation[i]]; // avoid duplicate StationMaker if (_drawedStation.Contains(currentStation.StationId)) { continue; } StationMaker maker = new StationMaker(currentStation.LatLong.Latitude, currentStation.LatLong.Longitude); maker.StationId = currentStation.StationId; maker.RouterId = routerId; maker.Turn = turn; markersOverlay.Markers.Add(maker); _drawedStation.Add(currentStation.StationId); } }