@bmlt-enabled/croutonjs 3.16.1 → 3.16.2
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.js +11 -15
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +11 -15
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton.js
CHANGED
|
@@ -15736,25 +15736,12 @@ Crouton.prototype.renderMap = function() {
|
|
|
15736
15736
|
}
|
|
15737
15737
|
})
|
|
15738
15738
|
};
|
|
15739
|
-
calculateBounds = function() {
|
|
15740
|
-
var bounds = new google.maps.LatLngBounds();
|
|
15741
|
-
// We go through all the results, and get the "spread" from them.
|
|
15742
|
-
for (var c = 0; c < self.meetingData.length; c++) {
|
|
15743
|
-
var lat = self.meetingData[c].latitude;
|
|
15744
|
-
var lng = self.meetingData[c].longitude;
|
|
15745
|
-
// We will set our minimum and maximum bounds.
|
|
15746
|
-
bounds.extend(new google.maps.LatLng(lat, lng));
|
|
15747
|
-
}
|
|
15748
|
-
// We now have the full rectangle of our meeting search results. Scale the map to fit them.
|
|
15749
|
-
self.map.fitBounds(bounds);
|
|
15750
|
-
|
|
15751
|
-
}
|
|
15752
15739
|
Crouton.prototype.initMap = function(callback) {
|
|
15753
15740
|
var self = this;
|
|
15754
15741
|
if (self.map == null) {
|
|
15755
15742
|
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bmlt-map'></div>");
|
|
15756
15743
|
var mapOpt = { zoom: 3 };
|
|
15757
|
-
if (self.handlebarMapOptions) mapOpt = {
|
|
15744
|
+
if (self.handlebarMapOptions.length > 0) mapOpt = {
|
|
15758
15745
|
center: new google.maps.LatLng(self.handlebarMapOptions.lat, self.handlebarMapOptions.lng),
|
|
15759
15746
|
zoom: self.handlebarMapOptions.zoom,
|
|
15760
15747
|
mapTypeId:google.maps.MapTypeId.ROADMAP
|
|
@@ -15763,7 +15750,16 @@ Crouton.prototype.initMap = function(callback) {
|
|
|
15763
15750
|
}
|
|
15764
15751
|
|
|
15765
15752
|
jQuery("#bmlt-map").removeClass("hide");
|
|
15766
|
-
|
|
15753
|
+
var bounds = new google.maps.LatLngBounds();
|
|
15754
|
+
// We go through all the results, and get the "spread" from them.
|
|
15755
|
+
for (var c = 0; c < self.meetingData.length; c++) {
|
|
15756
|
+
var lat = self.meetingData[c].latitude;
|
|
15757
|
+
var lng = self.meetingData[c].longitude;
|
|
15758
|
+
// We will set our minimum and maximum bounds.
|
|
15759
|
+
bounds.extend(new google.maps.LatLng(lat, lng));
|
|
15760
|
+
}
|
|
15761
|
+
// We now have the full rectangle of our meeting search results. Scale the map to fit them.
|
|
15762
|
+
self.map.fitBounds(bounds);
|
|
15767
15763
|
var infoWindow = new google.maps.InfoWindow();
|
|
15768
15764
|
|
|
15769
15765
|
// Create OverlappingMarkerSpiderfier instance
|