;
var myGeoObjects=[], clusterer=[], temppoint; yamaps_claster_grid=64;
ymaps.ready(function (){
if(yamaps_claster_vars.claster_value!==undefined){yamaps_claster_grid=yamaps_claster_vars.claster_value; }
function defer(method){
if(myMap0!=undefined){
method();
}
else
setTimeout(function(){ defer(method) }, 50);
}
defer(()=> {
var mapcounti, placemarki;
for (mapcounti=0; mapcounti<Object.keys(YaMapsWP).length; mapcounti++){
myGeoObjects[mapcounti]=[];
window['myMap'+mapcounti].geoObjects.removeAll();
clusterer[mapcounti]=new ymaps.Clusterer({
clusterIconLayout: 'default#pieChart',
clusterIconPieChartRadius: 25,
clusterIconPieChartCoreRadius: 15,
clusterIconPieChartStrokeWidth: 3,
hasBalloon: false
});
for (placemarki=1; placemarki<Object.keys(YaMapsWP['myMap'+mapcounti].places).length+1; placemarki++){
myGeoObjects[mapcounti].push(window['myMap'+mapcounti+'placemark'+placemarki]);
}
clusterer[mapcounti].options.set({
gridSize: yamaps_claster_grid
});
clusterer[mapcounti].add(myGeoObjects[mapcounti]);
window['myMap'+mapcounti].geoObjects.add(clusterer[mapcounti]);
}});
});