Enum AerisMarkerType

  • All Implemented Interfaces:
    Serializable, Comparable<AerisMarkerType>

    public enum AerisMarkerType
    extends Enum<AerisMarkerType>
    Enum that breaks down the marker types and associated them with the drawable.


    Aeris marker types can have their drawable overridden at runtime by one of your choice through the initMarkerDrawable(AerisMarkerType type, int drawableRes) of AerisMapsEngine singleton:

    AerisMapsEngine.getInstance(context).initMarkerDrawable(AerisMarkerType.FIRE, R.drawable.marker_stormcell_general);

    Aeris markers can also be replaced through naming a drawable as the same name the library drawable is named. Each enum below has javadoc indicating which drawable is uses in the library project.

    • Enum Constant Detail

      • QUAKE_MINI

        public static final AerisMarkerType QUAKE_MINI
        Earthquakes with a magnitude of less than 3.0
        Drawable to override - marker_quake_mini
      • QUAKE_MINOR

        public static final AerisMarkerType QUAKE_MINOR
        Earthquakes with a magnitude between 3.0 and 3.9
        Drawable to override - marker_quake_minor
      • QUAKE_LIGHT

        public static final AerisMarkerType QUAKE_LIGHT
        Earthquakes with a magnitude between 5.0 and 5.9
        Drawable to override - marker_quake_light
      • QUAKE_MODERATE

        public static final AerisMarkerType QUAKE_MODERATE
        Earthquakes with a magnitude between 6.0 and 6.9
        Drawable to override - marker_quake_moderate
      • QUAKE_STRONG

        public static final AerisMarkerType QUAKE_STRONG
        Earthquakes with a magnitude between 7.0 and 7.9
        Drawable to override - marker_quake_strong
      • QUAKE_MAJOR

        public static final AerisMarkerType QUAKE_MAJOR
        Earthquakes with a magnitude of 8.0 or greater
        Drawable to override - marker_quake_major
      • QUAKE_GREAT

        public static final AerisMarkerType QUAKE_GREAT
        Earthquakes with a magnitude of 8.0 or greater
        Drawable to override - marker_quake_major
      • LIGHTNING_0_TO_15

        public static final AerisMarkerType LIGHTNING_0_TO_15
        Lightning strike in the past 15 minutes
        Drawable to override - marker_lightning_white
      • LIGHTNING_15_TO_30

        public static final AerisMarkerType LIGHTNING_15_TO_30
        Lightning strike that happened 15 to 30 minutes ago.
        Drawable to override - marker_lightning_yellow
      • LIGHTNING_30_TO_45

        public static final AerisMarkerType LIGHTNING_30_TO_45
        Lightning strike that happened 30 to 45 minutes ago.
        Drawable to override - marker_lightning_red
      • LIGHTNING_45_TO_60

        public static final AerisMarkerType LIGHTNING_45_TO_60
        Lightning strike that happened 45 to 60 minutes ago.
        Drawable to override - marker_lightning_orange
      • LIGHTNING_60_PLUS

        public static final AerisMarkerType LIGHTNING_60_PLUS
        Lightning strike that happened more than 60 minutes ago.
        Drawable to override - marker_lightning_blue
      • RECORDS_HIGHTEMP

        public static final AerisMarkerType RECORDS_HIGHTEMP
        Max temperature record.
        Drawable to override - marker_record_maxtemp
      • RECORDS_LOWTEMP

        public static final AerisMarkerType RECORDS_LOWTEMP
        s Low temperature record.
        Drawable to override - marker_record_lowtemp
      • RECORDS_HIGHMIN

        public static final AerisMarkerType RECORDS_HIGHMIN
        Minimum high temperature record.
        Drawable to override - marker_record_himin
      • RECORDS_LOWMAX

        public static final AerisMarkerType RECORDS_LOWMAX
        Maximum low temperature record.
        Drawable to override - marker_record_lomax
      • RECORDS_RAIN

        public static final AerisMarkerType RECORDS_RAIN
        Rain record.
        Drawable to override - marker_record_rain
      • RECORDS_SNOW

        public static final AerisMarkerType RECORDS_SNOW
        Snow record.
        Drawable to override - marker_record_snow
      • REPORT_HIGHWIND

        public static final AerisMarkerType REPORT_HIGHWIND
        Highwind report.
        Drawable to override - marker_report_wind
      • REPORT_RAIN_FLOOD

        public static final AerisMarkerType REPORT_RAIN_FLOOD
        Rain or flooding report.
        Drawable to override - marker_report_rain
      • REPORT_ICE

        public static final AerisMarkerType REPORT_ICE
        Ice report.
        Drawable to override - marker_report_ice
      • REPORT_TORNADO

        public static final AerisMarkerType REPORT_TORNADO
        Tornado report.
        Drawable to override - marker_report_tornado
      • REPORT_LIGHTNING

        public static final AerisMarkerType REPORT_LIGHTNING
        Lightning report.
        Drawable to override - marker_report_tstorm
      • REPORT_AVALANCHE

        public static final AerisMarkerType REPORT_AVALANCHE
        Avalanche report.
        Drawable to override - marker_report_avalanche
      • REPORT_HAIL

        public static final AerisMarkerType REPORT_HAIL
        Hail report.
        Drawable to override - marker_report_hail
      • REPORT_SNOW

        public static final AerisMarkerType REPORT_SNOW
        Snow report.
        Drawable to override - marker_report_snow
      • REPORT_FOG

        public static final AerisMarkerType REPORT_FOG
        Fog report.
        Drawable to override - marker_report_fog
      • REPORT_SURF

        public static final AerisMarkerType REPORT_SURF
        Surf report.
        Drawable to override - marker_report_wave
      • STORMCELL_GENERAL

        public static final AerisMarkerType STORMCELL_GENERAL
        General storm cell
        Drawable to override - marker_stormcell_general
      • STORMCELL_HAIL

        public static final AerisMarkerType STORMCELL_HAIL
        Hail storm cell
        Drawable to override - marker_stormcell_hail
      • STORMCELL_ROTATING

        public static final AerisMarkerType STORMCELL_ROTATING
        Rotating storm cell
        Drawable to override - marker_stormcell_rotating
      • STORMCELL_TORNADO

        public static final AerisMarkerType STORMCELL_TORNADO
        Tornado storm cell
        Drawable to override - marker_stormcell_tornado
      • FIRE

        public static final AerisMarkerType FIRE
        Wildfire reporting.
        Drawable to override - marker_wildfire
      • RIVER_MODERATE_FLOOD

        public static final AerisMarkerType RIVER_MODERATE_FLOOD
      • RIVER_BELOW_THRESH

        public static final AerisMarkerType RIVER_BELOW_THRESH
      • RIVER_OUT_OF_SERVICE

        public static final AerisMarkerType RIVER_OUT_OF_SERVICE
      • TROPICAL_TROPICAL_DEPRESSION

        public static final AerisMarkerType TROPICAL_TROPICAL_DEPRESSION
      • TROPICAL_TROPICAL_STORM

        public static final AerisMarkerType TROPICAL_TROPICAL_STORM
      • TROPICAL_CAT1_HURRICANE

        public static final AerisMarkerType TROPICAL_CAT1_HURRICANE
      • TROPICAL_CAT2_HURRICANE

        public static final AerisMarkerType TROPICAL_CAT2_HURRICANE
      • TROPICAL_CAT3_HURRICANE

        public static final AerisMarkerType TROPICAL_CAT3_HURRICANE
      • TROPICAL_CAT4_HURRICANE

        public static final AerisMarkerType TROPICAL_CAT4_HURRICANE
      • TROPICAL_CAT5_HURRICANE

        public static final AerisMarkerType TROPICAL_CAT5_HURRICANE
      • TROPICAL_SUPER_TYPHOON

        public static final AerisMarkerType TROPICAL_SUPER_TYPHOON
      • AQI_VERY_UNHEALTHY

        public static final AerisMarkerType AQI_VERY_UNHEALTHY
    • Method Detail

      • values

        public static AerisMarkerType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AerisMarkerType c : AerisMarkerType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AerisMarkerType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • cellFromValues

        public static AerisMarkerType cellFromValues​(int tvs,
                                                     int mda,
                                                     int hailProb)
        Gets the cell marker type from the storm cell values.
        Parameters:
        tvs - int
        mda - int
        hailProb - int
        Returns:
        AerisMarkerType from the cell information
      • lightningFromTime

        public static AerisMarkerType lightningFromTime​(long time)
        Gets the lighting AerisMarkerType from the code.
        Parameters:
        time - time to use to get marker.
        Returns:
        AersiMarker type from the code. Null otherwise.
      • reportFromCode

        public static AerisMarkerType reportFromCode​(String code)
        Gets the storm report AerisMarkerType from the code.
        Parameters:
        code - Code to check for.
        Returns:
        AersiMarker type from the code. Null otherwise.
      • recordFromType

        public static AerisMarkerType recordFromType​(String code)
        Gets the daily record AerisMarkerType from the code.
        Parameters:
        code - Code to check for.
        Returns:
        AersiMarker type from the code. Null otherwise.
      • quakeFromCode

        public static AerisMarkerType quakeFromCode​(String code)
        Gets the earthquake marker type from code.
        Parameters:
        code - code to use.
        Returns:
        AerisMarkerType of an Earthquake. Null otherwise.
      • riverFromStatusCode

        public static AerisMarkerType riverFromStatusCode​(String code)
        Gets the rivers AerisMarkerType from the code.
        Parameters:
        code - Code to check for.
        Returns:
        AerisMarker type from the code. Null otherwise.
      • tropicalFromStatusCode

        public static AerisMarkerType tropicalFromStatusCode​(String code)
        Gets the tropical_cyclones AerisMarkerType from the code.
        Parameters:
        code - Code to check for.
        Returns:
        AerisMarker type from the code. Null otherwise.
      • getType

        public String getType()
        Get the type of this AerisMarkerType. Types are used by some to identify how to translate a type from a response to a specific AerisMarkerType.
        Returns:
        the type
      • getIcon

        public int getIcon()
        Gets the icon drawable associated with this AerisMarkerType.
        Returns:
        the icon drawable resource.