[view/map] Don't show GeoJSON geometries in the popup as they can be quite big

This commit is contained in:
amercader
2012-04-24 18:42:52 +01:00
parent 6749e38b07
commit 3597974469
2 changed files with 7 additions and 2 deletions

View File

@@ -293,7 +293,9 @@ my.Map = Backbone.View.extend({
// TODO: mustache?
html = ''
for (key in doc.attributes){
html += '<div><strong>' + key + '</strong>: '+ doc.attributes[key] + '</div>'
if (!(self.state.get('geomField') && key == self.state.get('geomField'))){
html += '<div><strong>' + key + '</strong>: '+ doc.attributes[key] + '</div>';
}
}
feature.properties = {popupContent: html};