Our previous task made a WFS request with a hard coded date of 2015-11-28
, we want to expand on this idea by allowing our user to choose a date with valid data and to send a new WFS request.
We will have to give them the ability to choose a valid date, and we then we will need to give them the ability to request a new Zika layer from a new WFS request.
You will need some information about your geoserver container in order to make the WFS().writeFeature request object, and to make the network request.
'https://zika.devops.launchcode.org'
'zika'
['locations_with_cases_by_date']
'application/json'
'http://localhost:8080/geoserver/zika/wfs'
This information will be necessary for you to make the WFS write feature request and the network request that are necessary to receive a feature collection represented by geojson which can be loaded into the source of a layer.
tip
Your project came with a CSV file of valid dates. You will need to figure out how to add these dates to an HTML select element.