const marker_fill_alpha = 1.0; const marker_edge_colour = 'white'; const marker_fill_colour = 'gray'; // Size of the arrow markers used on the map const marker_scale = 9; // Offset for the place type icon (multiplier for marker scale) const marker_label_offset = 0.27 * marker_scale; // Width and transparency for the edges of the markers const marker_edge_alpha = 1.0; const marker_edge_width = 1.0; const settings = { zoom: 5 } // The function called when Google Maps starts up function initMap() { const centre_latlng = new google.maps.LatLng(0, 0); // The map, centered at Soton const map = new google.maps.Map( document.getElementById('map'), { zoom: settings.zoom, center: centre_latlng }); // For each data entry in the json... for (const pin_data of data) { // Get the lat-long position from the data const lat_lng = new google.maps.LatLng(pin_data.lat, pin_data.lng); // Generate a new marker const marker = new google.maps.Marker({ position: lat_lng, map: map, icon: { path: google.maps.SymbolPath.BACKWARD_CLOSED_ARROW, strokeColor: marker_edge_colour, strokeWeight: marker_edge_width, strokeOpacity: marker_edge_alpha, fillColor: marker_fill_colour, fillOpacity: marker_fill_alpha, scale: marker_scale, labelOrigin: new google.maps.Point(0, -marker_label_offset) }, }); // Build the info window content to tell the user the last time it was visited. marker.info = new google.maps.InfoWindow({ content: "