Package com.aerisweather.aeris.tiles
Class AerisTileProvider
- java.lang.Object
-
- com.aerisweather.aeris.tiles.AerisTileProvider
-
- All Implemented Interfaces:
com.google.android.gms.maps.model.TileProvider
public class AerisTileProvider extends Object implements com.google.android.gms.maps.model.TileProvider
Handles adding tiles layers using the Aeris API to grab tiles with the associated mapview.
-
-
Constructor Summary
Constructors Constructor Description AerisTileProvider(AerisTile tileCode, int opacity)
Custom tile provider for the weather tiles.AerisTileProvider(AerisTile tileCode, int opacity, String extraFilter)
Custom tile provider for the weather tiles.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.gms.maps.model.Tile
getTile(int x, int y, int z)
AerisTileProvider
withDelegate(AerisTileDisplayDelegate delegate)
Adds a delegate to pass the tile name and date to when it is loaded.
-
-
-
Constructor Detail
-
AerisTileProvider
public AerisTileProvider(AerisTile tileCode, int opacity)
Custom tile provider for the weather tiles.- Parameters:
tileCode
- tile code type to use with the mapview.opacity
- int
-
-
Method Detail
-
withDelegate
public AerisTileProvider withDelegate(AerisTileDisplayDelegate delegate)
Adds a delegate to pass the tile name and date to when it is loaded.- Parameters:
delegate
- delegate to pass information about the tiles that loaded.- Returns:
- tile provider
-
getTile
public com.google.android.gms.maps.model.Tile getTile(int x, int y, int z)
- Specified by:
getTile
in interfacecom.google.android.gms.maps.model.TileProvider
-
-