I have a local vector tile server based on tilesplash and use L.TileLayer.MVTSource to load the vector tile layer at the client side:
var map = L.map('map').setView([0, 0], 2);
var layer = new L.TileLayer.MVTSource({
url: 'http://localhost:3000/my_layer/{z}/{x}/{y}.mvt'
})
map.addLayer(layer);
I notice that the L.TileLayer.MVTSource could send request with invalid x and y parameter:
http://localhost:3000/my_layer/2/-1/1.mvt
- x or y larger than the available number based on the zoom level
http://localhost:3000/my_layer/2/4/2.mvt
Is it a bug, or just because of incorrect layer config?