Class 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 Detail

      • MapOptionsActivityBuilder

        public MapOptionsActivityBuilder()
        Deprecated.
        Initializes the builder
    • 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 true
        currents - Show the current tiles if true
        radar - Shows the radar tiles if true
        satellite - 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