Open raphaellaude opened 3 weeks ago
strong preference for pre-computing and storing the bounds
as a property of each view:
fgb_stats = subprocess.run(ogrinfo -json -so name_of_view.fgb)
where fgb_stats["layers"][0]["geometryFields"]["extent"]
is the bounds of the layermap.fitBounds(gerryView.extent)
to zoom to the layer properlyNeeded for end-user testing
The bounds and zoom level should probably be stored in DB and sent to client with the gerryDB view information.
TBD