Select Marker and get info, and Fill that data into popup Form

21 views
Skip to first unread message

Priyanka Dongre

unread,
Jun 27, 2022, 4:05:04 AMJun 27
to Leaflet
Hello... I am working on React-leaflet Project, Where I have to click on map marker which have information like Lat, long, id etc. want to fill that data into popup form when we click on that marker.

Any help or hint?

Thanks in advance

Mark Lawton

unread,
Jun 27, 2022, 11:35:21 AMJun 27
to leafl...@googlegroups.com
have a look at www.OneWorld-stories.org

That is a site I made.  If that is what you want, you could open the code on your browser and see how to do it.

--

---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leaflet-js/7ad4332a-29b9-48de-928d-64128036a0cdn%40googlegroups.com.

Mark Lawton

unread,
Jun 27, 2022, 11:35:37 AMJun 27
to leafl...@googlegroups.com
If you get stuck, let me know, and I  can help you.


On Jun 27, 2022, at 1:05 AM, Priyanka Dongre <priyank...@gmail.com> wrote:

Bodo Minea

unread,
Jun 28, 2022, 11:48:42 AMJun 28
to leafl...@googlegroups.com
So you already have your points on the map and would like the properties to be exposed when a user clicks on them for you to do something else (eg. autofill) with them? That should be relatively easy to do - this should give you a code sample that you can adapt to fit your needs: https://stackoverflow.com/a/54504151

--

---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leaflet-js/7ad4332a-29b9-48de-928d-64128036a0cdn%40googlegroups.com.


--

Priyanka Dongre

unread,
Jul 5, 2022, 12:45:43 AMJul 5
to Leaflet
Thank you so much for your response. It is not exactly what I need but it will definitely help me to achieve what I want. Thank you again

Priyanka Dongre

unread,
Jul 5, 2022, 12:54:59 AMJul 5
to Leaflet
What I want when we click on marker the info should fill up in your add story form (Popup).
similar to
but on marker click

On Monday, June 27, 2022 at 9:05:21 PM UTC+5:30 markstev...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages