예제 #1
0
    public void RemoveMarkerAt(int markerIndex)
    {
        if (OnRemoveMarkerAt != null && OnRemoveMarkerAt(markerIndex))
        {
            return;
        }

        OnlineMapsMarker marker = OnlineMapsMarkerManager.RemoveItemAt(markerIndex);

        if (marker != null)
        {
            marker.Dispose();
        }
        Redraw();
    }
예제 #2
0
    public override void graphicReset()
    {
        if (marker2D != null)
        {
            marker2D.Dispose();
        }

        if (marker3D != null)
        {
            marker3D.Dispose();
        }

        marker2D = null;
        marker3D = null;
    }
예제 #3
0
    public void RemoveMarker(OnlineMapsMarker marker, bool disposeMarker = true)
    {
        if (OnRemoveMarker != null && OnRemoveMarker(marker))
        {
            return;
        }

        OnlineMapsMarkerManager.RemoveItem(marker);
        if (disposeMarker)
        {
            marker.Dispose();
        }

        Redraw();
    }