The purpose of this module is to provide an integration with Maptiler maps using Leaflet API.
Installation
Before you enable the Leaflet Maptiler module, you need to download and enable
the Leaflet module and the Libraries module.
Download Leaflet javascript library (Drupal 7 only)
Download the Leaflet javascript library from http://leafletjs.com/download.html. Drop the unzipped folder in sites/all/libraries and rename it to leaflet, so that the path to the essential javascript file becomes: sites/all/libraries/leaflet/leaflet.js
Final steps
If all's ok, you won't see any errors in the Status Report admin/reports/status.
After this, all you have to do is enable Leaflet Maptiler to enhance your
mapping experience using maps from Maptiler.
Usage
You select the map when you format a single field (eg Geofield) as a
map or when you format a View (of multiple nodes or users) as a map. The module
"IP Geolocation Views and Maps" is particularly good for this.
You can configure Maptiler the following settings in admin/config/leaflet_maptiler:
- Maptiler API Key: your API key generated from Maptiler
- Maptiler layers: the default layers provided by Maptiler. Note that the first layer will be the base layer of all maps. Custom layers are not yet supported.
- Geocoder external library: currently it uses the external leaflet-control-geocoder library in order to retrieve the geocoding information when the user clicks on a marker.
Extras
-
No further development
No longer developed by its maintainers.
There is a submodule (Leaflet Maptiler Token) that comes with this module and provides a token in order to render a map without the need of using an iFrame.
To install this module we can simply enable it like any other module.
After a successful installation, the new token will be available and can be used according to the following set of properties (separated by '+' sign) [maptiler:lat_lng_zoom_height:<latitude>+<longitude>+<zoom>+<height>], where:
- Latitude: a decimal number that represents the latitude where the marker will be positioned;
- Longitude: a decimal number that represents the longitude where the marker will be positioned;
- Zoom: an integer that represents the initial value of zoom when viewing the map;
- Height: an integer that represents the height (in pixels) of the map.
Note that to use tokens on rich text you'll have to install and configure token_filter (https://www.drupal.org/project/token_filter)
Project information
30 sites report using this module
- Created by bernardopaulino on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 2.x-dev updated 18 Apr 2026 at 03:42 UTC
Development version: 8.x-1.x-dev updated 19 Jun 2024 at 10:06 UTC






