Edit this page

markerDefaults.tooltip.position String(default: "top")

The position relative to the target element, at which the tooltip will be shown. Predefined values are "bottom", "top", "left", "right", "center".

Example - set tooltip position

<div id="map"></div>
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        markerDefaults: {
            tooltip: {
                position: "left",
                content: "Foo"
        markers: [{
            location: [42, 27]
        }, {
            location: [40, 20]
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article