Geofield mapbox gl
This will add a new field formatter as map in a geofield field, using the mapbox services.
The module https://www.drupal.org/project/mapbox_gl is mandatory.
After enabled you can choose the formatter of a geofield as a "mapbox gl" , in manage display of any
entity that has a geofield field.
To make it work you have to obtain an api key from mapbox. And then choose the representation
of the point:
- Marker: https://docs.mapbox.com/mapbox-gl-js/example/marker-from-geocode/
- Circle: https://docs.mapbox.com/mapbox-gl-js/example/multiple-geometries/
- Icon: https://docs.mapbox.com/mapbox-gl-js/example/geojson-markers/
- Custom image: https://docs.mapbox.com/mapbox-gl-js/example/add-image/
- Custom Image from other field in the same entity, with the choosen image view
mode.
All comes with tooltip with the choosen view mode of the same entity.
(https://docs.mapbox.com/mapbox-gl-js/example/popup-on-click/)
If any error of recursive str_replace happens, make it sure that an apropiate view mode for
the entity is not using the geofield_mapbox_gl formatter.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 2.x-dev | Dev | Jan 27, 2024 |