A unique feature to AerisWeather Maps is the ability to control the opacity of an individual layer. Opacity values range from 0 to 100, where 0 is completely transparent and 100 is opaque. Each layer will have a default opacity of 100 (fully opaque) if not provided in the URL.
To add this to a layer, simply add :[amount]
immediately after the layer within the URL, where [opacity]
is the opacity percentage value you want to use. For example: radar:70
would add the radar with 70% opacity.
Opacity: 100%
http://maps.aerisapi.com/[client_id]_[client_key]/flat,radar,cities/700x300/seattle,wa,6/current.png
Opacity: 75%
http://maps.aerisapi.com/[client_id]_[client_key]/flat,radar:75,cities/700x300/seattle,wa,6/current.png
Opacity: 50%
http://maps.aerisapi.com/[client_id]_[client_key]/flat,radar:50,cities/700x300/seattle,wa,6/current.png
Opacity: 25%
http://maps.aerisapi.com/[client_id]_[client_key]/flat,radar:25,cities/700x300/seattle,wa,6/current.png
When making requests with multiple layers, opacity can be set for each layer individually and each layer can have a different opacity level. For example, a static map that displays advisories with 80% opacity to allow the terrain to show through and radar layered on top with 75% opacity:
http://maps.aerisapi.com/[client_id]_[client_key]/terrain,alerts:80,radar:75,cities/700x300/seattle,wa,6/current.png
Last modified: August 02, 2021