Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to use this map from mapbox as base layer in OpenLayers:

http://mapbox.com/#/tileset/iraq

I used this example to make it work. Everything is fine when I keep the code as it is with original layer "world-light", but when I change it to "iraq", it doesn't work.

I checked it in Firebug and it looks fine - it asks for "iraq" tiles as the original page.

Do you have any ideas how to solve it? Thanks

share|improve this question
3  
simply change the layername AND file_extension variables to match the values found on the desired tileset's page yours are a.tiles.mapbox.com/mapbox/1.0.0/iraq/9/318/306.png –  Mapperz May 10 '11 at 17:56
add comment

1 Answer 1

I can't seem to get to the example on mapbox.com's site. Might be better to work from the one provided by OpenLayers:

http://openlayers.org/dev/examples/mapbox.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.