| | 1 | | using System; |
| | 2 | |
|
| | 3 | | namespace Itinero.IO.Osm.Tiles; |
| | 4 | |
|
| | 5 | | /// <summary> |
| | 6 | | /// Contains extension methods for the router db. |
| | 7 | | /// </summary> |
| | 8 | | public static class RouterDbExtensions |
| | 9 | | { |
| | 10 | | /// <summary> |
| | 11 | | /// Configures the routeable tiles data provide. |
| | 12 | | /// </summary> |
| | 13 | | /// <param name="routerDb">The router db.</param> |
| | 14 | | /// <param name="configure">The configure function.</param> |
| | 15 | | public static void UseRouteableTiles(this RouterDb routerDb, Action<DataProviderSettings>? configure = null) |
| 0 | 16 | | { |
| 0 | 17 | | var settings = new DataProviderSettings(); |
| | 18 | |
|
| 0 | 19 | | configure?.Invoke(settings); |
| | 20 | |
|
| 0 | 21 | | var dataProvider = new DataProvider(routerDb, settings.Url, settings.Zoom); |
| 0 | 22 | | } |
| | 23 | | } |