Package com.aerisweather.aeris.maps
Class AerisMarkerWindow
- java.lang.Object
-
- com.aerisweather.aeris.maps.AerisMarkerWindow
-
public abstract class AerisMarkerWindow extends Object
-
-
Constructor Summary
Constructors Constructor Description AerisMarkerWindow()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.android.gms.maps.model.MarkeraddGoogleMarker(com.google.android.gms.maps.GoogleMap map, double latitude, double longitude, com.google.android.gms.maps.model.BitmapDescriptor icon, Object data)Default anchor position is (.5f,.5f).com.google.android.gms.maps.model.MarkeraddGoogleMarker(com.google.android.gms.maps.GoogleMap map, double latitude, double longitude, com.google.android.gms.maps.model.BitmapDescriptor icon, String title, String snippet)Will create the default google info window with the marker from the info presented.com.google.android.gms.maps.model.MarkeraddGoogleMarker(com.google.android.gms.maps.GoogleMap map, com.google.android.gms.maps.model.MarkerOptions options, Object data)abstract voidfillView(android.view.View view, com.google.android.gms.maps.model.Marker marker)Be able to take the view created in AerisMarkerWindow getView() and fill it with the data from the marker.ObjectgetData(com.google.android.gms.maps.model.Marker marker)abstract android.view.ViewgetView()Get the view that this view should populate.abstract voidonInfoWindowPressed(com.google.android.gms.maps.model.Marker marker)voidremoveMarker(com.google.android.gms.maps.model.Marker marker)voidremoveMarkerData(com.google.android.gms.maps.model.Marker marker)
-
-
-
Method Detail
-
getView
public abstract android.view.View getView()
Get the view that this view should populate.Example of construction of a view to return.
TextView view = (TextView) inflater.inflate( R.layout.some_layout, null);- Returns:
- view that should be created.
-
fillView
public abstract void fillView(android.view.View view, com.google.android.gms.maps.model.Marker marker)Be able to take the view created in AerisMarkerWindow getView() and fill it with the data from the marker.- Parameters:
view- The view to modify.marker- The marker to use.
-
onInfoWindowPressed
public abstract void onInfoWindowPressed(com.google.android.gms.maps.model.Marker marker)
-
addGoogleMarker
public com.google.android.gms.maps.model.Marker addGoogleMarker(com.google.android.gms.maps.GoogleMap map, double latitude, double longitude, com.google.android.gms.maps.model.BitmapDescriptor icon, String title, String snippet)Will create the default google info window with the marker from the info presented. Default anchor position is (.5f,.5f).- Parameters:
map- GoogleMaplatitude- doublelongitude- doubleicon- bitmaptitle- Stringsnippet- String- Returns:
- Marker
-
addGoogleMarker
public com.google.android.gms.maps.model.Marker addGoogleMarker(com.google.android.gms.maps.GoogleMap map, double latitude, double longitude, com.google.android.gms.maps.model.BitmapDescriptor icon, Object data)Default anchor position is (.5f,.5f).- Parameters:
map- GoogleMaplatitude- doublelongitude- doubleicon- bitmapdata- Object- Returns:
- Marker
-
addGoogleMarker
public com.google.android.gms.maps.model.Marker addGoogleMarker(com.google.android.gms.maps.GoogleMap map, com.google.android.gms.maps.model.MarkerOptions options, Object data)- Parameters:
map- GoogleMapoptions- MarkerOptionsdata- Object- Returns:
- Marker
-
getData
public Object getData(com.google.android.gms.maps.model.Marker marker)
-
removeMarker
public void removeMarker(com.google.android.gms.maps.model.Marker marker)
-
removeMarkerData
public void removeMarkerData(com.google.android.gms.maps.model.Marker marker)
-
-