Recommended releases

Download Released

A Geofield widget that provides a
Leaflet map widget using the Leaflet.draw
library for adding features.

The library ships with this module, no need for an extra download.

Leaflet Widget enables you to:

  • Insert markers based on text search widget (off by default)
  • Create, edit and delete simple geometries: Point, Polyline, Polygon
  • Configure available geometry types per field
  • Supports single or multi-value Geofields (cardinality)
  • Uses base layers defined by the Leaflet module
  • API for additional base layers

Widget screenshot

Installation

Requires

  • Leaflet
  • Geofield

Issues

Bugs and Feature requests should be reported in the
Issue Queue

Known Issues

Because of the way Geofield stores values, some types (circle, circlemarker)
are not available. They could get drawn, but they couldn't get saved.

The API of this module has changed compared to Drupal. That was a necessary
step to make it useful.

Current Maintainers

Credits

  • "Ported" to Backdrop by Indigoxela

This module is not really a port from the Drupal version,
but rather a complete rewrite to get the Geofield widget working with a recent
Leaflet (JS library) version. To achieve this it was necessary to get rid of the
formerly used Leaflet.widget library.

This module bundles the Leaflet.draw
Javascript library by Leaflet, which is
MIT
licensed.

The location search widget utilizes the Nominatim API
via JavaScript (AJAX) to geocode text input into coordinates for markers.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.