markers.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: " zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        markers: [{
            location: [42, 27],
            tooltip: {
                position: "left",
                content: "Foo"
In this article
Not finding the help you need? Improve this article