Not long ago, @Pol announced that he had added MapBox support to OpenLayers. See #1791478-14: OpenLayers 7.x-2.x-dev breaks with MapBox..

But since updating to the latest version of 2.x-dev, the MapBox support seems to have disappeared. There is no longer a "MapBox" Layer Type available when creating a new layer. Existing layers are now missing from the list of layers. Running the Database Update script says:

"WD openlayers: Layer [name of layer] is unavailable because its layer type or the module that provides its layer type is missing."

It's true that the database records show 'layer_type':'openlayers_layer_type_mapbox', a term that no longer appears anywhere in the module, nor does it appear in the latest beta versions.

Was MapBox support accidentally left out of the modules, or has there been a new change in direction?

Comments

pol’s picture

Status: Active » Fixed

Look the changelog of Beta4: http://drupal.org/node/1957728

Removed the OpenLayers Layer Type Mapbox. MapBox was using the MapBox layer type, which is an extension of the TMS class. Now, MapBox layers are using the TMS layer type. The base_url has been renamed in url for more consistency, an update function is provided but it might break things if your layers are exported in code, be aware. This makes less code to maintain and less JS when using MapBox layer type \o/ ! - Pol Dell'Aiera, 3 weeks ago

tomogden’s picture

You are a rock star @Pol, thank you!

Sounds like a good plan. I have reconstructed the layer as a TMS type.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.