DEV Community

Cover image for Integrate AMAP into Alibaba Cloud Kibana: A Complete Guide
A_Lucas
A_Lucas

Posted on

Integrate AMAP into Alibaba Cloud Kibana: A Complete Guide

Background Information

By default, Elastic Maps uses data from OpenStreetMap. However, Alibaba Cloud Elasticsearch Kibana does not display this data. Fortunately, you're able to integrate AMAP into Kibana, allowing you to leverage AMAP data directly on the Maps page of the Kibana console.

Prerequisites

1)You need to create an Alibaba Cloud Elasticsearch cluster. For this example, we'll use an Alibaba Cloud Elasticsearch V8.9 cluster.
2)Ensure Cross-Origin Resource Sharing (CORS) is configured for your tile server to grant tile requests from the Kibana origin access to your tile server origin.

Step 1: Configure an AMAP Tile URL

Log into the Kibana console of your Elasticsearch cluster via the Access over Internet entry. See Log on to the Kibana console for more information.
Note: Ensure your browser can access the Internet when logging into the Kibana console.

Steps:

1)After logging into the Kibana console, click on the menu icon in the upper-left corner.

2)Navigate to Analytics > Maps.

3)(Optional) Click Create map in the upper-right corner of the Maps page.

4)Click Add layer in the upper-right corner of the Maps page.

5)In the Add layer panel, select Tile Map Service.

1.png

6)Enter a tile URL of AMAP in the Url field. Use HTTPS for the URL. Here are some common AMAP tile URL formats:

  • {1,4} indicates that you can select a number from 1 to 4.
  • {x}, {y}, and {z} separately indicate the related layers.
  • lang=zh_cn indicates that the language of annotations is Chinese. lang=en indicates that the language of annotations is English.

7)In the lower part of the Add layer panel, click Add and close.

Step 2: Upload a Geographic Information Dataset

1)Prepare a geographic information dataset. You can use a provincial boundary dataset which can be obtained from DataV Atlas.

2.png

2)Click Add layer in the upper-right corner of the Maps page.

3)Click Upload file in the Add layer panel.

4)Select or drag and drop your dataset file. Supported file formats include .json, .geojson, and .shp.

3.png

5)Click Import file and then Add as document layer.

6)Enter a name in the Name field and click Keep changes.

p753942.png

7)Click Save in the upper-right corner.

With these steps, AMAP data will be integrated into your Alibaba Cloud Kibana Map!

Conclusion

Integrating AMAP into Alibaba Cloud Kibana can significantly enhance your data visualizations, providing rich geographic insights directly within your Elasticsearch environment.
Alibaba Cloud Elasticsearch offers a robust platform that simplifies these complex integrations. Ready to start your journey with Elasticsearch on Alibaba Cloud? Explore our tailored Cloud solutions and services to take the first step towards transforming your data into a visual masterpiece.
Please Click here, Embark on Your 30-Day Free Trial

Top comments (0)