getUrl method
Implementation
@override
String getUrl() {
List<MapEntry<String, dynamic>> queryParams = [
MapEntry(GeoEntry.service.label, GeoService.wmts.label),
MapEntry(GeoEntry.request.label, GeoRequest.tile.label),
MapEntry(GeoEntry.version.label, '1.0.0'),
MapEntry(GeoEntry.layer.label, 'World_Topo_Map'),
MapEntry(GeoEntry.tileMatrixSet.label, 'PM'),
MapEntry(GeoEntry.style.label, 'default'),
MapEntry(GeoEntry.format.label, GeoFormat.jpeg.label),
MapEntry(GeoEntry.transparent.label, 'true'),
];
String base = 'https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/WMTS/tile/1.0.0/World_Topo_Map/default/GoogleMapsCompatible/{z}/{y}/{x}.jpg?';
String params = RouteFormatter.getQueryParamsString(Map.fromEntries(queryParams));
return '$base?$params&TileMatrix={z}&TileCol={x}&TileRow={y}';
}