Edit this page

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"
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article