Animating weather radar tiles using mobile SDKs (iOS, Android)

Brian Runck 6 Reputation points
2023-01-08T08:05:41.82+00:00

Is there a way to animate a series of tiles (specifically weather radar tiles) via the Azure Maps mobile SDKs? There is an AnimatedTileLayer for JS but that adjusts the opacity of each layer, and I don't see a way to do that in the mobile SDKs.
Is this possible, or is there another way to do this?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
584 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 15,126 Reputation points Microsoft Employee
    2023-01-08T20:47:32.483+00:00

    The mobile SDK's support changing the opacity of a tile layer. In Android:

       TileLayer layer = new TileLayer(  
           tileUrl("https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png"),  
           opacity(0.8f),  
           tileSize(256)  
       );  
         
       map.layers.add(layer, "labels");  
    

    To update it:

       layer.setOptions(opacity(0.2f))