var YMaps = {};
YMaps.__MapData = {
userKey: "AK40wkkBAAAAvA1oFQMA78SI_ZmMJI9NMasSuoU-Xw7OmD8AAAAAAAAAAACmwO8NUx9V5eB2zhE0ABDBivHIEg==",
versionPath: "http://api-maps.yandex.ru/1.0.7/",
tileUrlTemplates:{
map: 'http://vec0%d.maps.yandex.ru/tiles?l=map&%c',
sat: 'http://sat0%d.maps.yandex.ru/tiles?l=sat&%c',
skl: 'http://vec0%d.maps.yandex.ru/tiles?l=skl&%c'
},
printerHost: 'http:\/\/print.maps.yandex.net\/1.x\/'
}
new function () {
var scriptsToLoad = [
YMaps.__MapData.versionPath + 'xml/data.xml?v=' + '1.43.0',
YMaps.__MapData.versionPath + '_YMaps.js'
],
cssToLoad = [
YMaps.__MapData.versionPath + '_YMaps.css',
YMaps.__MapData.versionPath + '_YMaps-ie.css'
],
i = 0, l = scriptsToLoad.length;
// Добавляем включение VML для IE
document.write(
''
);
var include = function include (src) {
document.write("");
};
var userAgent = window.navigator.userAgent.toLowerCase(),
isIe = userAgent.indexOf('opera') == -1 && userAgent.indexOf('msie') != -1;
if (isIe && (!document.documentMode || document.documentMode < 8)) {
document.write('');
} else {
document.write('');
}
for (; i < l; i++) {
include(scriptsToLoad[i]);
}
YMaps.load = function (callback) {
if (typeof callback == 'function') {
callback();
}
}
}