Creates an HTML map element with a given configuration and inserts this at a given ID.
This is a convenience function that combines register, createMap and fetchServiceRegister.
It inserts the map element by replacing the element with the given ID.
The ID and the classes of the container are transferred to the map element.
Teardown
In general, your calls to our subscribe method should also be cleaned up to avoid leaks.
This method returns a function that, when called, unsubscribes from the watched parameter.
Note that most frameworks will handle DOM regeneration on rerenders themselves.
Should you need to clean up the DOM for arbitrary reasons yourself, this snippet may come in handy:
Creates an HTML map element with a given configuration and inserts this at a given ID.
This is a convenience function that combines
register,createMapandfetchServiceRegister.It inserts the map element by replacing the element with the given ID. The ID and the classes of the container are transferred to the map element.
Teardown
In general, your calls to our
subscribemethod should also be cleaned up to avoid leaks. This method returns a function that, when called, unsubscribes from the watched parameter.Note that most frameworks will handle DOM regeneration on rerenders themselves. Should you need to clean up the DOM for arbitrary reasons yourself, this snippet may come in handy: