App mapcomponent is not a singleton/reusable component
4xle opened this issue · 0 comments
This got me up and running with creating a leaflet-based map component, but it only works on the initial component load. Trying to navigate to another page with an element which uses the same map component just shows a blank. Traced the issue out to angular lifecycle hooks trying to reinitialize the component I think, but still trying to determine if a solution to this issue is even possible.
This issue is technically outside the scope of this project, but I wanted to highlight that this is possibly a limitation of this implementation. If anyone has suggestions which solve this problem, I would gladly implement them into a PR for the base project because this is far simpler than trying to integrate what I've already got using leaflet-core
.