Create Leaflet Maps
Introduction
The Maps widget will enable users to create a variety of maps using their data to create customized maps to see the data in map visualization. The map widget allows users to display the information in 2D or 3D geographic information. Users can use tools given in widgets such as Zoom, etc.
Prerequisites
To Create Leaflet Map Widget you need working Datasets(JDBC)
Objective
How to Create Leaflet Map Widget.
Follow steps to create Geo Map Widget in AIV:-
-
From the left Vertical Menu click on the Map Widget icon.
-
The Edit menu box appears as you click on the Map Widget icon. And a widget gets added in content place automatically in the dashboard, As shown in Figure below:
- Enter the Following details in the Leaflet Map(User can insert details as per requirements):
- Map Type: Latitude -Longitude
- Latitude: Latitude
- Longitude: Longitude
- Dataset: Customer_details.ds
- Location: City
- Value: Yearly Income -Person
- Aggregation: Sum
- Fill above details, as shown in the figure below:
-
Click on Publish button.
-
Now, match your Leaflet Map with the below example, it should look like the figure below:
Route Map Feature
The Route Map feature displays route lines on the map by using user-provided data from datasets. In AIV, this feature allows users to visualize the route between a source and a destination seamlessly.
How to Use the Route Feature in the Map Widget
- Select the Dataset and Define Values Choose the appropriate dataset, then map the following values:
- Map Type: select the
Latitude - Longitude
from dropdown - Location: Source Country
- Latitude: Source Latitude
- Longitude: Source Longitude
- Value: Sales
- Aggregation: Sum
- Configure the Map
Go to Formatting, From the General Map Appearance section, set the Map Type as
Route
. This will allow you to format the destination fields. Select theDestination Latitude
andDestination Longitude
.
- Publish the Dashboard Click on the Publish button to save and view the dashboard with the map displaying the route between the source and destination.