layers.locationField String (default: "location")

The data item field which contains the marker (symbol) location. The field should be an array with two numbers - latitude and longitude in decimal degrees.

Requires the dataSource option to be set.

Only applicable to "marker" and "bubble" layers.

Example - bind marker title

<div id="map"></div>
        layers: [{
            type: "marker",
            locationField: "latlng",
            dataSource: {
                data: [{
                    latlng: [0, 0],
                    text: "POI"
In this article