Hi,

Since the upgrade to the latest dev (7.-2.0-beta11+19-dev), mapbox layers don't work anymore, because it seems that the "Tile origin" parameter was added to the Openlayers TMS layers. I found a way to make it work by looking at this page: http://qandasys.info/trying-to-use-mbtiles-as-a-openlayers-layer-tms/ and using, as the tile origin, for longitude and latitude, -128 * 156543.03390625 = -20037508.34

I have no clue why this number works, but it seems to work and the map displays properly afterwards...

Comments

Pol’s picture

Status: Active » Closed (won't fix)

This message is part of the issue cleanup initiative.

Openlayers 2.x has been deprecated since the release of Openlayers 3.x the 31 December 2015.
If you want to stay on 2.x, you should try with the latest version of the 2.x release.

However, I strongly encourage you to move on version 3.
Version 3 is much more stable than version 2. It does not yet contain all the features but the main ones are there.

I'll close this thread, feel free to reopen it if needed.

Thanks for your understanding.