Skip to content
Snippets Groups Projects
Commit a1e7e88c authored by Bert Jansen's avatar Bert Jansen
Browse files

afterInitMap trigger added.

parent 02e7acbe
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,9 @@
// The most important variable of all :)
_self.map = new google.maps.Map(document.getElementById("ggl_map"), drupalSettings.gglMap.map);
// Trigger external JS after initializing the map.
$(window).trigger('gglMap:afterInitMap', {});
// Bind dragend event to the map.
_self.map.addListener('dragend', function () {
_self.boundsChanged();
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment