Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.