1

Yandex map api v2 shows objects on map well. When I execute in browser console:

window.myMap.geoObjects.each(function(obj){console.log(obj.geometry);})

It prints

s {_Mh: Array[2], events: s, options: o, _S: l, _Xr: s…}
_Bb: Array[2]
_EC: 3
_GC: Array[2]
_HC: s
_Mh: Array[2]
_S: l
_Xr: s
events: s
options: o
__proto__: Object

I want to get coordinates of every geo object on map. Where are they?

4

1 回答 1

3
window.myMap.geoObjects.each(function(obj) {
  console.log(obj.geometry.getCoordinates());
});
于 2013-08-01T16:15:02.947 回答