=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java' --- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java 2011-05-13 10:42:19 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java 2011-05-23 16:04:37 +0000 @@ -129,7 +129,16 @@ } } - return OrganisationUnit.RESULTTYPE_SYMBOL; + if ( object.size() > 0 && object.iterator().next().getFeatureType().equals( OrganisationUnit.FEATURETYPE_POINT ) ) + { + return OrganisationUnit.RESULTTYPE_SYMBOL; + } + + else + { + object.clear(); + return NONE; + } } return object.size() > 0 ? object.iterator().next().getFeatureType() : NONE; === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js 2011-05-20 15:46:34 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js 2011-05-23 16:04:37 +0000 @@ -2768,15 +2768,15 @@ contentEl: 'featuredatatext' }, { - title: '' + G.i18n.map_legend_polygon + '', + title: '' + G.conf.thematic_layer_1 + ' legend', contentEl: 'polygonlegend' }, { - title: '' + G.i18n.map_legend_point + '', + title: '' + G.conf.thematic_layer_2 + ' legend', contentEl: 'pointlegend' }, { - title: 'Symbol legend', + title: 'Symbol layer legend', contentEl: 'symbollegend' } ] === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js 2011-05-19 08:48:09 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js 2011-05-23 16:04:37 +0000 @@ -410,7 +410,7 @@ bodyStyle: 'padding:8px; background-color:#ffffff', labelWidth: G.conf.label_width, items: [ - {html: '
Select organisation unit level
'}, + {html: '
Select point level
'}, { xtype: 'combo', fieldLabel: G.i18n.level,