I am trying to update a popup for a polygon that I have drawn with
Leaflet.Draw. Now I understand that to set a popup to a layer I just created, it's all fine. I can also get the id of that layer I just created using the
Let's say I create 3 layers: A, B and C. Each of them has their stamp id stored in my database. Now let's say at some point I want to bind a popup to layer C. How do I access that layer C when I click on it and bind the popup to C only?