leaflet-environmental-layers
leaflet-environmental-layers copied to clipboard
Add Layer: Washington State Tracking Network's Environmental Public Health Data
Please note we are preparing to participate in Google Code-in, and have reserved this issue for GCI participants - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.
Source: https://www.doh.wa.gov/DataandStatisticalReports/EnvironmentalHealth/WashingtonTrackingNetworkWTN
(map view of information: https://fortress.wa.gov/doh/wtn/wtnibl/)
LEL Consists of a set of layers and in this task you will be adding a new layer.
Please refer to this for detailed steps and an example on how to add a layer https://github.com/publiclab/leaflet-environmental-layers/blob/master/CONTRIBUTING.md#adding-a-new-layer
Published
I cannot find any API documentation of the WSTN website (https://www.doh.wa.gov/DataandStatisticalReports/EnvironmentalHealth/WashingtonTrackingNetworkWTN). How do I go about it?
@ananyaarun @rexagod @jywarren @IshaGupta18
Hi,
I mailed the WSTN and they have no direct implementation support. Thus, I don't think it is feasible to implement the same on LEL.
Hey @CodeSarthak ,
This is awesome to contact the data provider directly!!!
Yes we can not get data through API but we can download CSV and converti it to JSON and host it somewhere and then implement LEL layer.
This has been done in layer Unearthing
:
https://github.com/publiclab/leaflet-environmental-layers/blob/0b646cc4ecf83626f7917d5225b95732e3989318/src/unearthing.js#L5
Thanks :)
Thank you @sagarpreet-chadha for your help.
So, according to my understanding, I should get the csv data, convert it to JSON and then use the same code as in the leaflet-environmental-layers/src/unearthing.js file by replacing the link to my JSON file. Is this correct?
Also, how exactly do I 'host' the JSON file, on Public Lab itself?
Thank you.
I have another suggestion for the implementation : https://fortress.wa.gov/doh/wtn/WTNPortal/#!q0=3646. WSTN already has maps with the required data. We can, instead, use their maps and embed them in our application. How does that sound?
Thank you.
This is a good idea but if we embed their map directly we will not be able to use this map along with other LEL layers, right?
You can convert it to JSON and push this file to gh-pages
branch of this repo (if you do not have permission then make a PR against gh-pages
branch and then i will merge it).
Thanks!
Cool. I will do that.
@CodeSarthak are you still working on this? We could work together.