@bmlt-enabled/croutonjs 3.20.5 → 3.20.7

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 CHANGED
@@ -17014,7 +17014,7 @@ function Crouton(config) {
17014
17014
  if (self.config['map_search']) self.searchMap();
17015
17015
  else self.meetingSearch();
17016
17016
  }
17017
- else if (!self.config['map_search']) self.meetingSearch();
17017
+ else if (!window.croutonMap.hasMapSearch()) self.meetingSearch();
17018
17018
  }
17019
17019
 
17020
17020
  Crouton.prototype.setConfig = function(config) {
@@ -18216,7 +18216,9 @@ function MeetingMap(inConfig) {
18216
18216
 
18217
18217
  return controlDiv;
18218
18218
  }
18219
-
18219
+ function hasMapSearch() {
18220
+ return 'map_search' in config;
18221
+ }
18220
18222
  function loadFromCrouton(inDiv_id, meetings_responseObject, menuContext = null, handlebarMapOptions = null, fitBounds = true, callback) {
18221
18223
  if (!gDelegate.isApiLoaded()) {
18222
18224
  preloadApiLoadedCallback(loadFromCrouton, [inDiv_id, meetings_responseObject, menuContext, handlebarMapOptions, fitBounds, callback]);
@@ -18743,6 +18745,7 @@ function MeetingMap(inConfig) {
18743
18745
  this.closeModalWindow = closeModalWindow;
18744
18746
  this.loadPopupMap = loadPopupMap;
18745
18747
  this.filterVisible = filterVisible;
18748
+ this.hasMapSearch = hasMapSearch;
18746
18749
  };
18747
18750
  MeetingMap.prototype.initialize = null;
18748
18751
  MeetingMap.prototype.showMap = null;
@@ -18755,6 +18758,7 @@ MeetingMap.prototype.openModalWindow = null;
18755
18758
  MeetingMap.prototype.closeModalWindow = null;
18756
18759
  MeetingMap.prototype.loadPopupMap = null;
18757
18760
  MeetingMap.prototype.filterVisible = null;
18761
+ MeetingMap.prototype.hasMapSearch = null;
18758
18762
 
18759
18763
  function MapDelegate(in_config) {
18760
18764
  const config = in_config;