[view/map] Don't show GeoJSON geometries in the popup as they can be quite big
This commit is contained in:
@@ -111,8 +111,11 @@ test('Popup', function () {
|
||||
assertPresent(popup);
|
||||
|
||||
var text = popup.text();
|
||||
ok((text.indexOf('geom') === -1))
|
||||
_.each(view.model.fields.toJSON(),function(field){
|
||||
ok((text.indexOf(field.id) !== -1))
|
||||
if (field.id != 'geom'){
|
||||
ok((text.indexOf(field.id) !== -1))
|
||||
}
|
||||
});
|
||||
|
||||
view.remove();
|
||||
|
||||
Reference in New Issue
Block a user