markers.tooltip.autoHide Boolean(default: true)

Specifies if the tooltip will be hidden when mouse leaves the target element. If set to false a close button will be shown within tooltip. If set to false, showAfter is specified and the showOn is set to "mouseenter" the Tooltip will be displayed after the given timeout even if the element is no longer hovered.

Example - hide tooltip on mouse leave

<div id="map"></div>
        layers: [{
            type: "tile",
            urlTemplate: " zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        markers: [{
            location: [42, 27],
            tooltip: {
                autoHide: true,
                content: "Foo"
In this article