Class AerisMarker
- java.lang.Object
-
- com.aerisweather.aeris.maps.markers.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 Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMarkerToList(List<AerisMarker> markers)Adds the marker to the list.com.google.android.gms.maps.model.BitmapDescriptorgetBitmapDescriptor(android.content.Context context)com.aerisweather.aeris.model.AerisDataJSONgetDataFromMarker()Gets the data associated with the marker.intgetIcon()Gets the icon of the AerisMarker.com.aerisweather.aeris.model.AerisLocationgetLocation()Get the location of the marker.com.google.android.gms.maps.model.LatLnggetLocationAsLatLng()Get the location as a Google friendly LatLng object.AerisMarkerTypegetMarkerType()Gets the marker type of the AerisMarker.AerisPointDatagetPointDataType()AerisPolygongetPointsPolygon()AerisPolylinegetPointsPolyline()StringgetSnippet()StringgetTitle()voidsetPointDataType(AerisPointData dataType)voidsetPointsPolygon(AerisPolygon pointsPolygon)voidsetPointsPolyline(AerisPolyline pointsPolyline)voidsetTitleAndSnippet(String title, String snippet)
-
-
-
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 markertype- type of the markerdata- 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
-
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
-
getPointDataType
public AerisPointData getPointDataType()
-
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
-
-