© Сделано на LiveStreet
Дизайн - ©2009 MODx RED Group
[!maxigallery? &display=`embedded` &embedtype=`lightboxv2` &pics_in_a_row=`1` &max_thumb_size=`130` &max_pic_size=`800` &max_big_size=`800` &pics_per_row=`1` &thumb_use_dropshadow=`1`!]
<!-- Этот блок кода нужно вставить в ту часть страницы, где вы хотите разместить карту (начало) -->
<script src="http://api-maps.yandex.ru/1.1/?key=ACFuHE8BAAAAGX3nRgMAvdt6AJCY_Tqoq711Xqz8O4HpO9QAAAAAAAAAAADN-CilvBMo0F6G8Iv0l9ckZ-mVrw==&modules=pmap&wizard=constructor" type="text/javascript"></script>
<script type="text/javascript">
YMaps.jQuery(window).load(function () {
var map = new YMaps.Map(YMaps.jQuery("#YMapsID-2048")[0]);
map.setCenter(new YMaps.GeoPoint(37.550363,54.24933), 10, YMaps.MapType.MAP);
map.addControl(new YMaps.Zoom());
map.addControl(new YMaps.ToolBar());
YMaps.MapType.PMAP.getName = function () { return "Народная"; };
map.addControl(new YMaps.TypeControl([
YMaps.MapType.MAP,
YMaps.MapType.SATELLITE,
YMaps.MapType.HYBRID,
YMaps.MapType.PMAP
], [0, 1, 2, 3]));
YMaps.Styles.add("constructor#pmlbmPlacemark", {
iconStyle : {
href : "http://api-maps.yandex.ru/i/0.3/placemarks/pmlbm.png",
size : new YMaps.Point(28,29),
offset: new YMaps.Point(-8,-27)
}
});
map.addOverlay(createObject("Placemark", new YMaps.GeoPoint(37.619028,54.193802), "constructor#pmlbmPlacemark", ""));
function createObject (type, point, style, description) {
var allowObjects = ["Placemark", "Polyline", "Polygon"],
index = YMaps.jQuery.inArray( type, allowObjects),
constructor = allowObjects[(index == -1) ? 0 : index];
description = description || "";
var object = new YMaps[constructor](point, {style: style, hasBalloon : !!description});
object.description = description;
return object;
}
});
</script><div id="YMapsID-2048" style="width:450px;height:350px"></div>