| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using Itinero.Network.Mutation; |
| | 4 | |
|
| | 5 | | namespace Itinero.Network.Tiles.Standalone.Mutation; |
| | 6 | |
|
| | 7 | | public static class RoutingNetworkMutableExtensions |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Adds or updates the given tiles. |
| | 11 | | /// </summary> |
| | 12 | | /// <param name="mutator">The network mutator.</param> |
| | 13 | | /// <param name="tiles">The tiles.</param> |
| | 14 | | public static void AddOrUpdateTiles(this RoutingNetworkMutator mutator, IEnumerable<StandaloneNetworkTile> tiles) |
| 0 | 15 | | { |
| | 16 | | // remove all data for tiles that exist. |
| 0 | 17 | | foreach (var tile in tiles) |
| 0 | 18 | | { |
| 0 | 19 | | var networkTile = mutator.GetTile(tile.TileId); |
| 0 | 20 | | if (networkTile == null) continue; |
| | 21 | |
|
| 0 | 22 | | throw new NotImplementedException(); |
| | 23 | | //networkTile.Clear(); |
| | 24 | | } |
| | 25 | |
|
| | 26 | | // add the tiles again. |
| 0 | 27 | | foreach (var tile in tiles) |
| 0 | 28 | | { |
| 0 | 29 | | var networkTile = mutator.GetTile(tile.TileId); |
| | 30 | |
|
| 0 | 31 | | } |
| 0 | 32 | | } |
| | 33 | | } |