public void RemoveTilesFromLayer(VectorTileFactory factory, LayerVisualizerBase layerVisualizer)
 {
     foreach (KeyValuePair <UnwrappedTileId, UnityTile> tileBundle in _activeTiles)
     {
         factory.UnregisterLayer(tileBundle.Value, layerVisualizer);
     }
     factory.RemoveVectorLayerVisualizer(layerVisualizer);
 }
Beispiel #2
0
 public void RemoveTilesFromLayer(VectorTileFactory factory, LayerVisualizerBase layerVisualizer)
 {
     foreach (var tileBundle in _activeTiles)
     {
         factory.UnregisterLayer(tileBundle.Value, layerVisualizer);
     }
     factory.RemoveVectorLayerVisualizer(layerVisualizer);
 }
 public void UnregisterAndRedrawTilesFromLayer(VectorTileFactory factory, LayerVisualizerBase layerVisualizer)
 {
     foreach (KeyValuePair <UnwrappedTileId, UnityTile> tileBundle in _activeTiles)
     {
         factory.UnregisterLayer(tileBundle.Value, layerVisualizer);
     }
     layerVisualizer.UnbindSubLayerEvents();
     layerVisualizer.SetProperties(layerVisualizer.SubLayerProperties);
     layerVisualizer.InitializeStack();
     foreach (KeyValuePair <UnwrappedTileId, UnityTile> tileBundle in _activeTiles)
     {
         factory.RedrawSubLayer(tileBundle.Value, layerVisualizer);
     }
 }