LesFruitsDefendus / saskatoon-ng

The new generation Saskatoon harverst management system
GNU Affero General Public License v3.0
10 stars 24 forks source link

feat: add a base map view tab #379

Open oxgr opened 6 months ago

oxgr commented 6 months ago

Adds a base map view tab with a simple working map to build upon.

Using the GeoJSON format helps maintain a consistent & expected shape with some nice helper functions from Leaflet, but I'm not too sure how best to pass the Property objects from Django to Leaflet.

Currently using the existing Property JSON endpoint and manually parsing as GeoJSON.FeatureCollection in frontend to keep endpoints consistent while we figure out pagination.

Another option is to use djgeojson.GeoJsonLayerView to do this for us in backend, but not sure if it's too soon i.e. a lot to be adapted once pagination is sorted.

Related to #5

Type of change:


What's Changed:


Affected URLs:


Checklist: