0.1.18 • Published 1 month ago

geojson-cn v0.1.18

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

geojson-cn

使用

import json110000 from 'geojson-cn/json/110000.json'
import json110000 from 'geojson-cn/json-lite/110000.json'
import jsonCountries from 'geojson-cn/extra/countries.json'
import jsonCountries from 'geojson-cn/extra/countriesExclATA.json'
import jsonContinents from 'geojson-cn/extra/continents.json'
import {allArr, adcodeMap, levelJson, coordtransform} from 'geojson-cn'

coordtransform.bd09togcj02(117,39);
coordtransform.gcj02tobd09(117,39);
coordtransform.wgs84togcj02(117,39);
coordtransform.gcj02towgs84(117,39);

复制geojson数据到项目目录

// 默认复制到 /public 文件夹下
pnpm dlx geojson-cn

// 复制到指定文件夹
pnpm dlx geojson-cn --path=/path/to/your/folder
0.1.18

1 month ago

0.1.15

1 month ago

0.1.16

1 month ago

0.1.13

1 month ago

0.1.14

1 month ago

0.1.12

2 months ago

0.1.11

4 months ago

0.1.10

4 months ago

0.1.9

4 months ago

0.1.8

4 months ago

0.1.7

4 months ago

0.1.6

6 months ago

0.1.0

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.5

8 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago