public void RemoveMarkerAt(int markerIndex) { if (OnRemoveMarkerAt != null && OnRemoveMarkerAt(markerIndex)) { return; } OnlineMapsMarker marker = OnlineMapsMarkerManager.RemoveItemAt(markerIndex); if (marker != null) { marker.Dispose(); } Redraw(); }
public override void graphicReset() { if (marker2D != null) { marker2D.Dispose(); } if (marker3D != null) { marker3D.Dispose(); } marker2D = null; marker3D = null; }
public void RemoveMarker(OnlineMapsMarker marker, bool disposeMarker = true) { if (OnRemoveMarker != null && OnRemoveMarker(marker)) { return; } OnlineMapsMarkerManager.RemoveItem(marker); if (disposeMarker) { marker.Dispose(); } Redraw(); }