Planit.js

hideInfobox ()

Class: Marker

Will hide the infobox, regardless of whether it is visible of not. Infoboxes are hidden not by taking away the active class, but by adding a hidden class to the infobox container.

Returns: Boolean (whether infobox exists)

Example

// assuming you already have access to `marker` as a Marker object
marker.hideInfobox()