Skip to content
Snippets Groups Projects
Commit 19bd52be authored by Piotr Gawron's avatar Piotr Gawron
Browse files

submap dialog contains info about submap name

parent c5a9160b
No related branches found
No related tags found
1 merge request!40Resolve "Annotations: description of a submap anchor"
......@@ -62,10 +62,11 @@ Submap.prototype.open = function(htmlTag) {
mapDiv.style.height = "100%";
contentDiv.appendChild(mapDiv);
$(this.htmlTag).dialog("open");
$(self.htmlTag).dialog("open");
$(self.htmlTag).dialog('option', 'title', self.getModel().getName());
$(this.htmlTag).dialog("option", "width", Math.floor(window.innerWidth * 2 / 3));
$(this.htmlTag).dialog("option", "height", Math.floor(window.innerHeight * 2 / 3));
$(self.htmlTag).dialog("option", "width", Math.floor(window.innerWidth * 2 / 3));
$(self.htmlTag).dialog("option", "height", Math.floor(window.innerHeight * 2 / 3));
self.setGoogleMap(new google.maps.Map(mapDiv, mapOptions));
self._createMapChangedCallbacks();
......@@ -77,7 +78,7 @@ Submap.prototype.open = function(htmlTag) {
google.maps.event.trigger(self.getGoogleMap(), 'resize');
if (self.isCustomTouchInterface()) {
self._touchInterface = new TouchMap(this);
self._touchInterface = new TouchMap(self);
}
self.setupLayouts();
......@@ -97,7 +98,7 @@ Submap.prototype.open = function(htmlTag) {
self.initialized = true;
} else {
$(this.htmlTag).dialog("open");
$(self.htmlTag).dialog("open");
}
......
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