var image = new google.maps.MarkerImage(
'http://www.dssmove.co.uk/default/public/media/images/map_image.png',
new google.maps.Size(21, 25),
new google.maps.Point(0, 0),
new google.maps.Point(0, 23)
);
var shadow = new google.maps.MarkerImage(
'http://www.dssmove.co.uk/default/public/media/images/map_image_shadow.png',
new google.maps.Size(30, 45),
new google.maps.Point(0, 0),
new google.maps.Point(-2, 25)
);
// The map, centered at origin
const map = new google.maps.Map(
document.getElementById('property_map'),
{
center: origin,
mapTypeId: google.maps.MapTypeId.ROADMAP,
zoom: 15,
streetViewControl: false,
}
);
// The marker, positioned at origin
const marker = new google.maps.Marker({
position: origin,
map: map,
icon: image,
shadow: shadow,
});
//});
}
google.maps.event.addDomListener(window, 'load', initialize);
What's nearby?