chfw opened a new pull request #10573: Add ji zhou district. 
URL: https://github.com/apache/incubator-echarts/pull/10573
 
 
   ## Description
   
   1. added minified js version of tianjin geojson map
   2. after utf8 decoding, the geosjon can be used by non-echarts tools
   3. geoshape comes from open street map
   
   ## How could I do similar patches in the future?
   
   The work is documented 
[here](https://echarts-maps.github.io/echarts-geomapping-book-zh/howtos/add-ji-zhou-qu-to-tianjin/).
 You are welcome to join [echarts-maps](https://github.com/echarts-maps) 
organisation. Together in open source way, we make our understanding(echarts 
understanding) of the world better.
   
   geojson view:
   
   <img width="371" alt="Screenshot 2019-05-29 at 07 42 04" 
src="https://user-images.githubusercontent.com/4280312/58535200-45336200-81e5-11e9-942b-ac719c97ae58.png";>
   
   
   ## How to make a js from a geojson file?
   
   ```
   $ npm install -g echarts-mapmaker
   $ makejs your_shape.geojson your_output.js 
map_name_to_be_used_in_echarts__map_type
   ```
   
   ## How to get a standard geojson from echarts' UTF8-encoded tianjin.json?
   
   ```
   $ decode tianjin.json the_standard_tianjin.geojson
   ```
   
   The output file can be used together with other GIS tools, such as 
geojson.io.
   
   ## How to get a standard geojson from echarts' UTF8-encoded tianjin.js?
   
   Yes, from js file, you can do this:
   
   ```
   $ decompress tianjin.js the_standard_tianjin.geojson
   ```
   
   ## Can I use above commands on any other echarts map files?
   
   Yes, you can!!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to