How can i add click handler to Marker

Query1; I trying to attach Click event to markers that i display on the maps. Please give me example 
Query2; How can i use images instead of markers on map, the example would be highly appreciated

Anticipating your response

Thanks,


1 Reply 1 reply marked as answer

SM Sharmi Murugan Syncfusion Team August 19, 2020 06:11 PM UTC

Hi Yasir, 
  
Thank you for contacting Syncfusion support. 
  
We can notify the marker click in maps using markerclick event. This event will be triggered when we click on a marker in the Maps control. We can also add images as a marker using "imageUrl" property of the markerSettings property. We have create a simple sample to demonstrate the same and it can be downloaded from the following link. 
  
  
In the above sample, we have rendered a map control with markers as images. We have added the markerClick event in the control and a simple alert message will be shown when the marker is clicked. 
  
Please let us know if you need any further assistance.  
  
Regards, 
Sharmi M. 


Marked as answer
Loader.
Up arrow icon