This project is not covered by Drupal’s security advisory policy.
Due to the changes of mapbox terms of use. There is a fork of module to use maplibre instead of mapbox in https://www.drupal.org/project/geofield_maplibre_gl , more to read in https://www.maptiler.com/news/2021/01/maplibre-mapbox-gl-open-source-fork/ and https://maplibre.org/maplibre-gl-js/docs/
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.
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsNo further development
No longer developed by its maintainers.- Project categories: Site structure
- Ecosystem: Geofield, Mapbox GL
3 sites report using this module
- Created by aleix on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
