Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

GGL Map

No security coverage
View on drupal.org

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

Tracked releases
30
Tracked since
Apr 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

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