taiwan-icon.svg
Contour plein et simple — parfait pour icônes, favicons et boutons.
Archive cartographique ouverte
SVG, GeoJSON, TopoJSON — un ensemble de données cartographiques open source complet pour développeurs, designers et chercheurs.
Demandez à n'importe quel générateur d'images IA de dessiner Taïwan et observez le résultat. Il produit généralement une masse arrondie et trapue, quelque part entre une olive et une pomme de terre. Taïwan n'est pas une olive. C'est une patate douce de 394 kilomètres de long, avec une chaîne de montagnes centrale et plus de 100 îles au large.
Avoir la bonne forme n'est pas un caprice de design — c'est une question d'identité. Cette page rassemble toutes les ressources open source que nous utilisons sur taiwan.md afin que chacun puisse représenter Taïwan avec précision dans son propre projet.
Quatre fichiers SVG sélectionnés, tous sous CC / domaine public. Intégrez-les directement dans n'importe quel site web, application ou fichier de design.
Contour plein et simple — parfait pour icônes, favicons et boutons.
Carte de localisation avec grille lat/lon et repères de villes.
Limites des comtés — divisions administratives en couleur.
<!-- HTML -->
<img src="https://taiwan.md/assets/svg/taiwan-icon-wiki.svg" alt="Taiwan" width="200">
/* CSS */
background-image: url('https://taiwan.md/assets/svg/taiwan-icon-wiki.svg');
<!-- Markdown -->
 Tous les SVG sont sous licence Creative Commons ou dans le domaine public. Attribution appréciée mais non obligatoire.
Pour les cartes interactives — zoom, survol, remplissage par valeur de données — vous avez besoin de coordonnées géographiques réelles, pas seulement de chemins SVG. Nous fournissons des fichiers TopoJSON extraits de taiwan-vue-components de Waiting (licence MIT, 2018).
Le TopoJSON est du GeoJSON compressé : les frontières partagées entre comtés ne sont stockées qu'une seule fois, réduisant la taille des fichiers de 80 %. Il peut être converti en GeoJSON à la volée avec topojson-client.
TopoJSON : taille de fichier réduite, topologie partagée entre régions adjacentes, le bon choix pour les cartes web.
GeoJSON : format plus simple, compatibilité directe avec Python geopandas, QGIS et la plupart des outils SIG.
Fichier TopoJSON d'environ 21 Ko contenant les 22 comtés et municipalités spéciales en tant qu'entités distinctes. Parfait pour les cartes choroplèthes.
taiwan-country.topo.jsonNous fournissons les fichiers au niveau canton pour les 22 comtés et villes, tous extraits du même dépôt source.
taiwan-towns-63000.topo.json taiwan-towns-64000.topo.json taiwan-towns-65000.topo.json taiwan-towns-66000.topo.json taiwan-towns-67000.topo.json taiwan-towns-68000.topo.json taiwan-towns-10002.topo.json taiwan-towns-10004.topo.json taiwan-towns-10005.topo.json taiwan-towns-10007.topo.json taiwan-towns-10008.topo.json taiwan-towns-10009.topo.json taiwan-towns-10010.topo.json taiwan-towns-10013.topo.json taiwan-towns-10014.topo.json taiwan-towns-10015.topo.json taiwan-towns-10016.topo.json taiwan-towns-10017.topo.json taiwan-towns-10018.topo.json taiwan-towns-10020.topo.json taiwan-towns-09007.topo.json taiwan-towns-09020.topo.json Tous les 22 comtés et villes sont inclus ci-dessus. Les données de limites des cantons proviennent de github.com/waiting7777/taiwan-vue-components,MIT License © 2018 Waiting。
Les divisions administratives de Taïwan utilisent des codes numériques. Voici le tableau de référence pour les 22 divisions au niveau du comté (le nommage des fichiers suit le format `towns-{code}.json`).
| Code | Division | Type |
|---|---|---|
63000 | 臺北市 Taipei | municipality |
64000 | 高雄市 Kaohsiung | municipality |
65000 | 新北市 New Taipei | municipality |
66000 | 臺中市 Taichung | municipality |
67000 | 臺南市 Tainan | municipality |
68000 | 桃園市 Taoyuan | municipality |
10002 | 宜蘭縣 Yilan | county |
10004 | 新竹縣 Hsinchu | county |
10005 | 苗栗縣 Miaoli | county |
10007 | 彰化縣 Changhua | county |
10008 | 南投縣 Nantou | county |
10009 | 雲林縣 Yunlin | county |
10010 | 嘉義縣 Chiayi | county |
10013 | 屏東縣 Pingtung | county |
10014 | 臺東縣 Taitung | county |
10015 | 花蓮縣 Hualien | county |
10016 | 澎湖縣 Penghu | county |
10017 | 基隆市 Keelung | city |
10018 | 新竹市 Hsinchu City | city |
10020 | 嘉義市 Chiayi City | city |
09007 | 連江縣 Lienchiang (Matsu) | offshore |
09020 | 金門縣 Kinmen | offshore |
// D3.js v7 + topojson-client
import * as d3 from 'd3';
import * as topojson from 'topojson-client';
const topo = await d3.json('https://taiwan.md/assets/geo/taiwan-country.topo.json');
const counties = topojson.feature(topo, topo.objects.map);
const projection = d3.geoMercator()
.center([121, 24])
.scale(8000)
.translate([400, 300]);
const path = d3.geoPath().projection(projection);
d3.select('svg')
.selectAll('path')
.data(counties.features)
.join('path')
.attr('d', path)
.attr('fill', d => colorScale(d.properties.value))
.attr('stroke', '#333'); # Python — convert TopoJSON to GeoDataFrame
import json, geopandas as gpd
from topojson import Topology
with open('taiwan-country.topo.json') as f:
topo = json.load(f)
# Convert to GeoJSON
topology = Topology(topo)
gdf = gpd.GeoDataFrame.from_features(
topology.to_geojson()['features']
)
gdf.plot(column='name', legend=True) // Leaflet + topojson
import L from 'leaflet';
import * as topojson from 'topojson-client';
const map = L.map('map').setView([24, 121], 7);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
fetch('https://taiwan.md/assets/geo/taiwan-country.topo.json')
.then(r => r.json())
.then(topo => {
const geojson = topojson.feature(topo, topo.objects.map);
L.geoJSON(geojson, {
style: { color: '#4a90e2', weight: 1, fillOpacity: 0.3 }
}).addTo(map);
}); // Vue 2 — taiwan-vue-components (original source)
npm install taiwan-vue-components
// In your Vue component
import { Country, Taipei, Kaohsiung } from 'taiwan-vue-components';
<template>
<div>
<Country :width="400" :height="600" fill="#f0f0f0" stroke="#333" />
<Taipei :width="300" :height="300" />
</div>
</template> Si vous avez besoin de plus que ce qui est fourni ici — résolution supérieure, projections différentes, limites administratives historiques — voici les sources que nous recommandons :
Chaque fichier de cette page est open source. Voici les origines et licences exactes :