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

    1 answer 1

    The data for the ObjectManager must contain unique id fields for each geoobject.

     { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, ... },{ "type": "Feature", "id": 1, ... } ] } 

    Also, coordinates should be correctly written with an array of two elements:

     "coordinates": [55.831903, 37.411961] 

    Example: https://jsfiddle.net/10mqLvfw/

    • Thank you, it works. Yes, and the coordinates in my code are indicated by an array. It is here in the question I incorrectly prescribed. - Kir