The following steps help you meet the requirement.
Step 1: Create a sample map and include the necessary script files.
Step 2: Use the SyncfusionLocation.json script file for reference.
Step 3: In order to read the JSON file data, you need to parse the JSON file as follows:
In the above example, the SyncfusionLocation file variable, or sync, has been parsed and stored in a variable called json.
Step 4: Assign the parsed json data to markers.
In the following code example is used markers and markerTemplate, to denote json data in the “World Map”, based on its respective latitude and longitude.
Refer the following online documentation links for more details about markers and markerTemplate.
Sample Location for Markers:
Figure 1: Map with Markers
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|