Пример #1
0
 private void RemoveTile(MapTileElement Tile)
 {
     _tiles.Remove(Tile);
     if (_tilesToVisuals.ContainsKey(Tile))
     {
         DeleteVisual(_tilesToVisuals[Tile]);
         _tilesToVisuals.Remove(Tile);
     }
     Tile.ChangeVisualRequested -= TileChangeRequested;
     Tile.Dispose();
 }
Пример #2
0
 public void AddTile(MapTileElement Tile)
 {
     _tiles.Add(Tile);
     MapVisual visual = Tile.GetVisual(ZoomLevel);
     visual.Transform = _globalTransform;
     AddVisual(visual);
     _tilesToVisuals.Add(Tile, visual);
     Tile.ChangeVisualRequested += TileChangeRequested;
 }