Just trying to get my first leaflet map work based on Teodors docs, but whatever I try, it is just not working for me.
The goal is to show one single marker with dynamic lat and long values.
Added the map without any issue. Then added a marker and set its dynamic attributes to the right values.
Not sure if Tabs are the same as Modals where by you have to reinitialise (invalidate size in Leaflet terms) the map using a Dynamic Event on shown..? This will then re-render the map instance. Like I said I am not sure if you have the same Dynamic Events for Tabs as you do for Modals... If not then maybe they need to be added in the future?
Probably the same as modals as I had to use invalidateSize() to make it work.
Unfortunately there is no onShow event for the map. An onShow or reinitializeMarkers or something like that would be great, so we could use the server connects onSuccess event, where the location data is coming from.
As a temporary solution I used the Tab header onClick event for invalidateSize() and addMarker() so I could add my bindings.
Would be helpful to have the same events for Off Canvas and Tabs as Modals have, so an on show event could be triggered? Maybe something @George could investigate as it is very useful when you know it exists (we use it a lot with modals).