xspanger3770 / GlobalQuake

Experimental application for monitoring earthquakes world-wide in near real time. Capable of issuing its own earthquake early warnings (EEW).
MIT License
318 stars 47 forks source link

How to Modify or Customize Map Boundaries? #210

Closed azzbm closed 7 months ago

azzbm commented 7 months ago

Due to the censorship policies in mainland China, it is not possible to publish videos that omit the "Tibet" region. This restriction prevents the publication of content containing this software. How can I modify the map boundaries to comply with the censorship policies in mainland China?

YacineBoussoufa commented 7 months ago

I tried searching for the entry "Tibet" and haven't found anything could you provide more informations? Was the name displayed on top left as "Tibet, China" or only "Tibet"?

azzbm commented 7 months ago

我尝试搜索“西藏”条目,但没有找到任何东西,你能提供更多信息吗?左上角显示的名字是“中国西藏”还是只显示“西藏”?

image I am referring to the map of southern Tibet, which is currently under the effective control of India. However, China claims sovereignty over a portion of it (the area depicted in the attached image). I would like to modify the borders to include this region as part of China. Is it possible to achieve this by modifying certain files?

YacineBoussoufa commented 7 months ago

Currently there is no way to change the map, in the future we will change the base map, with one with better quality and we'll edit this part. If you have any official geojson file of China (we need just the link) we'll see what we can do.

WilliamHarrisonGB commented 7 months ago

Here you go! I made CCP compliant GlobalQuake, You have to modify the (geo)json files on the polygons folder to edit the borders. its a rough outline but should work, I also edited the regions so it shows up as China (with Taiwan included). I might make a fork so that you can download it for future GlobalQuake versions. https://file.io/CUubXz4XKgAO, download link, github limits file sizes at 25MB so i had to upload it elsewhere image

azzbm commented 7 months ago

Here you go! I made CCP compliant GlobalQuake, You have to modify the (geo)json files on the polygons folder to edit the borders. its a rough outline but should work, I also edited the regions so it shows up as China (with Taiwan included). I might make a fork so that you can download it for future GlobalQuake versions. https://file.io/CUubXz4XKgAO, download link, github limits file sizes at 25MB so i had to upload it elsewhere image

Thank you very much for your response. I have a GeoJSON file that complies with the Chinese government standards. The link is https://[geo.datav.aliyun.com/areas_v3/bound/100000_full.json](https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json). You can use this JSON to generate a map that meets the requirements of the Chinese government. It would be great if you could consider adding an option in the settings to allow users to change the map based on specific territorial requirements of different countries. If possible, could you compile a special version of the JAR file specifically for China using this JSON to address potential reviews?

azzbm commented 7 months ago

If you don't have access to the json link you can use this file geo_cn.json

azzbm commented 7 months ago

If you don't have access to the json link you can use this file geo_cn.json

This file provides precision down to each province and direct-controlled municipality in China. Perhaps you could format this file into 'polygons_converted' to display a high-quality map of China. If you only need the GeoJSON for the borders of China, please let me know, and I can search for that specifically.