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, hence that's why you'll see this in the drawing manager with slot example. It's actually not required in the first example because the default toolbox is part of the Google map object.

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