Quantcast
Channel: Клуб API Карт
Viewing all articles
Browse latest Browse all 7380

e.get('coords') = undefined (координаты события)

$
0
0

var work_object=new ymaps.GeoObject({geometry:{type:"Polygon",coordinates:[]}});
work_object.editor.events.add("vertexdraw", function (e) {alert(e.get('coords'));});
myMap.geoObjects.add(work_object);
work_object.editor.startDrawing();

 

почему возвращает undefined?

.

Viewing all articles
Browse latest Browse all 7380

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>