Skip to content

Commit ef9fa4d

Browse files
authored
Fix vector tile indices when using tiles served by pygeoapi (#193)
- change to `/{z}/{y}/{x}` which is OGC Tiles spec conformant
1 parent a459ce7 commit ef9fa4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

workshop/content/docs/publishing/ogcapi-tiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ QGIS supports OGC API Vector Tiles via the [Vector Tiles Layer](https://docs.qgi
279279
![](../assets/images/qgis-vtiles1.png){ width=100% }
280280
281281
- right-click to bring up the context menu and choose `New Generic connection`
282-
- fill the required values. For URL, use the URL you noted from the previous step, replacing `{tileMatrix}/{tileRow}/{tileCol}` with `{z}/{x}/{y}`.
282+
- fill the required values. For URL, use the URL you noted from the previous step, replacing `{tileMatrix}/{tileRow}/{tileCol}` with `{z}/{y}/{x}`.
283283
- press `OK` to add the service. At this point, if you are using the browser you should see the collection appearing in the menu, below "Vector Tiles"
284284
- double-click in the collection to add it to the map
285285
<!-- - remember to set the CRS of the map to `EPSG:3857` by clicking in the button on the lower right corner
@@ -340,7 +340,7 @@ map.addLayer(
340340
interactive: true,
341341
vectorTileLayerStyles: vectorTileStyling,
342342
};
343-
var pbfURL='http://localhost:5000/collections/hyderabad/tiles/WorldCRS84Quad/{z}/{x}/{y}?f=mvt';
343+
var pbfURL='http://localhost:5000/collections/hyderabad/tiles/WorldCRS84Quad/{z}/{y}/{x}?f=mvt';
344344
var pbfLayer=L.vectorGrid.protobuf(pbfURL,mapVectorTileOptions).on('click',function(e) {
345345
console.log(e.layer);
346346
L.DomEvent.stop(e);

workshop/exercises/html/vector-tiles.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
interactive: true,
3939
vectorTileLayerStyles: vectorTileStyling,
4040
};
41-
var pbfURL='http://localhost:5000/collections/hyderabad/tiles/WebMercatorQuad/{z}/{x}/{y}?f=mvt';
41+
var pbfURL='http://localhost:5000/collections/hyderabad/tiles/WebMercatorQuad/{z}/{y}/{x}?f=mvt';
4242
var pbfLayer=L.vectorGrid.protobuf(pbfURL,mapVectorTileOptions).on('click',function(e) {
4343
console.log(e.layer);
4444
L.DomEvent.stop(e);

0 commit comments

Comments
 (0)