Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. GrView = document.getElementById('GridView3');
  2. for(var i=1; i<GrView.rows.length;i++)
  3. {
  4. id = GrView.rows[i].cells[1].innerHTML.toString();
  5. x = GrView.rows[i].cells[6].innerHTML.toString();
  6. y = GrView.rows[i].cells[7].innerHTML.toString();
  7.  
  8. myGeoObject = new ymaps.GeoObject({
  9. // Описание геометрии.
  10. geometry: {
  11. type: "Point",
  12. coordinates: [parseFloat(x), parseFloat(y)]
  13.  
  14. },
  15. // Свойства.
  16. properties: {
  17. balloonPanelMaxMapArea: 'Infinity',
  18. iconContent: id
  19. }
  20. }, {
  21. // Опции.
  22. // Иконка метки будет растягиваться под размер ее содержимого.
  23. preset: 'twirl#blueStretchyIcon',
  24. // Метку можно перемещать.
  25. draggable: false
  26. });
  27.  
  28. myMap.geoObjects.add(myGeoObject);
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement