kkmcgg / floodmap

Web-Based Flood Mapping Experiment
https://kkmcgg.github.io/floodmap/
0 stars 0 forks source link

add date selector for WCPS_1km_SeaSfcHeight #2

Open kkmcgg opened 6 months ago

kkmcgg commented 6 months ago

image

WCPS_1km_SeaSfcHeight is currently added as a static date 'TIME': '2024-04-15T17:00:00Z'

i should add a simple textbox to change this date, or even grab the most recent reasonable date.

the source of the data layer is: https://eccc-msc.github.io/msc-animet/?layers=WCPS_1km_SeaSfcHeight%3B0.75%3B1%3B1%3B0%3B1&extent=-8322866,4600727,-4999872,6131662

ie on the data url: https://geo.weather.gc.ca/geomet?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=WCPS_1km_SeaSfcHeight&STYLES=SEA_SURFACE_HEIGHT-TINY&TIME=2024-04-15T17%3A00%3A00Z&CRS=EPSG%3A3857&WIDTH=879&HEIGHT=1027&BBOX=-7113863.405921759%2C5299276.641681112%2C-6700738.209300108%2C5781961.029542813

more info on the dataset used (Water Cycle Prediction System): https://open.canada.ca/data/en/dataset/36129cbc-3997-4b8e-a8bf-5fb44492134d