GeoJsonRenderer

Renders GeoJsonFeature objects onto the GoogleMap as Marker, Polyline and Polygon objects. Also removes GeoJsonFeature objects and redraws features when updated.

Functions

Link copied to clipboard
open fun addFeature(@NonNull feature: GeoJsonFeature)
Adds a new GeoJsonFeature to the map if its geometry property is not null.
Link copied to clipboard
open fun addLayerToMap()
Adds all of the stored features in the layer onto the map if the layer is not already on the map.
Link copied to clipboard
open fun assignStyleMap(styleMap: HashMap<String, String>, styles: HashMap<String, KmlStyle>)
Iterates through a list of styles and assigns a style
Link copied to clipboard
open fun getFeatures(): Set<Feature>
Gets a set containing Features
Link copied to clipboard
open fun getGroundOverlayMap(): HashMap<KmlGroundOverlay, GroundOverlay>
Gets the ground overlays on the current layer
Link copied to clipboard
open fun getMap(): GoogleMap
Gets the GoogleMap that Feature objects are being placed on
Link copied to clipboard
open fun getValues(): Collection<Any>
getValues is called to retrieve the values stored in the mFeatures hashmap.
Link copied to clipboard
open fun isLayerOnMap(): Boolean
Checks if layer has been added to map
Link copied to clipboard
open fun removeFeature(feature: GeoJsonFeature)
Removes a GeoJsonFeature from the map if its geometry property is not null
Link copied to clipboard
Removes all GeoJsonFeature objects stored in the mFeatures hashmap from the map
Link copied to clipboard
open fun setMap(map: GoogleMap)
Changes the map that GeoJsonFeature objects are being drawn onto.
Link copied to clipboard
open fun update(observable: Observable, data: Any)
Update is called if the developer sets a style or geometry in a GeoJsonFeature object