code: def geojson(self):
          
          return {
              "type": "FeatureCollection",
              "features": [f.geojson(i) for i, f in self._features.items()]
          }
docs: Render features as a FeatureCollection.