def _run_in_tileserver(self, capture): # Variable annotation syntax is only available in Python >= 3.6, # so we cannot declare an envelope property here TileServer.run_tileserver(self, self.envelope) # type: ignore mp = TileServer.folium_client(self, self.envelope, capture=capture) # type: ignore return mp._repr_html_()
def get_app(self): self.raster = rasters[1] TileServer.add_object(self.raster, self.raster.footprint()) return make_app(TileServer.objects)
def get_app(self): self.fc = tl.FeatureCollection([tl.GeoFeature.from_raster(r, {}) for r in rasters]) TileServer.add_object(self.fc, self.fc.envelope) return make_app(TileServer.objects)