if (typeof(YaMapsWP) === "undefined") {
var YaMapsWP = {}, YMlisteners = {};
var YaMapsScript = document.createElement("script");
var YaMapsScriptCounter = [];
}
var myMap0;
document.addEventListener("DOMContentLoaded", function() {
if (document.getElementById("YandexMapAPI-js") == null ) {
YaMapsScriptCounter.push(function() {ymaps.ready(init)});
if (document.getElementById("YandexMapAPI-alt-js") == null ) {
function AltApiLoad(src){
YaMapsScript.id = "YandexMapAPI-alt-js";
YaMapsScript.src = src;
YaMapsScript.async = false;
document.head.appendChild(YaMapsScript);
}
AltApiLoad("https://api-maps.yandex.ru/2.1/?lang=ru_RU&ver=2.1");
window.onload = function() {
YaMapsScriptCounter.forEach(function(entryFunc) {
entryFunc();
});
}
}
}
else {
ymaps.ready(init);
}
YMlisteners.myMap0 = {};
YaMapsWP.myMap0 = {center: "55.7082,37.6813", zoom: "16", type: "yandex#map", controls: "", places: {}};
var yamapsonclick = function (url) {
location.href=url;
}
function init () {
myMap0 = new ymaps.Map("yamap0", {
center: [55.7082,37.6813],
zoom: 16,
type: "yandex#map",
controls: [] ,
},
{
suppressMapOpenBlock: true
});
YaMapsWP.myMap0.places.placemark1 = {icon: "islands#dotIcon", name: "СтройМакс", color: "#1e98ff", coord: "55.7082,37.6813", url: "",};
myMap0placemark1 = new ymaps.Placemark([55.7082,37.6813], {
hintContent: "СтройМакс",
iconContent: "",
}, {
preset: "islands#dotIcon",
iconColor: "#1e98ff",
});
myMap0.geoObjects.add(myMap0placemark1);myMap0.behaviors.disable('scrollZoom');
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
myMap0.behaviors.disable('drag');
}
}
}, false);
