/** * 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(); }
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(); }
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); }); }
public void RemoveAllMarker3D() { OnlineMapsMarker3DManager.RemoveAllItems(); }