We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Want to show infowindow on marker click.

Hello Team,


I am using other maps component. I have added markers on map. Now, I want to open popup as infowindow to show specific details on marker click. In this popup I have show image also. So how to achieve this with syncfusion.


Thanks,

Yogesh


2 Replies

YP Yogesh Patil October 28, 2022 02:39 AM

Forget to mention that, I am using OSM map to render.



IR Indumathi Ravi Syncfusion Team October 31, 2022 12:36 PM

Hi Yogesh,


To achieve the scenario, use the "Syncfusion Dialog" component and the "markerClick" event in the Maps component. They both assist in the display of specific details and images in the Dialog component on marker click. Please see the code snippet below.


We have created a sample to demonstrate the same and it can be downloaded from the below link.

https://stackblitz.com/edit/react-25xy8e-ybbgit


Please let us know if the above solution meets your requirement.


Regards,

Indumathi R.


Loader.
Live Chat Icon For mobile
Up arrow icon