@antv/l7plot
Geospatial Visualization Chart Library
Last updated 3 years ago by yanxiong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @antv/l7plot 
SYNC missed versions from official npm registry.

L7Plot

🌍 Geospatial Visualization Chart Library Based on L7.

Version Status Release Status Coverage Status Percentage of issues still open 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

$ npm install @antv/l7 @antv/l7plot

🔨 Usage

<div id="container"></div>
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

# 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 first.

To become a contributor, please follow our contributing guide.

License

MIT

Current Tags

  • 0.5.11                                ...           latest (2 years ago)

51 Versions

  • 0.5.11                                ...           2 years ago
  • 0.5.10                                ...           2 years ago
  • 0.5.9                                ...           3 years ago
  • 0.5.8                                ...           3 years ago
  • 0.5.7                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.13                                ...           4 years ago
  • 0.0.12                                ...           4 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.10                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.4-alpha.1 [deprecated]           ...           5 years ago
  • 0.0.3-alpha.11                                ...           5 years ago
  • 0.0.3-alpha.10                                ...           5 years ago
  • 0.0.3-alpha.9                                ...           5 years ago
  • 0.0.3-alpha.8                                ...           5 years ago
  • 0.0.3-alpha.7                                ...           5 years ago
  • 0.0.3-alpha.6                                ...           5 years ago
  • 0.0.3-alpha.5                                ...           5 years ago
  • 0.0.3-alpha.2                                ...           5 years ago
  • 0.0.3-alpha.1                                ...           5 years ago
  • 0.0.3-alpha.0                                ...           5 years ago
  • 0.0.2-alpha.2                                ...           5 years ago
  • 0.0.2-alpha.1                                ...           5 years ago
  • 0.0.2-alpha.0                                ...           5 years ago
  • 0.0.1-alpha.4                                ...           5 years ago
  • 0.0.1-alpha.3                                ...           5 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE