You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Cesare,
did you try using maxNativeZoom: 17 to set the maximum zoom that mapillary vectors handles and maxZoom: 19 to tell leaflet to scale on the latest native layer available? var mapillary = L.tileLayer('https://d6a1v2w10ny40.cloudfront.net/v0.1/{z}/{x}/{y}.png', {subdomains:'abc', maxNativeZoom: 17,maxZoom: 19, id: 'mapillary.sequences', noWrap:true, attribution:'<a href="http://www.openstreetmap.org">Openstreetmap</a> | <a href="http://www.openstreetmap.org/copyright/">OpenStreetMap</a>' });
I need to access to the Mapillary vector tiles using Leaflet as they are shown in the Mapillary web site, for example
I've tried to use the Mapillary vector tiles API as documented here
so using this request
but I can see the vector tiles only for levels 0 - 14 not more, then I receive a 403 (Forbidden) error.
I've found in the Mapillary Forum (ref. mapbox/osm-navigation-map#48), that they are changing the url to access to the vector tiles.
The new url is the follow:
with these specifications
So I've tried to load this new vector tile layer in a simply Leaflet 0.7 map using this code
You can view the map at this link
http://www.cesaregerbino.com/Mapillary/VectorTilesTest/testLeaflet.html
In the map there are both the "old" mapillary vector tiles (purple lines), and the "new" mapillary vector tiles.
It's working fine but unfortunately if you try to zoom in at more details nothing is mapped.
Searching on the web I've found this link
http://mapbox.github.io/osm-navigation-map/#6.09/44.391/8.984
that seems working fine as I'd like, so I've tried to replicate it and I've done it, here you are the code
You can view the map at this link
http://www.cesaregerbino.com/Mapillary/VectorTilesTest/testMapBox.html#8.71/44.5084/8.5412
In this map there is only the "new" mapillary vector tiles layer.
It's working fine too but unfortunately if you try to zoom out at less details nothing is mapped.
So it seems that the new mapillary vector tiles behaviour it's different if I use it in a Leaflet map or in a MapBox map.
I'd like to use it in a Leaflet (0.7) map but I need to see on the map the layer also when I'm in detailed map (zoom in ...).
Any link / suggestion / example?! Thank you a lot in advance!!
Cesare
P.S
I've opened a question here (with a little bounty ...), http://gis.stackexchange.com/questions/207105/how-to-access-to-mapillary-vector-tiles-to-show-all-levels-0-16 if you're interested ... :-)
The text was updated successfully, but these errors were encountered: