yandex-maps-unofficial / vue-yandex-map

Yandex Maps Component for VueJS
MIT License
359 stars 103 forks source link

Вопрос по кластеризации #17

Closed alex-lit closed 6 years ago

alex-lit commented 6 years ago

Есть ли возможность использовать кластеризацию при добавлении маркера через св-во placemark компонента yandexMap?

PNKBizz commented 6 years ago

Нет, к сожалению, как и навешивание коллбэка. Над этим еще предстоит поработать

PNKBizz commented 6 years ago

Придумал решение, в ближайшее время выкачу обновление с этой фичей

PNKBizz commented 6 years ago

data() {
  return {
    placemarks: [
      {
        coords: [54.8, 39.8],
        properties: {}, // define properties here
        options: {}, // define options here
        clusterName: "1",
        callbacks: { click: function() {} }
      }
    ]
  }
}
alex-lit commented 6 years ago

Огонь!