Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

Service area map on service detail page. #82

Closed Mike-Heneghan closed 4 years ago

Mike-Heneghan commented 5 years ago
Mike-Heneghan commented 5 years ago

Leaflet example rendering US States: https://leafletjs.com/examples/choropleth/example-basic.html

Mike-Heneghan commented 5 years ago

To Keep In Mind:

Mike-Heneghan commented 5 years ago

To do:

Mike-Heneghan commented 5 years ago

Wrote a method which takes in a service area and returns a geoJSON feature as an easy way to return data.

Rendered a scottish_local_authority service area on the map of Scotland.

Screenshot 2019-06-29 at 12 05 37 Screenshot 2019-06-29 at 12 06 33
Mike-Heneghan commented 5 years ago

The ServiceArea model has a ServiceArea.code pertaining to the specific region and a ServiceArea.type based on the data set.

Rather than serving data sets and processing in the browser could instead use the ServiceArea type and code to selectively return the geoJSON feature to overlay on the map.

Mike-Heneghan commented 5 years ago

Rendering multiple areas from different data sets:

Screenshot 2019-06-29 at 13 58 16
Mike-Heneghan commented 5 years ago

Could be useful for rendering UK and Scotland Boundaries: http://geoportal.statistics.gov.uk/datasets/countries-december-2017-ultra-generalised-clipped-boundaries-in-uk

Mike-Heneghan commented 5 years ago

To do:

Mike-Heneghan commented 5 years ago

Added clipped data set and support for Scotland and United Kingdom as service areas:

Screenshot 2019-06-29 at 17 31 38 Screenshot 2019-06-29 at 17 31 24
Mike-Heneghan commented 5 years ago

Moved the code to query the DB for ServiceArea geoJSON features to an api view.

Mike-Heneghan commented 5 years ago
Mike-Heneghan commented 4 years ago

Merged into master