-
public class RendererAn abstraction that shares the common properties of KmlRenderer and GeoJsonRenderer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRenderer.ImagesCache
-
Constructor Summary
Constructors Constructor Description Renderer(GoogleMap map, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache imagesCache)Creates a new Renderer object for KML features Renderer(GoogleMap map, HashMap<out Feature, Object> features, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager)Creates a new Renderer object for GeoJSON features
-
Method Summary
Modifier and Type Method Description booleanisLayerOnMap()Checks if layer has been added to map GoogleMapgetMap()Gets the GoogleMap that Feature objects are being placed on voidsetMap(GoogleMap map)Sets the map that objects are being placed on Set<Feature>getFeatures()Gets a set containing Features Collection<Object>getValues()getValues is called to retrieve the values stored in the mFeatureshashmap. HashMap<KmlGroundOverlay, GroundOverlay>getGroundOverlayMap()Gets the ground overlays on the current layer voidassignStyleMap(HashMap<String, String> styleMap, HashMap<String, KmlStyle> styles)Iterates through a list of styles and assigns a style -
-
Constructor Detail
-
Renderer
Renderer(GoogleMap map, Context context, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager, Renderer.ImagesCache imagesCache)
Creates a new Renderer object for KML features- Parameters:
map- map to place objects oncontext- the ContextmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection fromimagesCache- an optional ImagesCache to be used for caching images fetched
-
Renderer
Renderer(GoogleMap map, HashMap<out Feature, Object> features, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager)
Creates a new Renderer object for GeoJSON features- Parameters:
map- map to place objects onfeatures- contains a hashmap of features and objects that will go on the mapmarkerManager- marker manager to create marker collection frompolygonManager- polygon manager to create polygon collection frompolylineManager- polyline manager to create polyline collection fromgroundOverlayManager- ground overlay manager to create ground overlay collection from
-
-
Method Detail
-
isLayerOnMap
boolean isLayerOnMap()
Checks if layer has been added to map
-
getMap
GoogleMap getMap()
Gets the GoogleMap that Feature objects are being placed on
-
setMap
void setMap(GoogleMap map)
Sets the map that objects are being placed on
- Parameters:
map- map to place all objects on
-
getFeatures
Set<Feature> getFeatures()
Gets a set containing Features
-
getValues
Collection<Object> getValues()
getValues is called to retrieve the values stored in the mFeatureshashmap.
-
getGroundOverlayMap
HashMap<KmlGroundOverlay, GroundOverlay> getGroundOverlayMap()
Gets the ground overlays on the current layer
-
-
-
-