Answer the question
In order to leave comments, you need to log in
How to show all marks on Yandex map?
The following script is used to load labels
function LoadObjects(myMap) {
myMap.geoObjects.remove(loadingObjectManager);
loadingObjectManager = new ymaps.LoadingObjectManager(url + '?bbox=%b',
{
clusterize: true,
clusterHasBalloon: true,
geoObjectOpenBalloonOnClick: true,
clusterOpenBalloonOnClick: true
});
myMap.geoObjects.add(loadingObjectManager);
};
ymaps.ready(function () {
var myMap = new ymaps.Map("map", {
center: [@centerYandexMap],
zoom: 12,
controls: ['fullscreenControl', 'geolocationControl', 'typeSelector', 'zoomControl']
}, {
avoidFractionalZoom: false
});
if (параметр == 'True') {
LoadObjects(myMap);
myMap.setBounds(myMap.geoObjects.getBounds());
}
$(window).resize(function () {
myMap.container.fitToViewport();
});
});
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