【发布时间】:2012-06-17 03:08:54
【问题描述】:
我想知道如何为jquery插件jvectormap http://jvectormap.com/创建或生成地图
该项目有几张地图: http://jvectormap.com/maps/
但我需要按州划分澳大利亚和新西兰的地图。在 github https://github.com/bjornd/jvectormap 的文档中,它说任何人都可以使用此命令生成地图:
python \
path/to/converter.py \
path/to/geo-data.shp \
path/to/resulting-map.js \
--width 900 \
--country_name_index 4 \
--where "ISO = 'USA'" \
--codes_file path/to/codes-en.tsv \
--insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]' \
--minimal_area 4000000 \
--buffer_distance -3000 \
--simplify_tolerance 1000 \
--longtitude0 10w \
--name us
但我认为它已经过时了,因为我按照文档所述下载了http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/,但当然没有用。
谁能告诉我如何为jvectormap生成澳大利亚和新西兰按州划分的地图??
谢谢
【问题讨论】:
标签: javascript jquery python jvectormap