Integrate snow maps in your web mapping application
The table below quickly summarizes both maps' main characteristics:
Both maps are served via their own Tile Map Service (TMS) based XYZ tiles endpoint, making it easy to display it as a layer on top of a basemap of choice, with any of the major web mapping libraries available today such as OpenLayers, Leaflet or Mapbox.
You can use the image below in your application so your users can interpret the snow depth seen on the map. Or feel free to use the JSON definition to programmatically display the range.
In the same way as the DeFROST API, access to the Maps is protected using the JSON Web Tokens (JWT) industry standard. This means that any request to the XYZ tile endpoints must be authenticated by passing a valid JWT token in the HTTP Authorization request header.
JWT is a highly secure, modern but relatively recent way of securing the access to a Tile Server, making it neccessary to write additional code in order to make it work with some web mapping libraries such as OpenLayers or Leaflet. The Mapbox library already supports JWT authentication method easily out of the box. However - we have already made that work for you: