Three map marker on one layer only of the map

Hi Syncfusion

May I know if it possible in the ejMap to use three marker template in one layer because my boss wants to differentiate sites using three map markers in the map (red dot marker for a regular sites, blue dot marker for level 1 sites and green dot marker for level 2 sites) so this is the scenario upon initial load of the ejMap it will display those three markers on the map, please provide sample using JS1 codes not by aspx

1 Reply

DP Deepaa Pragaasam Syncfusion Team January 10, 2018 09:44 AM UTC

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. 


Loader.
Up arrow icon