Skip to main content

GmvMap Slots

note

This is the MapLayer component

GmvMap component has two slots with a different behavior. The default slot is wrapped in a class that sets display: none; so by default any component you add to your map will be invisible.

This is ok for most of the supplied components that interact directly with the Google map object, but it's not good if you want to bring up things like toolboxes, etc.

There is a second slot named "visible" that must be used if you want to display content within the responsive wrapper for the map. It is useful for custom controls or toolboxes that should be visible above the map instead of hidden inside the default slot. It is not required for map components whose UI is rendered by the Google Maps API itself.

Thanks to @davydnorris to document this part of the plugin.