Custom Image Map

  • Last update:  2024-01-22
  • Overview

    Expected Effect

    The built-in map is only suitable for displaying map information and this document introduces how to customize a mall floor plan.

    18.gif

    Implementation Method

    Log in to the platform as the admin, choose System Management > Map Configuration, and create a custom image with area boundaries delineated, with which you can use the Custom Chart component to customize a map.


    Intranet Description

    You need to request Amap API resources online or whitelist the following map APIs to use the Map Configuration page. Otherwise, the geographic information and the custom image layers cannot be displayed.

    webapi.amap.com

    vdata.amap.com

    restapi.amap.com

    If you cannot connect to the extranet or set the whitelist, you can place the custom image map (JSON file) set in versions earlier than 5.1.24 into the corresponding path of the official project. For details, see Custom Map JSON Resource. Then, the custom image map can be used for geographic role matching.

     

    Creating a Custom Image

    Log in to the platform as the admin, choose System Management > Map Configuration > Custom Image, click the icon to add a custom image, name the image 2Fmarket, and click OK.

    1.jpg

    Select the created 2Fmarket and click the Import Image button on the right to import a floor plan of the second floor of a shopping mall.

    iconNote:

    1. Imported images will be resized adaptively and can also be freely scaled by scrolling the mouse wheel.

    2. The maximum size of uploaded images is 2M, which is the default POST limit of Tomcat. You can set it to unlimited.

    2.jpg

    Click the Rectangle icon to outline the area of each store, set the area name to the corresponding store name, and click Save in the upper right corner.

    iconNote:
    If the area is in an irregular shape, you can click the Polygon icon for delineation.

    3.png3.5.png

    The custom image is created and the generated JSON file is saved in the directory %FineBI_HOME%\webapps\webroot\WEB-INF\assets\map\image, as shown in the following figure.

    iconNote:
    JSON files can be copied and pasted to other projects. For details about how to make the map file take effect, see the Methods for Map Files Taking Effect section in Map File Update.

    4.png

    Creating a Custom Image Map

    Data Preparation

    1. Log in to the system as the admin, click My Analysis, and click New Subject, as shown in the following figure.

    5.png

    2. Click Local Excel and click Upload Data, as shown in the following figure.

    You can download the example data.Custom Map.xlsx

    6.png

    3. Click OK after the data is uploaded, as shown in the following figure.

    7.png

    4. Click Edit in the upper right corner.

    8.png

    5. Change the type of the Store Name field to Text, and click Save and Update.

    9.png

    6. Click Exit and Preview.

     10.png

    Component Creation

    1. Click Component in the lower left corner, as shown in the following figure.

    11.png

    2. Click the icon 企业微信截图_17034958875941.png of the Store Name field and set Geographical Role (None) to Custom Image.

    12.png

    3. Select 2Fmarket from the drop-down list of Custom Image and the store name will automatically match the area name.

    13.png

    4. Click the Custom Chart icon in Chart Type, drag the Store(longitude) field to the Horizontal Axis and the Store(altitude) field to the Vertical Axis, and select Fill Map from the drop-down list in Graphic Property.

     14.png

    Graphic Property

    Label Setting

    Drag the Store Name field into Label.

    15.png

    Color Setting

    Click the icon `$O}@4RBO4]GP~SUOO}C373.pngof the Color bar to set the color.

    16.png

    Prompt Setting

    Drag the Band and Product fields into Prompt.

    17.png

    iconNote:
    For more details, see Chart Component Style, and Graphic Properties.


    Effect Display

    On PC

    The actual preview effect of the custom image map on a dashboard is shown in the following figure.

    18.gif

    On Mobile Terminals

    The following figure shows the preview effect on the DataAnalyst and on HTML5 apps.

     19.png


    附件列表


    主题: Creating a Visual Component
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy