New to Kendo UI for jQuery? Download free 30-day trial

Cannot Display GeoJSON Coordinates in Proper Order for Bubble Type Layer in Map


Product Progress® Kendo UI® Map for jQuery


I want to draw a bubble layer on a Kendo UI Map from the GeoJSON response. Although I receive the data in \[Longitude, Latitude\] format, when the data is bound to the Map, the Map handles it in a reversed \[latitude, longitude\] order.

Suggested Workarounds

The Kendo UI Map does not provide a built-in solution for achieving this behavior. However, you can still work around this issue by applying custom logic.

The Map accepts a [Latitude, Longitude] format for its locations field. When you receive the data in a reversed order, modify the array prior to the binding and use schema.parse to update the array.

<div id="map"></div>
      function createMap() {
          center: [45, 45],
          minZoom: 3,
          zoom: 4,
          wraparound: false,
          layers: [{
            type: "tile",
            urlTemplate: "http://#= subdomain zoom #/#= x #/#= y #.png",
            subdomains: ["a", "b", "c"],
            attribution: "&copy; <a href=''>OpenStreetMap contributors</a>"
          }, {
            type: "bubble",
            attribution: "Population data from Nordpil and UN Population Division.",
            style: {
              fill: {
                color: "#00f",
                opacity: 0.4
              stroke: {
                width: 0
            dataSource: {
              transport: {
                read: {
                  url: "",
                  dataType: "json"
              schema: {
                parse: function(response) {
                  for (var i = 0; i < response.length; i++) {
                    var loc =  response[i].Location; // Location is the locationField with the coordinates
                    response[i].Location = [loc[1], loc[0]];
                  return response;
            locationField: "Location",
            valueField: "Pop2010"

In this article