Sign up ×
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:

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
simply change the layername AND file_extension variables to match the values found on the desired tileset's page yours are –  Mapperz May 10 '11 at 17:56

1 Answer 1

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

share|improve this answer

Your Answer


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.