Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antvis/l7plot
đ Geospatial Visualization Chart Library
https://github.com/antvis/l7plot
amap-js-api antvis data-visualization geojson geospatial geospatial-visualization gis l7 map mapbox-gl-js plot visualization
Last synced: about 3 hours ago
JSON representation
đ Geospatial Visualization Chart Library
- Host: GitHub
- URL: https://github.com/antvis/l7plot
- Owner: antvis
- License: mit
- Created: 2021-06-22T09:19:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T15:02:48.000Z (4 months ago)
- Last Synced: 2024-10-29T21:05:31.309Z (17 days ago)
- Topics: amap-js-api, antvis, data-visualization, geojson, geospatial, geospatial-visualization, gis, l7, map, mapbox-gl-js, plot, visualization
- Language: TypeScript
- Homepage: https://l7plot.antv.antgroup.com
- Size: 5.03 MB
- Stars: 84
- Watchers: 21
- Forks: 23
- Open Issues: 17
-
Metadata Files:
- Readme: README.en-US.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
English | [įŽäŊä¸æ](./README.md)
L7Plot
đ Geospatial Visualization Chart Library Based on L7.
[![Version](https://badgen.net/npm/v/@antv/l7plot)](https://npmjs.com/@antv/l7plot)
![Status](https://badgen.net/github/status/antvis/L7Plot)
[![Release Status](https://github.com/antvis/L7Plot/workflows/release/badge.svg?branch=master)](https://github.com/antvis/L7Plot/actions?query=workflow:release)
[![Coverage Status](https://coveralls.io/repos/github/antvis/L7Plot/badge.svg)](https://coveralls.io/github/antvis/L7Plot)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/l7plot.svg)](http://isitmaintained.com/project/antvis/l7plot 'Percentage of issues still open')
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/antvis/l7plot.svg)](http://isitmaintained.com/project/antvis/l7plot 'Average time to resolve an issue')
Website âĸ
Quick Start âĸ
API âĸ
Example
## ⨠Features
- đĻ Out of the box: configurable geographic charts with built-in multi granularity administrative data
- đ Rich elements: rich chart types and map components, multi map basemap suppor
- đ¯ Easy to customize: data driven, from number to shape, support multi-layer and multi map surface stacking
- đą Dynamic interaction: strong chart interaction ability, support 2 / 3D perspective, and provide command dynamic interaction API## đĻ Installation
```bash
$ npm install @antv/l7 @antv/l7plot
```## đ¨ Usage
```html
``````ts
import { Dot } from '@antv/l7plot';const data = [
{ lng: 103.715, lat: 31.211, depth: 10, mag: 5.8, title: 'M 5.8 - eastern Sichuan, China' },
{ lng: 104.682, lat: 31.342, depth: 10, mag: 5.7, title: 'M 5.7 - eastern Sichuan, China' },
// ...
];const dot = new Dot('container', {
map: {
type: 'mapbox',
style: 'light',
center: [103.447303, 31.753574],
zoom: 7,
},
autoFit: true,
source: {
data: data,
parser: { type: 'json', x: 'lng', y: 'lat' },
},
color: {
field: 'mag',
value: ['#82cf9c', '#10b3b0', '#2033ab'],
scale: { type: 'quantize' },
},
size: {
field: 'mag',
value: ({ mag }) => (mag - 4.3) * 10,
},
state: { active: true },
scale: { position: 'bottomright' },
legend: { position: 'bottomleft' },
tooltip: {
items: ['title', 'mag', 'depth'],
},
});
```## Local Development
```bash
# Global installation yarn
$ npm install yarn -g# Install project dependencies
$ yarn bootstrap# Compile each package in real time and start the storybook
$ yarn dev# Run website
$ yarn dev-website# Run unit tests
$ yarn test# open electron for unit tests
$ yarn test-live
```## đ¤ How to Contribute
Your contributions are always welcome! Please Do have a look at the [issues](https://github.com/antvis/l7plot/issues) first.
To become a contributor, please follow our [contributing guide](https://github.com/antvis/l7plot/blob/master/CONTRIBUTING.md).
## License
MIT