POLAR@3: Add and remove plugin via DOM #377
oeninghe-dataport
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We already use custom elements to add and remove our map to the DOM.
It might be an idea to have custom elements per-plugin (e.g.,
<polar-plugin-fullscreen>), that can be inserted in the inner HTML of apolar-map. This insertion in the DOM then replacesaddPlugin(which may exist as a convenience helper such ascreateMapthen).Managing the plugin's stores via Pinia (src/core/stores/plugin) could be superfluous after this change.
Beta Was this translation helpful? Give feedback.
All reactions