K
K
KurtsKhalia2018-07-25 03:27:07
Yandex maps
KurtsKhalia, 2018-07-25 03:27:07

How to enable clustering when loading data from a gpx file?

There is such a code with displaying labels from the list.gpx file, please tell me how to enable clustering.

ymaps.ready(init);
var myMap;

function init(){
  myMap = new ymaps.Map("map", {
    center: [55.76, 37.64],
    zoom: 7
  });


  
  
  var data = ymaps.geoXml.load("list.gpx");


data.then(function(res) {

    myMap.geoObjects.add(res.geoObjects);
});

  myMap.behaviors.disable('scrollZoom');
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question