Answer the question
In order to leave comments, you need to log in
How to display data on Yandex map using LoadingObjectManager?
Good day. I'm trying to display elements on the Yandex map using LoadingObjectManager. I used to work with cards quite a bit, so I might not know something. The code:
ymaps.ready(function (ymaps) {
var Map = new ymaps.Map('mymap', {
center: [48.65,44.39],
zoom: 10,
controls: ["zoomControl", "fullscreenControl"]
});
var loadingObjectManager = new ymaps.LoadingObjectManager('url'+'?bbox=%b',
{
clusterize: true,
clusterHasBalloon: false,
geoObjectOpenBalloonOnClick: false
});
Map.geoObjects.add(loadingObjectManager);
});
callback_name({
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 0,
"geometry": {
"type": "Point",
"coordinates": [55.831903, 37.411961]
},
"properties": {
"balloonContent": "Содержимое балуна",
"clusterCaption": "Метка 1",
"hintContent": "Текст подсказки"
}
},
{
"type": "Feature",
"id": 2,
"geometry": {
"type": "Point",
"coordinates": [55.763338, 37.565466]
},
"properties": {
"balloonContent": "Содержимое балуна",
"clusterCaption": "Метка 2",
"hintContent": "Текст подсказки"
}
}
]
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question