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

Alert user if location not covered by forecast service

parent f9cd1292
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
......@@ -262,9 +262,11 @@
sourceInfo.innerHTML = currentForecastWeatherDatasource.description;
sourceInfoPanel.style.display="block";
// Does the forecast data source cover the point in question?
console.info("In geoJson? " + await isPointCoveredByDatasource(getLatLon(), currentForecastWeatherDatasource));
if(! await isPointCoveredByDatasource(getLatLon(), currentForecastWeatherDatasource))
{
alert("The selected forecast datasource does not cover the selected location.");
}
}
function handleWeatherStationSelected(weatherStationSelectList)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment