Open perkoren opened 8 years ago
+1
This is already supported, see:
As long as you bind to a scope (see the m3 marker in the example), I don't see any problems in updating the data in your popup.
The problem is this example refers to markers that are placed upfront on the leaflet map, in my case I'm adding them dynamically, so I assume I cannot use 'angular.extend' every time a new marker is added by the user on the UI, because it will override previous markers definition.
So my question refers to adding of new markers dynamically (we don't know where they will be placed, it depends on the user).
On Fri, Apr 22, 2016 at 2:22 AM, David Genest notifications@github.com wrote:
This is already supported, see:
As long as you bind to a scope (see the m3 marker in the example), I don't see any problems in updating the data in your popup.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tombatossals/angular-leaflet-directive/issues/1072#issuecomment-213170149
Hi, I'd like to add a message to a marker that a user created. This message should contain angular content (dynamic drop down i.e.). The idea is that after a user draws a marker on an image overlay, a popup appears containing a dropdown.
I tried something like this:
where
'<productPopup>'
is a directive:but with no success. I know that there is an option to pass angular content inside 'message' attribute of a marker, but it only works for a declarative marker creation. I was wondering, whether there is a function which would allow me to change this value dynamically?