Leaflet Widget for Geofield
Component ID
1802616
Component name
Leaflet Widget for Geofield
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
9903
Component created
Component changed
Component body
A Geofield widget that provides a Leaflet map and uses the Leaflet widget plugin for adding and removing geometries. Leaflet.widget uses the Leaflet.draw geometry creation tools.
Features
- Create & manage simple geometries: Point, LineString, Polygon.
- Maintains complex geometries: MultiPoint, MultiLineString, MultiPolygon and GeometryCollection. (These can't be created yet but it won't mess with your existing data.)
- Delete geometries.
- Supports single or multi-value Geofields (cardinality).
- Use base layers defined by Leaflet module.
Installation:
- Install and enable Leaflet Widget and its required modules in the usual way.
Learn more about installing Drupal modules. - Download the Leaflet Widget JavaScript libraryand place it in
sites/all/libraries.
Ensure you've a path likesites/all/libraries/Leaflet.widget/dist/Leaflet.widget.js
Further documentation How to install Leaflet Widget for Geofield.
Requires:
- Libraries (2.x)
- Geofield (1.x or 2.x) please use the same module versions
- GeoPHP 1.x-dev: This module requires the latest dev release as there are issues with parsing GeoJSON in the latest stable release.
- Leaflet Widget requires Leaflet JS to be available. By default the version bundled with the Leaflet.widget library will be used. However if you have Leaflet module installed and Leaflet JS located at
sites/all/libraries/leaflet, that version will be used.
Development sponsored by Affinity Bridge.
