def addFeatures(features):
 simplify = GIS.simplify
 _f = []
 append = _f.append
 for feature in features:
  geojson = simplify(feature, output='geojson')
  if geojson:
   f = dict(type='Feature', geometry=json.loads(geojson))
   append(f)
 return _f

def addFeatures ( features ) : simplify = GIS . simplify _f = [ ] append = _f . append for feature in features : geojson = simplify ( feature , output = 'geojson' ) if geojson : f = dict ( type = 'Feature' , geometry = json . loads ( geojson ) ) append ( f ) return _f
add simple features to the draft layer - used by s3locationselectorwidget .