Comments (1)
您好,world-geo-json-zh 是一个 JSON 格式的地图数据集,本身并不提供查询数据的 API,但是您可以将他改造为您需要的数据,下面是一个简单的例子。
// 加载 https://raw.githubusercontent.com/Surbowl/world-geo-json-zh/main/world.zh.json
var data = loadData();
var infos = data.features.map(a => a.properties);
var chinaRegionInfo = infos.find(c => c.iso_a2 === 'CN');
console.log(chinaRegionInfo);
from world-geo-json-zh.
Related Issues (11)
- **数据需要搞到**里面去 HOT 1
- 似乎钓鱼岛没有看到 HOT 1
- 数据的顺时针与逆时针问题 HOT 1
- 地图有问题,**应该在**里面 HOT 1
- 没有新加坡 HOT 1
- 有没有内地和港澳台四个单独拿出来绘制的版本呢 HOT 1
- 关于世界地图国家数量 HOT 2
- 关于名称更正 HOT 1
- 藏南地区国界问题 HOT 1
- 能提供没有经过 mapshaper 压缩后的版本吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from world-geo-json-zh.