This module works great for the official set of Mapbox tiles that you see here: http://tiles.mapbox.com/mapbox - When you add any of those names while creating a new Mapbox Layer with the OpenLayers module, we get the correct set of tiles.
However when you try to create a Mapbox layer using the name of a custom map, that a user has created with TileMill and uploaded to his account for example, the set of tiles are not displayed.
If a user could especify the username of the uploader and the name of the map (I'm guessing the mapbox username is 'hardcoded'), this would be possible right?
Custom Mapbox map example: https://tiles.mapbox.com/ipwa/map/world-vision-peru
Comments
Comment #1
antoniotorres commentedI ran into that issue and it is in fact hardcoded. Here's how I got around it (hack incoming)
open mapbox.layers.inc
add this and customize.
then scroll down and look for
and replace, then enable.
Hope this helps you and everyone else that has the same issue.
Comment #2
antoniotorres commentedTempted to patch the entire module to expose that stuff through the interface.
Comment #3
ipwa commentedThat would be so so, awesome!!
Thanks for the tip, will try it out.
Comment #3.0
ipwa commentedAdding custom map link
Comment #4
ipwa commentedAs now seen in the module page (and soon in the docs), it is possible to implement your custom Mapbox tiles as a new XYZ layer for the OL module using some simple instructions.
Comment #5
ipwa commented