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

Add ServiceArea name to rendered features. #92

Closed Mike-Heneghan closed 5 years ago

Mike-Heneghan commented 5 years ago

On the service detail page when a user sees the service areas rendered as features it may not be clear what they are. As an improvement, the features could have popups in a similar fashion to the location markers.

Mike-Heneghan commented 5 years ago

As the API doesn't have any knowledge of which data set the features are returned from it's hard to know which key to use to access the feature name.

Without adding much more complexity created an array of the possible name keys and iterate through to check whether the result is undefined or matched. If matched the feature name is bound to the feature as a popup.

Mike-Heneghan commented 5 years ago

Merged into master