反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Custom map JSON resources

  • Recent Updates: April 25, 2022
  • 1. Overview

    1.1 Application scenarios

    There are currently two ways to set the map boundary: geographic information and custom pictures.

    Among them, geographic information is the actual geographic map, and the degree of freedom of custom pictures is relatively high, and any picture can be used as the boundary of the map.

    FineBI has built-in some geographic information and custom picture resources, which users can use directly. But if you want to customize these two resources yourself, what should you do?

    1.png

    1.2 Function introduction

    • For the method of customizing geographic information, please refer to the document: geographic information. The generated JSON file is saved to %FineBI_HOME%\webroot\WEB-INF\assets\map\geographic\world.

    • For the method of customizing the picture, please refer to the document: Customize pictures as map boundaries, and the generated JSON file is saved to %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\image.

    Note: The generated JSON file can be directly copied to other projects for use. After copying, the report project needs to be restarted to take effect.

    2. JSON resources

    Here are some custom JSON resources. The file contains some JSON that comes with FineReport and the JSON that users voluntarily upload. Users who need it can download it directly:

    documentRemark

    279.Custom shopping mall.zip

    Mall floor plan

    279.2Fmarket.zip

    Floor plan of the 2nd floor of the mall

    279.heatmap.zip

    Heat Map of Web Area

    279.Taiwan Province.zip

    Taiwan Province Map

    279.Custom picture map.zip

    Counter plan

    279.map.zip

    World Map & Maps of China's Provinces and Cities

    3. JSON file format

    In addition to the way to make a map on the front end, you can also write it directly in the background. The specific JSON format is as follows:

    3.1 Area map

    2.png

    Note: If the user writes the map JSON by himself, please pay attention to:  [New] The calculation rule of the map center point.

    3.2 Point map

    3.png

    4. Matters need attention

    • The built-in China map JSON file comes from official channels and is directly downloaded from the Ministry of Civil Affairs: http://xzqh.mca.gov.cn/map.

    • All the data in the built-in JSON is consistent with the data of the Civil Affairs Bureau, and the resources will be updated regularly.

    • When manually adding a JSON file to the project directory, if it is a file under geographic information, you need to write XXX-area.json and XXX-point.json at the same time and place them in the same directory. If it is a file in a custom picture map, just write XXX.json.

    Attachment List


    Theme: Build Charts and Analyze data
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭