Package com.aerisweather.aeris.maps
Class MapOptionsActivityBuilder
- java.lang.Object
-
- com.aerisweather.aeris.maps.MapOptionsActivityBuilder
-
public class MapOptionsActivityBuilder extends Object
Deprecated.Helper class for limiting the options that MapOptionsActivity can show. Pass this into AerisMapOptionsActivity (android.content.Context, MapOptionsActivityBuilder) to limit what options are being shown on the options activity. Below are some code examples.Construct a builder to show all polygons, only radar tile, and earthquake and fire point options.
MapOptionsActivityBuilder builder = new MapOptionsActivityBuilder() // show only fire and earthquakes options in points .withPoints(AerisPointData.EARTHQUAKES, AerisPointData.FIRE) .withAllPolygons() // shows only radar tiles // order is (advisories, currents, radar, satellite) .withTiles(false, false, true, false); mapView.startAerisMapOptionsActivity(getActivity(), builder);
Construct a builder to show no polygons, only radar,currents tiles, and stormcells point options
MapOptionsActivityBuilder builder = new MapOptionsActivityBuilder() // show only stormcells .withPoints(AerisPointData.STORM_CELLS) // shows only radar/current // order is (advisories, currents, radar, satellite) .withTiles(false, true, true, false); // call to launch map options activity mapView.startAerisMapOptionsActivity(getActivity(), builder);
-
-
Constructor Summary
Constructors Constructor Description MapOptionsActivityBuilder()
Deprecated.Initializes the builder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.aerisweather.aeris.model.AerisPermissions
build()
Deprecated.Builds the permissions needed to create a MapOptionsActivity with this showing.MapOptionsActivityBuilder
withAllPoints()
Deprecated.Builds the map options activity with all the point options showing.MapOptionsActivityBuilder
withAllPolygons()
Deprecated.Builds the map options activity with all polygons options showing.MapOptionsActivityBuilder
withAllTiles()
Deprecated.Builds the map options activity with all tile options showing.MapOptionsActivityBuilder
withPoints(AerisPointData... points)
Deprecated.Builds the map options activity with some of the points options showing based on what is passed in.MapOptionsActivityBuilder
withPolygons(AerisPolygonData... polygons)
Deprecated.Builds the map options activity with these polygon categories showing.MapOptionsActivityBuilder
withTiles(boolean advisories, boolean currents, boolean radar, boolean satellite)
Deprecated.Builds the map options activity with certain tile type options showing.
-
-
-
Method Detail
-
withAllTiles
public MapOptionsActivityBuilder withAllTiles()
Deprecated.Builds the map options activity with all tile options showing.- Returns:
- builder
-
withTiles
public MapOptionsActivityBuilder withTiles(boolean advisories, boolean currents, boolean radar, boolean satellite)
Deprecated.Builds the map options activity with certain tile type options showing.- Parameters:
advisories
- Show the advisory tiles if truecurrents
- Show the current tiles if trueradar
- Shows the radar tiles if truesatellite
- Shows the satellite tiles if true- Returns:
- builder
-
withPoints
public MapOptionsActivityBuilder withPoints(AerisPointData... points)
Deprecated.Builds the map options activity with some of the points options showing based on what is passed in.- Parameters:
points
- Array of point options that should be shown- Returns:
- builder
-
withAllPoints
public MapOptionsActivityBuilder withAllPoints()
Deprecated.Builds the map options activity with all the point options showing.- Returns:
- builder
-
withAllPolygons
public MapOptionsActivityBuilder withAllPolygons()
Deprecated.Builds the map options activity with all polygons options showing.- Returns:
- builder
-
withPolygons
public MapOptionsActivityBuilder withPolygons(AerisPolygonData... polygons)
Deprecated.Builds the map options activity with these polygon categories showing.- Parameters:
polygons
- polygons to show.- Returns:
- builder
-
build
public com.aerisweather.aeris.model.AerisPermissions build()
Deprecated.Builds the permissions needed to create a MapOptionsActivity with this showing.- Returns:
- AerisPermissions
-
-