I'd love to use an alternative tileset from http://maps.stamen.com with OpenLayers and OSM in Drupal.

Is this possible from the UI? If not, what would be the most Drupal-ish way to get this done?

Thanks!

Comments

basvredeling’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (fixed)

Cleaning up the issue queue for #2670484: Stable 7.x-2.0 release.

The best way would be to implement hook_openlayers_layer_types(). Define an openlayer layer type. Examples can be found in the plugins/layer_types directory. openlayers_layer_type_osm.inc / openlayers_layer_type_osm.js is a great example.

It's not really possible via the UI unless the map tile provider allows for a simple method like xyz images or wms / tms, etc. Which doesn't seem to be the case for Stamen maps.