Hi Kyle,
We have analyzed your query . At present we donot have support for adding multiple markers in the single layer. We have logged the feature request for adding “Adding Multiple Markers in the Map”
As a work around solution we have added the markers in the different sublayers and rendered it .
Please refer the code snippet below
|
[JS]
$("#container").ejMap({
layers: [
{
markers: [
{ "Name": "USA", "latitude": 38.8833, "longitude": -77.0167},
{ "Name": "Brazil", "latitude": -15.7833, "longitude": -47.8667}
],
markerTemplate: 'template',
subLayers: [
{
markers: [
{ "Name": "China", "latitude": 35.0000, "longitude": 103.0000},
{ "Name": "Indonesia", "latitude": -6.1750, "longitude": 106.8283}
],
markerTemplate: 'template1',
},
{
markers: [
{ "Name": "India", "latitude": 21.0000, "longitude": 78.0000}
],
markerTemplate: 'template2',
}
]
]
}); |
Please refer the playground sample link:
Please find the output screenshot of the map
You can communicate with us regarding the open features at any time using the “Contact” option.
It will be available in any one of our upcoming Essential studio release.
Thanks for your patience.
Please let us know if you have any concern.
Thanks,
Deepaa.