I deduce labels on the map with the help of objectManager. Does not open when clicking balun single tags. When you click on the grouped balun is displayed normally. Here is the calling card:
var myMap, geoObjects, objectManager, arr_check = []; ymaps.ready(init); function init() { myMap = new ymaps.Map('map', { center: [".$last_gps."], zoom: 14, type: 'yandex#satellite' }, { searchControlProvider: 'yandex#search' }); objectManager = new ymaps.ObjectManager({ clusterize: true, gridSize: 32, clusterDisableClickZoom: true }); objectManager.objects.options.set('preset', 'islands#grayDotIcon'); objectManager.clusters.options.set('preset', 'islands#grayClusterIcons'); myMap.geoObjects.add(objectManager); $.ajax({ url: 'panel_json.php', type: 'post', dataType: 'json', data: {arrp:arr_check} }).done(function(data) { objectManager.add(data); geoObjects = ymaps.geoQuery(data) .applyBoundsToMap(myMap, { checkZoomRange: true }); }); myMap.geoObjects.add(objectManager); };
JSON accept this type:
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": "55.831903, 37.411961" }, "properties": { "balloonContent": "<a href=\'more.php?id=1\'>ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅</a>", "hintContent": "ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅", "clusterCaption": "ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅" }, "options": { "preset": "islands#icon", "iconColor": "#00AA00" } } ]
}
An example was taken here https://tech.yandex.ru/maps/jsbox/2.1/object_manager