leaflet providers Mapbox imagery

88 views
Skip to first unread message

Vale de Ceras

unread,
Mar 8, 2016, 6:59:11 AM3/8/16
to Shiny - Web Framework for R
Hi,
I'm trying to add an imagery layer from Mapbox.

Following https://github.com/leaflet-extras/leaflet-providers, I registered in Mapbox, started a project, chose the imagery layer, saved it and got the map ID and ACCESS_TOKEN.

Next, following https://github.com/jcheng5/superzip/blob/master/ui.R...

I tried in my app:

        addTiles(
              urlTemplate
= "//{s}.tiles.mapbox.com/v3/jcheng.map-5ebohr46/{z}/{x}/{y}.png")

which worked fine.

Now, adapting to my Map ID...

        addTiles
(
              urlTemplate
= "//{s}.tiles.mapbox.com/v4/valedeceras.pbnamo8m/{z}/{x}/{y}.png")

does not show any map.
Any help?

Thanks in advance.
António

Joe Cheng [RStudio]

unread,
Mar 8, 2016, 1:55:24 PM3/8/16
to Shiny - Web Framework for R
V4 of the MapBox API works differently. Maybe something more like this?

Vale de Ceras

unread,
Mar 8, 2016, 5:27:19 PM3/8/16
to Shiny - Web Framework for R
Many thanks. Worked fine!

Keep on the good work...
Reply all
Reply to author
Forward
0 new messages