Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Geofield mapbox gl

No security coverage No further development 6 sites

Part of the Geofield ecosystem · 6 projects

This module provides a new field formatter for geofields that displays geographic data on an interactive map using Mapbox GL JS. You can choose how to represent your points, such as markers or circles, and display tooltips with entity information.

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.

Ask your assistant about Geofield mapbox gl

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
1
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.x-dev Dev 9–10 Jan 27, 2024