mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
@@ -11,6 +11,7 @@ const marker_edge_alpha = 1.0;
|
|||||||
const marker_edge_width = 1.0;
|
const marker_edge_width = 1.0;
|
||||||
|
|
||||||
let marker = null;
|
let marker = null;
|
||||||
|
let map = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Position a map marker at the clicked location and update lat/long form fields.
|
* Position a map marker at the clicked location and update lat/long form fields.
|
||||||
@@ -47,7 +48,7 @@ function selectLocation(event) {
|
|||||||
*/
|
*/
|
||||||
function initMap() {
|
function initMap() {
|
||||||
const centre_latlng = new google.maps.LatLng(settings.centre_lat | 0, settings.centre_lng | 0);
|
const centre_latlng = new google.maps.LatLng(settings.centre_lat | 0, settings.centre_lng | 0);
|
||||||
const map = new google.maps.Map(
|
map = new google.maps.Map(
|
||||||
document.getElementById('map'), { zoom: settings.zoom, center: centre_latlng });
|
document.getElementById('map'), { zoom: settings.zoom, center: centre_latlng });
|
||||||
|
|
||||||
const search_input = document.getElementById('location-search')
|
const search_input = document.getElementById('location-search')
|
||||||
|
|||||||
Reference in New Issue
Block a user