Skip to content
Snippets Groups Projects

fix on reopening info window on submap

Merged Piotr Gawron requested to merge 188-show-infowindow into master
2 files
+ 13
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -121,12 +121,15 @@ AbstractInfoWindow.prototype.isOpened = function() {
/**
* Opens Info Window.
*/
AbstractInfoWindow.prototype.open = function() {
AbstractInfoWindow.prototype.open = function(newMarker) {
var self = this;
if (self.googleInfowindow === null) {
logger.warn("Cannot open window.");
return;
}
if (newMarker !== undefined) {
self.setGoogleMarker(newMarker);
}
self.googleInfowindow.open(self.getCustomMap().getGoogleMap(), self.getGoogleMarker());
return self.update().then(function() {
Loading