0
내 프로젝트에 Yandex지도가 설치되어 있습니다.Yandex Maps API에서 클러스터 사용 안 함
아래 코드는 모든 개체의 클러스터보기를 표시합니다. 내가하고 싶은 무엇 는 것은 ymaps.geoQuery
좌표를 반환하지 않는다는 것입니다 비활성화 클러스터
$.getJSON(ymFormAction , "ymJSON=1").done(function (json) {
window.geoObjects = ymaps.geoQuery(json);
window.clusters = geoObjects.search("geometry.type == 'Point'").clusterize({preset: 'islands#invertedblueClusterIcons'});
myMap[[+idMap]].geoObjects.add(clusters);
// Trying to disable clusters
var coords = geoObjects;
// coords should be = [[56.023, 36.988]] according to API
var myCollection = new ymaps.GeoObjectCollection();
for (var i = 0; i<coords.length; i++) {
myCollection.add(new ymaps.Placemark(coords[i]));
}
myMap[[+idMap]].geoObjects.add(myCollection);
});
이를 내가 대답을 수정 한 빈지도 –
을 발생합니다. –