|
Тел.: |
+7 (495) 374-73-32
|
|
+7 (901) 519-25-60 |
|
|
E-mail: |
zakaz@autoinstrument.su |
|
|
Наш адрес: |
г. Люберцы, ул. Красногорская, дом 1А |
|
|
Время работы: |
Пн - Пт: с 10:00 до 19:00
Сб: с 10:00 до 18:00
Вс: выходной
|
')
}
});
// load latlng from given address
var geocoder = new YMaps.Geocoder(address, {results: 1, boundedBy: map.getBounds()});
YMaps.Events.observe(geocoder, geocoder.Events.Load, function () {
if (this.length()) {
initYandexMaps(this.get(0).getGeoPoint());
}
else {
initYandexMaps(latlng);
}
})
// initialize yandex maps
function initYandexMaps(latlng) {
// initialize yandex map
map.setCenter(latlng, zoom);
map.addControl(new YMaps.TypeControl());
map.addControl(new YMaps.ToolBar());
map.addControl(new YMaps.Zoom());
map.addControl(new YMaps.ScaleLine());
map.enableScrollZoom();
// create marker
var marker = new YMaps.Placemark(latlng,{ style : "info_balloon" });
marker.title = title;
marker.address = address;
marker.content = additional_content;
map.addOverlay(marker);
}
})();
//]]>
|