Class AerisMarker


  • public class AerisMarker
    extends Object
    Marker class for displaying an Aeris marker on the map. Some markers, like storm cell markers, can have associated polylines and polygons.
    • Constructor Detail

      • AerisMarker

        public AerisMarker​(com.aerisweather.aeris.model.AerisLocation location,
                           AerisMarkerType type,
                           com.aerisweather.aeris.model.AerisDataJSON data)
        Constructor to initialize the AerisMarker with a location and an AerisMarkerType
        Parameters:
        location - location of the marker
        type - type of the marker
        data - common Aeris JSON data
    • Method Detail

      • addMarkerToList

        public void addMarkerToList​(List<AerisMarker> markers)
        Adds the marker to the list. This does a null check to make sure the marker was made properly before adding it to the list. If it is not, it will not be added to the list.
        Parameters:
        markers - markers list to add to
      • getLocation

        public com.aerisweather.aeris.model.AerisLocation getLocation()
        Get the location of the marker.
        Returns:
        the location
      • getLocationAsLatLng

        public com.google.android.gms.maps.model.LatLng getLocationAsLatLng()
        Get the location as a Google friendly LatLng object.
        Returns:
        LatLng version of the location.
      • getBitmapDescriptor

        public com.google.android.gms.maps.model.BitmapDescriptor getBitmapDescriptor​(android.content.Context context)
      • getIcon

        public int getIcon()
        Gets the icon of the AerisMarker.
        Returns:
        the icon
      • setTitleAndSnippet

        public void setTitleAndSnippet​(String title,
                                       String snippet)
      • getTitle

        public String getTitle()
      • getSnippet

        public String getSnippet()
      • getMarkerType

        public AerisMarkerType getMarkerType()
        Gets the marker type of the AerisMarker.
        Returns:
        the marker type
      • getDataFromMarker

        public com.aerisweather.aeris.model.AerisDataJSON getDataFromMarker()
        Gets the data associated with the marker.
        Returns:
        return
      • setPointDataType

        public void setPointDataType​(AerisPointData dataType)
      • getPointsPolygon

        public AerisPolygon getPointsPolygon()
        Returns:
        the pointsPolygon
      • setPointsPolygon

        public void setPointsPolygon​(AerisPolygon pointsPolygon)
        Parameters:
        pointsPolygon - the pointsPolygon to set
      • getPointsPolyline

        public AerisPolyline getPointsPolyline()
        Returns:
        the pointsPolyline
      • setPointsPolyline

        public void setPointsPolyline​(AerisPolyline pointsPolyline)
        Parameters:
        pointsPolyline - the pointsPolyline to set