Overview
Problem
Currently, Beijing, Shanghai, Tianjin, Chongqing, Taiwan (China), Hong Kong Special Administrative Region, and Macao Special Administrative Region are at the Province/City/Autonomous Region level in the FineBI map.
They cannot be matched with the City level when you create a map, as shown in the following figure.
This document introduces how to match directly-administrative municipalities, Taiwan (China), and special administrative regions with the City level in detail.
Solution
Create JSON files for these regions and add JSON files to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path (where FineBI JSON files are stored).
Method One: JSON File Download
JSON File Download
1. You can download the JSON file JSON File Package.rar.
Decompress the JSON file package and add files in the JSON package to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path, as shown in the following figure.
JSON File Taking Effect
Log in to the system as the admin, choose System Management > Map Configuration, and click Sync Geo File, as shown in the following figure.
Method Two: Custom the JSON File of the Directly-Administered Municipality/Taiwan (China)/Special Administrative Region
Take the Macao Special Administrative Region as an example. The same operation can be applied to other regions.
JSP File Creation
Add two empty JSON files in the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\China\ path, as shown in the following figure.
JSON File Edit
1. Open the Macao Special Administrative Region-area.json and the Macao Special Administrative Region-point.json files through an editor and add the same code to both of these two empty files, as shown in the following figure.
The code is as follows:
{
"type": "FeatureCollection",
"features": []
}
2. Return to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\ path, open the China-area.json file, copy and paste the Feature structure of the Macao Special Administrative Region to the features: [] array in the Macao Special Administrative Region-area.json file, and save the file, as shown in the following figure.
3. Return to the %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\geographic\world\ path, open the China-point.json file, copy and paste the Feature structure of the Macao Special Administrative Region to the features: [] array in the Macao Special Administrative Region-point.json file, and save the file, as shown in the following figure.
4. After completion, you can refer to section "JSON File Taking Effect" to make the JSON file effective.
Map Configuration
Log in to the FineBI system, choose System Management > Map Configuration > Geographic Information > Area to view that the Macao Special Administrative Region has been added to the City level, as shown in the following figure.
Geographical Region Match (City)
1. Create a component through the data Regional Data Analysis, select Geographical Role from the drop-down list of the City field, and choose City from the shortcut menu, as shown in the following figure.
2. You can view that Macao Special Administrative Region in the City field can match Macao Special Administrative Region in the City level, as shown in the following figure.