Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

antvis/L7-boundary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b59b06f · Mar 20, 2023

History

82 Commits
Sep 17, 2020
Jul 21, 2021
Dec 22, 2021
Sep 7, 2020
Sep 11, 2020
Dec 24, 2020
Sep 7, 2020
Sep 7, 2020
Nov 11, 2021
Mar 20, 2023
Jul 1, 2021
Dec 13, 2021
Jul 1, 2021
Jul 1, 2021

Repository files navigation

LL7Boundary

L7Boundary 停止维护,建议替换使用 L7Plot Choropleth,详见

Getting Started

Install dependencies,

$ yarn install

Start the dev server,

$ yarn run start

Build documentation,

$ yarn run docs:build

Build library via father-build,

$ yarn run build

如何更新数据

import { setDataConfig } from '@antv/l7-district';
setDataConfig({
  country: {
    CHN: {
      1: {
        // 2. 市级地图 3.县级地图
        // 设置省级地图
        fill: {
          type: 'pbf', // 支持pbf 和 geojson  pbf 进行了数据压缩,减少数据量
          url:
            'https://gw.alipayobjects.com/os/bmw-prod/47af6305-062e-454f-9e8a-55e0808b2b7a.bin',
        },
      },
    },
  },
});

如何转成 pbf

可以将 GeoJSON 转成 Pbf