MCPcopy
hub / github.com/apache/echarts / buildAllMapSeriesGroups

Function buildAllMapSeriesGroups

src/chart/map/MapSeries.ts:406–418  ·  view source on GitHub ↗
(ecModel: GlobalModel, beforeSeriesFiltering?: boolean)

Source from the content-addressed store, hash-verified

404 * to render map (via its `MapDraw`).
405 */
406export function buildAllMapSeriesGroups(ecModel: GlobalModel, beforeSeriesFiltering?: boolean): AllMapSeriesGroups {
407 const allMapSeriesGroups: AllMapSeriesGroups = {};
408 ecModel.eachRawSeriesByType(SERIES_TYPE_MAP, function (seriesModel: MapSeries) {
409 const hostGeoModel = seriesModel.getHostGeoModel();
410 const key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();
411 const group = allMapSeriesGroups[key] = allMapSeriesGroups[key] || {f: [], r: []};
412 if (!ecModel.isSeriesFiltered(seriesModel) && !beforeSeriesFiltering) {
413 group.f.push(seriesModel);
414 }
415 group.r.push(seriesModel);
416 });
417 return allMapSeriesGroups;
418}
419
420export default MapSeries;

Callers 3

mapSymbolLayoutFunction · 0.90
mapDataStatisticFunction · 0.90
createMethod · 0.90

Calls 4

eachRawSeriesByTypeMethod · 0.80
getHostGeoModelMethod · 0.80
getMapTypeMethod · 0.80
isSeriesFilteredMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…