From 11f2236ea88cd95c3b7ffb3aed38d797973767e9 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Wed, 6 Jun 2012 15:19:47 +0100 Subject: [PATCH] [view/map][xs]: use geojson field name if it exists. --- src/view.map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.map.js b/src/view.map.js index eb8f9631..21c0dca2 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -35,7 +35,7 @@ my.Map = Backbone.View.extend({ // If not found, the user will need to define the fields via the editor. latitudeFieldNames: ['lat','latitude'], longitudeFieldNames: ['lon','longitude'], - geometryFieldNames: ['geom','the_geom','geometry','spatial','location'], + geometryFieldNames: ['geojson', 'geom','the_geom','geometry','spatial','location'], initialize: function(options) { var self = this;