MCPcopy
hub / github.com/antvis/L7 / map

Function map

packages/source/src/transform/map.ts:2–8  ·  view source on GitHub ↗
(data: IParserData, options: { [key: string]: any })

Source from the content-addressed store, hash-verified

1import type { IParserData } from '@antv/l7-core';
2export function map(data: IParserData, options: { [key: string]: any }) {
3 const { callback } = options;
4 if (callback) {
5 data.dataArray = data.dataArray.map(callback);
6 }
7 return data;
8}

Callers 2

aFunction · 0.50
aCFunction · 0.50

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected