[view/map][xs]: use geojson field name if it exists.

This commit is contained in:
Rufus Pollock 2012-06-06 15:19:47 +01:00
parent ef74f13163
commit 11f2236ea8

View File

@ -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;