
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@antv/l7-mapkit
Advanced tools
React components for AntV L7 geospatial visualization library. Built on React 18+ and @antv/l7 2.25+.
colorField, sizeValues, shape instead of nested objectsonClick, onMouseEnter) without separate event componentsllms.txt and comprehensive API docs for AI assistantsnpm install @antv/l7-mapkit @antv/l7 @antv/l7-maps
import { GaodeMapScene, PointLayer } from '@antv/l7-mapkit';
const data = {
type: 'FeatureCollection',
features: [
{ type: 'Feature', geometry: { type: 'Point', coordinates: [120.19, 30.26] }, properties: { value: 80 } },
{ type: 'Feature', geometry: { type: 'Point', coordinates: [121.47, 31.23] }, properties: { value: 120 } },
],
};
function App() {
return (
<GaodeMapScene
style={{ width: '100%', height: '400px' }}
mapConfig={{ zoom: 7, center: [120.5, 30.8] }}
>
<PointLayer
source={data}
colorField="value"
colorValues={['#fee5d9', '#fc4e2a', '#800026']}
size={8}
shape="circle"
onClick={(e) => console.log(e.feature.properties)}
/>
</GaodeMapScene>
);
}
<GaodeMapScene> - Gaode Map container component<MapScene> - Built-in map container (no third-party dependency)All layer components share the same flat props interface:
<PointLayer> - Point/scatter layer<LineLayer> - Line/path layer (supports arc, greatcircle shapes)<PolygonLayer> - Polygon/area layer<HeatmapLayer> - Heatmap layer (2D/3D/hexagon/grid)<RasterLayer> - Raster/tile layer<ImageLayer> - Image overlay layer<CityBuildingLayer> - 3D building layer<Marker> - Map marker with custom React content<MarkerLayer> - Batch markers with clustering support<Popup> - Map popup with custom React content<Control> - Built-in controls (zoom/scale/logo/layerSwitch/etc.)<CustomControl> - Custom control with any React content<LoadImage> / <LoadImages> - Load image resourcesuseScene() - Get current Scene instance (must be used inside Scene components)useLayer() - Get current Layer instance (must be used inside layer children)| Prop | Type | Description |
|---|---|---|
source | any | Data source (GeoJSON/array/URL) required |
sourceConfig | object | Data parser config { parser: { type: 'json', x: 'lng', y: 'lat' } } |
color | string | Fixed color value |
colorField | string | Color mapping field name |
colorValues | string[] | fn | Color mapping values or callback |
size | number | Fixed size in pixels |
sizeField | string | Size mapping field name |
sizeValues | number[] | fn | Size mapping range [min, max] |
shape | string | Shape type (circle/triangle/arc/etc.) |
style | object | Layer style { opacity, stroke, strokeWidth } |
filterField | string | Filter field name |
filterValues | any[] | fn | Filter values or callback |
animate | object | Animation config { enable, speed, trailLength } |
active | boolean | object | Hover highlight |
select | boolean | object | Click selection |
onClick | fn | Click event handler |
onMouseEnter | fn | Mouse enter handler |
onMouseLeave | fn | Mouse leave handler |
onLoaded | fn(layer, scene) | Layer loaded callback |
L7-MapKit 3.0 is a complete rewrite with breaking changes:
<PointLayer
source={{ data }}
color={{ field: 'value', values: ['red', 'blue'] }}
size={{ field: 'count', values: [5, 20] }}
/>
<LayerEvent type="click" handler={handleClick} />
<PointLayer
source={data}
colorField="value"
colorValues={['red', 'blue']}
sizeField="count"
sizeValues={[5, 20]}
onClick={handleClick}
/>
Key changes:
LayerEvent/SceneEvent)useId, strict mode safe)# Install dependencies
npm install
# Type check
npm run type-check
# Build
npm run build
# Watch mode
npm run dev
MIT
FAQs
React components for AntV L7 geospatial visualization
The npm package @antv/l7-mapkit receives a total of 79 weekly downloads. As such, @antv/l7-mapkit popularity was classified as not popular.
We found that @antv/l7-mapkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 72 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.