Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GrView = document.getElementById('GridView3');
- for(var i=1; i<GrView.rows.length;i++)
- {
- id = GrView.rows[i].cells[1].innerHTML.toString();
- x = GrView.rows[i].cells[6].innerHTML.toString();
- y = GrView.rows[i].cells[7].innerHTML.toString();
- myGeoObject = new ymaps.GeoObject({
- // Описание геометрии.
- geometry: {
- type: "Point",
- coordinates: [parseFloat(x), parseFloat(y)]
- },
- // Свойства.
- properties: {
- balloonPanelMaxMapArea: 'Infinity',
- iconContent: id
- }
- }, {
- // Опции.
- // Иконка метки будет растягиваться под размер ее содержимого.
- preset: 'twirl#blueStretchyIcon',
- // Метку можно перемещать.
- draggable: false
- });
- myMap.geoObjects.add(myGeoObject);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement