When using the newest TileStream server 1.0.0 the default URLs contains the string v2 and not 1.0.0. E.g http://localhost:8888/v2/geography-class/{z}/{x}/{y}.png but this module only accepts URLs with 1.0.0 as the version part.

Comments

cableman0408’s picture

StatusFileSize
new36.29 KB
new2.48 KB

This patch enables the user to enter the version number in the OpenLayers UI, hence making the module support the newest version of MapBox TileStream and other services.

It defaults to 1.0.0 as version to ensure that existing sites don't break.

cableman0408’s picture

Title: TMS URL version number (Tilemill) » TMS URL version number (Tilestream)
cableman0408’s picture

Status: Active » Needs work

I have look more into this an it turns out that you can set the option "serviceVersion", but it makes the map switch top and bottom in the middle of the map.

cableman0408’s picture

StatusFileSize
new2.89 KB

This patch works with service version 1.0.0 and v2

cableman0408’s picture

Status: Needs work » Needs review
Will White’s picture

> it makes the map switch top and bottom in the middle of the map.

The v2 URLs for tilestream are no longer TMS. They use XYZ, which is why you'd seeing the tiles flip.

cableman0408’s picture

Status: Needs review » Needs work

Thanks, that explains it :-)

Could you point me to some documentation about this, I have a hard time finding it online.

Update: found this http://support.mapbox.com/discussions/tilestream/41-openlayers-shows-lay...

cableman0408’s picture

Status: Needs work » Closed (duplicate)

I looked into using a XYZ layer, but ran into a new problem where the zoom (z) is always -1. This issue is described here: http://drupal.org/node/926326