This project is not covered by Drupal’s security advisory policy.

One map for the whole site, drawn with MapLibre GL: a stack of GeoJSON layers over a site-wide basemap. Every map on the site shows the same layers and styling. Each placement only chooses where the map opens, and the zoom ranges decide what is shown at each scale.

Features

  • Sources: GeoJSON URLs fetched on the server, stored in the database, refreshed on cron and by drush maplibre:refresh. The last good copy is kept when a fetch fails. A path on the site, such as a Views GeoJSON display, is loaded by the browser directly.
  • ArcGIS feature layers (submodule maplibre_arcgis): paged queries, downloaded again only when the layer has been edited.
  • Source kinds are plugins, so other modules can produce GeoJSON from their own data without HTTP.
  • Style presets in *.maplibre_styles.yml in modules and themes: paint and layout per attribute value, legend, popups and table columns. Editors choose where a map opens, never colours.
  • A Map field and a Map block: open at the content's own location, at a layer's (filtered) features, or at fixed bounds. Optional layers per display.
  • A legend that follows the zoom, and a server-rendered table of the focused features as the accessible equivalent of the map.
  • A site-wide basemap style URL. MapLibre GL and pmtiles are bundled; no build step and no CDN.

Requirements

Drupal 11.2 or later, or Drupal 12.

Similar projects

This comment was drafted by an LLM before it was reviewed by me.

Project information

Releases