Мапа

google.maps.event.addDomListener(window, ‘load’, init);
var map;
function init() {
var mapOptions = {
center: new google.maps.LatLng(49.848914,24.030689),
zoom: 14,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.DEFAULT,
},
disableDoubleClickZoom: true,
mapTypeControl: false,
scaleControl: false,
scrollwheel: false,
panControl: true,
streetViewControl: true,
draggable : true,
overviewMapControl: true,
overviewMapControlOptions: {
opened: false,
},
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: [{“stylers”:[{“hue”:”#ff1a00″},{“invert_lightness”:true},{“saturation”:-100},{“lightness”:33},{“gamma”:0.5}]},{“featureType”:”water”,”elementType”:”geometry”,”stylers”:[{“color”:”#2D333C”}]}],
}
var mapElement = document.getElementById(‘abv_map’);
var map = new google.maps.Map(mapElement, mapOptions);
var locations = [
[‘abv_marker’, ‘undefined’, ‘undefined’, ‘undefined’, ‘undefined’, 49.842217, 24.030947, ‘http://globarch.com.ua/wp-content/uploads/2016/10/pin_small.png’]
];
for (i = 0; i < locations.length; i++) {
if (locations[i][1] ==’undefined’){ description =”;} else { description = locations[i][1];}
if (locations[i][2] ==’undefined’){ telephone =”;} else { telephone = locations[i][2];}
if (locations[i][3] ==’undefined’){ email =”;} else { email = locations[i][3];}
if (locations[i][4] ==’undefined’){ web =”;} else { web = locations[i][4];}
if (locations[i][7] ==’undefined’){ markericon =”;} else { markericon = locations[i][7];}
marker = new google.maps.Marker({
icon: markericon,
position: new google.maps.LatLng(locations[i][5], locations[i][6]),
map: map,
title: locations[i][0],
desc: description,
tel: telephone,
email: email,
web: web
});
link = ”; }

}

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *