@bmlt-enabled/croutonjs 4.1.1 → 4.1.3

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-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 && config.filter_visible) return ret;
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;