Sam010000101 / flood-watch

Search for historic flood events that happened in the UK
0 stars 2 forks source link

Feature/load location data from user input #29

Closed paulashby closed 1 year ago

paulashby commented 1 year ago

The map now zooms in to a local view when location field is populated.

Zoom out takes place when the input field is cleared. Hitting enter will submit the location.

A 'location' event is dispatched when the data is processed, so this might be useful for updating the charts. The event has a 'location' property which is a string and an items property which is an array of data related to the flood event markers added to the map.