var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map-wrapper'), {
center: new google.maps.LatLng(50.75303376, 25.3362751),
zoom: 16,
// zoomControl: false,
// scaleControl: false,
scrollwheel: false,
disableDoubleClickZoom: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
function createMarker(options, html) {
var marker = new google.maps.Marker(options);
if (html) {
google.maps.event.addListener(marker, "click", function () {
infoWindow.setContent(html);
infoWindow.open(options.map, this);
});
}
return marker;
}
var image = {
url: '/img/map.png',
scaledSize : new google.maps.Size(75, 75),
};
var marker0 = createMarker({
position: new google.maps.LatLng(50.75354963, 25.33945084),
map: map,
icon: image
});
google.maps.event.addDomListener(window, 'resize', function() {
var center = map.getCenter()
google.maps.event.trigger(map, "resize")
map.setCenter(center)
})
}