Answer the question
In order to leave comments, you need to log in
How to make a cluster diagram together with remoteObjectManager?
Hello!
I want to display cluster labels in the form of a chart. I do it like this:
JS:
var remoteObjectManager = new ymaps.RemoteObjectManager(url, {
splitRequests: false,
clusterHasBalloon: true,
clusterHasHint: false,
clusterIconLayout: 'default#pieChart',
clusterIconPieChartRadius: 25,
clusterIconPieChartCoreRadius: 10,
clusterIconPieChartStrokeWidth: 3,
});
$item['id'] = 1;
$item['type'] = 'Cluster';
$item['number'] = 10;
$item['bbox'] = // ...;
$item['properties']['balloonContent'] = '';
$item['geometry']['type'] = 'Point';
$item['geometry']['coordinates'][0] = (float) $cluster['lat'];
$item['geometry']['coordinates'][1] = (float) $cluster['lng'];
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