Skip to content

Commit 35f8d52

Browse files
author
Jose Luis Pillado
committed
🐛 Send zoom to get latlng
1 parent 209e876 commit 35f8d52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Leaflet.VectorGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ L.VectorGrid = L.GridLayer.extend({
225225
},
226226

227227
vtGeometryToLatLng: function(geometry, vtLayer, tileCoords) {
228-
return this._map.unproject(this.vtGeometryToPoint(geometry, vtLayer, tileCoords));
228+
return this._map.unproject(this.vtGeometryToPoint(geometry, vtLayer, tileCoords), tileCoords.z);
229229
},
230230

231231
addUserLayer: function(userLayer, tileCoords) {

0 commit comments

Comments
 (0)