GGL Map
Introduction
The 'GGL map' module makes the implementation of a Google map super easy. You only need some basic template rendering knowledge.
The module comes with a complete set of default settings that can be overridden with a specific map implementation.
The only setting that you have to provide yourself is a Google Maps API key. Check out the configuration page for that.
Key features
- default or custom marker via one ore more collections
- popup content via collection or separate JSON
- option for clustering
- option for location search and current location position (based on browser settings)
- JS triggers do add some project specific JS (E.g. on map loaded, marker click, popup close, ...).
- AJAX Commands to add some project specific code in AJAX callbacks.
#ggl_map template
All rendering is done via one render array. With that template you have one required #collection parameter. With that parameter you determine the marker collection(s) to load.
The #overrideSettings parameter is optional but with that parameter you can override all the default settings the module comes with.
An example of such a render array:
[
"#theme" => "ggl_map",
'#collection' => [
[
'id' => 'single_map',
'url' => '/modules/contrib/ggl_map/examplesdata/single_collection.json',
],
],
'#overrideSettings' => [
'location' => [
'enableCurrentLocation' => FALSE,
],
'map' => [
'zoomControlOptions' => [
'position' => 'google.maps.ControlPosition.TOP_RIGHT',
],
'fitMapToMarkers' => TRUE,
],
'marker' => [
'onOpenPopup' => [
'centerToMarker' => TRUE,
'zoomToMarker' => TRUE,
],
],
],
]Start with the examples
You only need the 'GGL map' module for a Google map implementation but it is a good idea to check out the 'GGL map examples' module first. It makes it even more easy :-)
After enabling the examples module you can start here: /ggl_map_examples/single_map.
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
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.1.0 | Stable | May 22, 2024 | ||
| 1.0.0 | Stable | Feb 2, 2024 | ||
| 1.0.0-alpha40 | Pre-release | Jan 13, 2024 | ||
| 1.0.0-alpha39 | Pre-release | Jan 11, 2024 | ||
| 1.0.0-alpha38 | Pre-release | Jan 11, 2024 | ||
| 1.0.0-alpha37 | Pre-release | Jan 10, 2024 | ||
| 1.0.0-alpha36 | Pre-release | Jan 10, 2024 | ||
| 1.0.0-alpha35 | Pre-release | Jan 5, 2024 | ||
| 1.0.0-alpha34 | Pre-release | Jan 4, 2024 | ||
| 1.0.0-alpha33 | Pre-release | Dec 31, 2023 | ||
| 1.0.0-alpha32 | Pre-release | Dec 29, 2023 | ||
| 1.0.0-alpha31 | Pre-release | Dec 27, 2023 | ||
| 1.0.0-alpha30 | Pre-release | Dec 27, 2023 | ||
| 1.0.0-alpha29 | Pre-release | Oct 26, 2023 | ||
| 1.0.0-alpha28 | Pre-release | Oct 6, 2023 | ||
| 1.0.0-alpha27 | Pre-release | Oct 6, 2023 | ||
| 1.0.0-alpha26 | Pre-release | Oct 3, 2023 | ||
| 1.0.0-alpha24 | Pre-release | Sep 20, 2023 | ||
| 1.0.0-alpha23 | Pre-release | Sep 19, 2023 | ||
| 1.0.0-alpha22 | Pre-release | Aug 17, 2023 | ||
| 1.0.0-alpha21 | Pre-release | Aug 17, 2023 | ||
| 1.0.0-alpha20 | Pre-release | Aug 17, 2023 | ||
| 1.0.0-alpha19 | Pre-release | Aug 17, 2023 | ||
| 1.0.0-alpha18 | Pre-release | Aug 17, 2023 | ||
| 1.0.0-alpha17 | Pre-release | Aug 4, 2023 | ||
| 1.0.0-alpha16 | Pre-release | Aug 2, 2023 | ||
| 1.0.0-alpha15 | Pre-release | Aug 2, 2023 | ||
| 1.0.0-alpha14 | Pre-release | May 5, 2023 | ||
| 1.0.0-alpha13 | Pre-release | May 1, 2023 | ||
| 1.0.0-alpha12 | Pre-release | Apr 28, 2023 |