Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L.TileLayer.MVTSource could request tiles with invalide x an y #64

Open
haoliangyu opened this issue May 23, 2016 · 1 comment
Open

Comments

@haoliangyu
Copy link

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:

  • x or y smaller than 0
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?

@ghost
Copy link

ghost commented Jul 20, 2018

I am experiencing the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant