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.

Basically I created a MBtiles using Tilemill and it generates a map with six zooms. I implement it into tilestream. I added a layer on the openlayers module(Drupal) in XYZ:

site:8888/v2/geography-class/${z}/${x}/${y}.png 

The problem is this URL sent by openlayers: site:8888/v2/geography-class/-1/x/x.png

Each time, whatever the zoom I am on the map, the zoom value always stays at -1, the others values are okay.

If I try to reach site:8888/v2/geography-class/1/1/1.png it works.

What did I miss?

share|improve this question
add comment

1 Answer

Possibly there is a configuration error on the openlayers side (e.g. not setting the numZoomLevels or setting it to zero, since the maximum zoom level is numZoomLevels-1.

See http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels for configuration details.

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.