Closed minus34 closed 7 years ago
The problem is around https://github.com/Leaflet/Leaflet.VectorGrid/blob/master/src/Leaflet.VectorGrid.Protobuf.js#L26 , in the call to L.Util.Template
inside _getVectorTilePromise
.
A previous version of this plugin called L.TileLayer.prototype.getTileUrl()
directly, but that caused a different set of problems.
You might want to have a look at the source code for L.TileLayer.prototype.getTileUrl()
, copy the bits about -y
into VectorGrid.Protobuf.js
, test it out, and send a pull request to fix this.
Closing because #47 was merged.
I'm trying to display Protobuf tiles from Geoserver 2.11 using a TMS formatted URL. Setting the y value in the URL to {-y} to honour the orientation of the tile grid returns this error:
Code is below. Note: I don't have a public Geoserver 2.11 TMS URL for testing. The equivalent PNG TMS URL is in the code for direct comparison. It works with {-y} but the PBF equivalent doesn't.