core/skin/new.yurecnt.ru/js/map.js

20 lines
662 B
JavaScript
Raw Normal View History

2022-12-17 18:15:09 +05:00
function initialize() {
var myOptions = {
zoom: 16,
center: new google.maps.LatLng(51.489500, -0.096777), //change the coordinates
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: false,
mapTypeControl: false,
zoomControl: false,
streetViewControl: false,
}
var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions);
var marker = new google.maps.Marker({
map: map,
position: new google.maps.LatLng(51.489500, -0.096777) //change the coordinates
});
google.maps.event.addListener(marker, "click", function() {
infowindow.open(map, marker);
});
}
google.maps.event.addDomListener(window, 'load', initialize);