Здравствуйте, я совсем новичек в JS и Яндекс.Картах, так что заранее простите: тупо делал по примерам.
Делаю карту поставок оборудования для сайта и метки которые я ставлю отображаются не там, где выскакивает балун, а почему-то выше чем нужно.
Адрес сайта: http://polygon36.ru/contacts/map.aspx
<script type="text/javascript">
var myMap;
ymaps.ready(init);
function init() {
myMap = new ymaps.Map('map', { center: [64, 84], zoom: [3], type: 'yandex#hybrid', behaviors: ['default', 'scrollZoom'] });
myGeoObject = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [51.69428316, 39.33588350] },
properties: {balloonContentHeader: 'Воронеж:', balloonContent: 'QR410B, QR420А, QR440А, ER400A, ER405B, QR310'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]});
myGeoObject1 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [54.19380165, 37.61902750] },
properties: {balloonContentHeader: 'Тула:', balloonContent: 'QR410B, QR401B, ER402'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject2 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [50.06793848, 43.24595750] },
properties: {balloonContentHeader: 'Михайловка:', balloonContent: 'QR410B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject3 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [47.32647586, 40.14669194] },
properties: {balloonContentHeader: 'Новочеркасск:', balloonContent: 'ER401B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject4 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [56.62599941, 47.89812150] },
properties: {balloonContentHeader: 'Йошкар-Ола:', balloonContent: 'QR420AE'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject5 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [57.77365405, 40.92935550] },
properties: {balloonContentHeader: 'Кострома:', balloonContent: 'QR420AE'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject6 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [52.96814993, 36.08306150] },
properties: {balloonContentHeader: 'Орёл:', balloonContent: 'ER401, QR410B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject7 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [54.53382981, 36.23704150] },
properties: {balloonContentHeader: 'Калуга:', balloonContent: 'ER400'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject8 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [51.71719171, 36.18174150] },
properties: {balloonContentHeader: 'Курск:', balloonContent: 'ER401'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject9 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [52.60358426, 39.59759850] },
properties: {balloonContentHeader: 'Липецк:', balloonContent: 'ER401, QR410B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject10 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [44.45388998, 39.73439400] },
properties: {balloonContentHeader: 'Апшеронск:', balloonContent: 'ER401'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject11 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [62.16079083, 129.82373900] },
properties: {balloonContentHeader: 'Жатай:', balloonContent: 'ER401BE'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject12 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [50.58455209, 36.57367600] },
properties: {balloonContentHeader: 'Белгород:', balloonContent: 'QR410АЕ, QR420А, QR440А'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject13 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [57.00861008, 40.99670700] },
properties: {balloonContentHeader: 'Иваново:', balloonContent: 'QR440А'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject14 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [48.46072876, 135.05647950] },
properties: {balloonContentHeader: 'Хабаровск:', balloonContent: 'QR420А'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject15 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [51.79553408, 55.19747200] },
properties: {balloonContentHeader: 'Оренбург:', balloonContent: 'QR440А, ER405B, QR410B, ER401B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject16 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [52.72942198, 41.42807300] },
properties: {balloonContentHeader: 'Тамбов:', balloonContent: 'QR420А, ER401B, QR410В, ER401, ER400, QR420B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject17 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [59.55632017, 150.81307750] },
properties: {balloonContentHeader: 'Магадан:', balloonContent: 'QR420В'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject18 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [45.37065466, 41.70830250] },
properties: {balloonContentHeader: 'Изобильный:', balloonContent: 'ER401'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject19 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [55.75157389, 37.66174662] },
properties: {balloonContentHeader: 'Москва:', balloonContent: 'ER401, QR440АЕ, ER402B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject20 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [55.18844201, 34.29429500] },
properties: {balloonContentHeader: 'Вязьма:', balloonContent: 'QR410В, ER401B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject21 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [56.11970988, 40.34130900] },
properties: {balloonContentHeader: 'Владимир:', balloonContent: 'ER405А'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject22 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [62.71107459, 40.29033850] },
properties: {balloonContentHeader: 'Плесецк:', balloonContent: 'QR410B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject23 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [51.36528716, 42.09961350] },
properties: {balloonContentHeader: 'Борисоглебск:', balloonContent: 'QR410B, ER401B, ER405B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myGeoObject24 = new ymaps.GeoObject({ geometry: { type: "Point", coordinates: [50.19009936, 39.57476750] },
properties: {balloonContentHeader: 'Россошь:', balloonContent: 'ER401B, QR410B'}
}, {iconImageHref: '/src/point3.gif', iconImageSize: [10, 10]})
myMap.controls
.add('zoomControl', { left: 5, top: 5 })
.add('typeSelector')
myMap.geoObjects.add(myGeoObject24);
myMap.geoObjects.add(myGeoObject23);
myMap.geoObjects.add(myGeoObject22);
myMap.geoObjects.add(myGeoObject21);
myMap.geoObjects.add(myGeoObject20);
myMap.geoObjects.add(myGeoObject19);
myMap.geoObjects.add(myGeoObject18);
myMap.geoObjects.add(myGeoObject17);
myMap.geoObjects.add(myGeoObject16);
myMap.geoObjects.add(myGeoObject15);
myMap.geoObjects.add(myGeoObject14);
myMap.geoObjects.add(myGeoObject13);
myMap.geoObjects.add(myGeoObject12);
myMap.geoObjects.add(myGeoObject11);
myMap.geoObjects.add(myGeoObject10);
myMap.geoObjects.add(myGeoObject9);
myMap.geoObjects.add(myGeoObject8);
myMap.geoObjects.add(myGeoObject7);
myMap.geoObjects.add(myGeoObject6);
myMap.geoObjects.add(myGeoObject5);
myMap.geoObjects.add(myGeoObject4);
myMap.geoObjects.add(myGeoObject3);
myMap.geoObjects.add(myGeoObject2);
myMap.geoObjects.add(myGeoObject1);
myMap.geoObjects.add(myGeoObject);
}
</script>