Exemplo n.º 1
0
    /**
     * Reset the map content, remove the data structure and leave the map ready
     * for a new point data set
     * */
    public void reset()
    {
        //Debug.Log("llamando reset");
        clusterManager.reset();
        //clusterManager = new ClusterManager();

        if (!maintainPoints)
        {
            for (int i = 0; i < points.Count; i++)
            {
                points[i].reset();
            }

            points.Clear();
            propertyManager.resetPropertyValues();

            setMaintainPoints(false);
        }

        //points.RemoveRange(0, points.Count);
        OnlineMapsMarker3DManager.RemoveAllItems();
        OnlineMapsMarkerManager.RemoveAllItems();

        positionsGroup.Clear();
        resetFilters();
        removeAllRelations();
        //removeAllClusters();
    }
Exemplo n.º 2
0
    public void RemoveAllMarker3D()
    {
        for (int i = 0; i < OnlineMapsMarker3DManager.instance.Count; i++)
        {
            OnlineMapsMarker3D marker = OnlineMapsMarker3DManager.instance[i];
            if (marker.instance != null)
            {
                OnlineMapsUtils.Destroy(marker.instance);
            }
            marker.Dispose();
        }

        OnlineMapsMarker3DManager.RemoveAllItems();
    }
Exemplo n.º 3
0
    public void RemoveMarkers3DByTag(params string[] tags)
    {
        if (tags.Length == 0)
        {
            return;
        }

        OnlineMapsMarker3DManager.RemoveAllItems(m =>
        {
            if (m.tags == null || m.tags.Count == 0)
            {
                return(false);
            }
            for (int j = 0; j < tags.Length; j++)
            {
                if (m.tags.Contains(tags[j]))
                {
                    return(true);
                }
            }
            return(false);
        });
    }
Exemplo n.º 4
0
 public void RemoveAllMarker3D()
 {
     OnlineMapsMarker3DManager.RemoveAllItems();
 }