Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've been looking in all the corners of the web but I can't seem to find a clue on where I can find OpenLayers templates (such as a grayscale map), and how to use them in my site. The import and add function on admin/structure/openlayers/layers seem to do the same, but each with another approach.
Currently the website is using the default OSM Mapnik layer, but I'd like to use another type of layer.
Comments
Comment #1
knalstaaf CreditAttribution: knalstaaf commentedI've figured it out somehow.
Templates can be found here: http://wiki.openstreetmap.org/wiki/OpenLayers
We're using the CartoDB Light template from the page in the above link.
http://a.basemaps.cartocdn.com/light_all/${z}/${x}/${y}.png
%7B
and%7D
), and that it has thehttp(s)://
in front of it.This layer will now be available as an overlay in the Layers & Styles of your maps (admin/structure/openlayers/maps/list/your_map_name/edit).
More template suggestions are welcome.
#2384877: MapTiler tiles in Drupal - step-by-step tutorial