How to Access India State Shape in Bold BI Map Widget Properties
This article provides a comprehensive guide on how to access the India State shapefile through properties in the Bold BI Map widget.
By default, users can access the USA states through properties in the Bold BI Map widget. Similarly, the India state shapefile is already available in the following shape location: {Deployed Location}/app_data/bi/shapefiles
. By utilizing these files, users can access the India state shape through properties and adjust the shape settings in the Map widget. Follow the steps below to ensure seamless access and configuration:
Steps to Access India State Shape in Bold BI Map Widget Properties
-
Open the
shapefile.json
file in a text editor. This file is located at:{Deployed Location}/app_data/bi/shapefiles/shapefile.json
.
-
Add the India shape details under the state category. Ensure the format matches the existing entries. For example, if adding the Haryana state shape file into widget properties, open the JavaScript file
india_haryana.js
, which can be found at{Deployed Location}/app_data/bi/shapefiles/
. Copy the name and paste it into theshapefile.json
as shown below.
-
The string value provided in the value section must correspond to the name of the respective state’s JavaScript files.
-
After adding the necessary details, save the
shapefile.json
file. -
Restart the Internet Information Services (IIS) to apply the changes.
-
Open the dashboard designer and configure the map widget.
-
Click on the Map widget to open its properties. In the properties section, locate the
Shape Kind
drop-down menu. Select State from the list of options.
-
In the
Shape Data
drop-down menu, find and select the India State shapefile.
-
Selecting the newly added state shapefile from the dropdown menu, the Map widget will render according to the chosen shape, as illustrated in the image below.
By following these steps, you can access and utilize the India State shapefile in your Bold BI Map widget.