=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2014-07-15 21:30:42 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2014-08-04 10:42:25 +0000 @@ -2588,15 +2588,16 @@ util.geojson = {}; util.geojson.decode = function(doc, levelOrder) { - var geojson = {}; - geojson.type = 'FeatureCollection'; - geojson.crs = { - type: 'EPSG', - properties: { - code: '4326' - } + var geojson = { + type: 'FeatureCollection', + crs: { + type: 'EPSG', + properties: { + code: '4326' + } + }, + features: [] }; - geojson.features = []; levelOrder = levelOrder || 'ASC'; @@ -2657,7 +2658,7 @@ // accepts [number], [string], [{prop: number}], [{prop: string}] if (!util.object.getLength(array)) { - return; + return array; } key = key || 'name';