|
@@ -31,6 +31,16 @@ function initialiseLocations() {
|
|
|
|
|
|
|
|
let bounds = new google.maps.LatLngBounds;
|
|
let bounds = new google.maps.LatLngBounds;
|
|
|
|
|
|
|
|
|
|
+ let locationCount = response.locations.length;
|
|
|
|
|
+ const $markerCountSpan = $("#map-marker-count");
|
|
|
|
|
+
|
|
|
|
|
+ if(locationCount > 0) {
|
|
|
|
|
+ $markerCountSpan.text(locationCount);
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ $markerCountSpan.text("");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
response.locations.forEach(location => {
|
|
response.locations.forEach(location => {
|
|
|
|
|
|
|
|
let position = {
|
|
let position = {
|