Delaying Map Initialization
You can lazy load a map by simply calling the
init method to activate it.
Twig/PHP map creation is okay 👍
When a map is created via Twig or PHP, it will automatically be initialized once the DOM has finished loading. If you do not want to initialize automatically, it's possible to suppress the default behavior.
# Suppress automatic initialization
If you are generating the map via Twig/PHP, you can tell it to skip the default initialization trigger.
For more information, see the
init option of the
# Manually initialize the map
init method can be configured further if necessary.