refactor: remove redundancy between js maps

This commit is contained in:
James Graham
2021-01-15 16:33:34 +00:00
parent 59f717829a
commit f94627e4c8
2 changed files with 46 additions and 58 deletions

View File

@@ -64,7 +64,6 @@ function createMarker(map, marker_data) {
// The function called when Google Maps starts up
function initMap() {
map = new google.maps.Map(
// document.getElementById('map'), { zoom: settings.zoom, center: centre_latlng });
document.getElementById('map'));
const bounds = new google.maps.LatLngBounds()
@@ -89,6 +88,8 @@ function initMap() {
}
setTimeout(setMaxZoom, 100)
return map
}
/**