dkaoster / taiwan-atlas Goto Github PK
View Code? Open in Web Editor NEWPre-built TopoJSON from the Ministry of the Interior.
Home Page: https://observablehq.com/@dkaoster/taiwan-map
License: MIT License
Pre-built TopoJSON from the Ministry of the Interior.
Home Page: https://observablehq.com/@dkaoster/taiwan-map
License: MIT License
The data that comes in from the ministry of the interior uses 臺, but should default it to 台.
@dkaoster
Thanks in advance for your awesome work.
But I got an issue to render your preprojected towns-mercator-10t.json file
I use following code in react to render a president election map
const rawProject: GeoRawProjection = function (x, y) {
return [x, -y];
};
function myProjection() {
return geoProjection(rawProject).precision(0).scale(2).translate([0, 0]);
}
const pathGenerator = d3.geoPath().projection(myProjection);
useEffect(() => {
const g1 = d3.select(countiesRef.current);
g1.selectAll("path")
.data(counties.features)
.join("path")
.attr("fill", (feature) => countyColor(feature.properties.countyName))
.attr("stroke", grey[200])
.attr("stroke-width", 1)
.attr("d", (feature) => pathGenerator(feature));
}, [myProjection, pathGenerator]);
Could you help me to fix this?
There are some weird extra lines in the non-projected map, that should be fixed.
Turns out, the shp files only contain the english names of the localities for the layer that shp file is for. In other words, the village shp file only has the english names for villages, not towns and counties. Therefore, there needs to be a properties processing step to get all the locality names right and also to help with #9.
Add frames to translated islands.
Because Taiwan's legislative districts do not directly correspond with either its towns
or villages
, add an extra layer for legislative districts.
In order to make it easier to publish and version maps by date (boundaries change), change versioning to be done by date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.