Skip to content
Snippets Groups Projects
Commit 8025db5b authored by silvio's avatar silvio Committed by Andriy Podanenko
Browse files

Issue #1954740 by silvio: Added method to get infowindow variable.

parent 603b8d6d
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
Drupal.gmap.addHandler('gmap', function (elem) {
var obj = this;
var infowindow = null;
var infowindow = new google.maps.InfoWindow();
obj.bind('init', function () {
if (obj.vars.behavior.autozoom) {
......@@ -69,7 +69,6 @@ Drupal.gmap.addHandler('gmap', function (elem) {
if (infowindow != null){
infowindow.close();
}
infowindow = new google.maps.InfoWindow();
if (marker.text) {
infowindow.setContent(marker.text);
infowindow.open(obj.map, marker.marker);
......@@ -154,5 +153,9 @@ Drupal.gmap.addHandler('gmap', function (elem) {
}
});
Drupal.gmap.getInfoWindow = function() {
return infowindow;
};
// @@@ TODO: Some sort of bounds handling for deletemarker? We'd have to walk the whole thing to figure out the new bounds...
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment