Skip to content
Snippets Groups Projects
Commit 76a1f174 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Add method for fetching all weather data sources from IPMD

parent 3eefe3ea
No related branches found
No related tags found
2 merge requests!13Saddlegallmidge form idec 372,!12feat: Add test page (spatial) with mapserver layer in openlayers map
......@@ -46,6 +46,12 @@ async function getWeatherDatasource(weatherDatasourceId)
return await response.json();
}
async function getWeatherDatasources()
{
const response = await fetch(ipmdWeatherApiURL + "rest/weatherdatasource/");
return await response.json();
}
function getWeatherStationList(weatherDatasource){
geoJson = JSON.parse(weatherDatasource.spatial.geoJSON);
let stationList = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment