summaryrefslogtreecommitdiff
path: root/src/leaflet-soton.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/leaflet-soton.js')
-rw-r--r--src/leaflet-soton.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 65e8e6e..85a322b 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -994,7 +994,12 @@ SELECT * WHERE {\
options.maxWidth = map.getContainer().offsetWidth*0.9;
options.minWidth = 320;
- //options.maxHeight = map.getContainer().offsetHeight*0.8;
+
+ if (options.minWidth > options.maxWidth) {
+ options.minWidth = options.maxWidth;
+ }
+
+ options.maxHeight = map.getContainer().offsetHeight*0.8;
map.closeInfo();