@bmlt-enabled/croutonjs 4.1.2 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crouton-gmaps.js +22 -17
- package/crouton-gmaps.min.js +6 -6
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton-map.js +4 -1
- package/crouton-map.min.js +1 -1
- package/crouton-map.min.js.map +1 -1
- package/crouton.js +22 -13
- package/crouton.min.js +4 -4
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +18 -12
- package/crouton.nojquery.min.js +5 -5
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
package/crouton-map.js
CHANGED
|
@@ -131,10 +131,13 @@ function MapDelegate(config) {
|
|
|
131
131
|
if (!gMainMap) return null;
|
|
132
132
|
return gMainMap.getZoom();
|
|
133
133
|
}
|
|
134
|
+
function isFilterVisible() {
|
|
135
|
+
return config.filter_visible && config.filter_visible == 1;
|
|
136
|
+
}
|
|
134
137
|
function getZoomAdjust(only_out,filterMeetings) {
|
|
135
138
|
if (!gMainMap) return 12;
|
|
136
139
|
var ret = gMainMap.getZoom();
|
|
137
|
-
if (config.map_search &&
|
|
140
|
+
if (config.map_search && isFilterVisible()) return ret;
|
|
138
141
|
var center = gMainMap.getCenter();
|
|
139
142
|
var bounds = gMainMap.getBounds();
|
|
140
143
|
var zoomedOut = false;
|