GeoJsonFeature

A GeoJsonFeature has a geometry, bounding box, id and set of properties. Styles are also stored in this class.

Constructors

Link copied to clipboard
constructor(geometry: Geometry, id: String, properties: HashMap<String, String>, boundingBox: LatLngBounds)
Creates a new GeoJsonFeature object

Functions

Link copied to clipboard
open fun addObserver(o: Observer)
Link copied to clipboard
open fun countObservers(): Int
Link copied to clipboard
Link copied to clipboard
open fun deleteObservers()
Link copied to clipboard
open fun getBoundingBox(): LatLngBounds
Gets the array containing the coordinates of the bounding box for the feature.
Link copied to clipboard
open fun getGeometry(): Geometry
Gets the geometry object
Link copied to clipboard
open fun getId(): String
Gets the id of the feature
Link copied to clipboard
Returns the style used to render GeoJsonLineStrings
Link copied to clipboard
open fun getMarkerOptions(): MarkerOptions
Gets a MarkerOptions object from mPointStyle containing styles for the GeoJsonPoint
Link copied to clipboard
Returns the style used to render GeoJsonPoints
Link copied to clipboard
open fun getPolygonOptions(): PolygonOptions
Gets a PolygonOptions object from mPolygonStyle containing styles for the GeoJsonPolygon
Link copied to clipboard
Returns the style used to render GeoJsonPolygons
Link copied to clipboard
open fun getPolylineOptions(): PolylineOptions
Gets a Polyline object from mLineStringStyle containing styles for the GeoJsonLineString
Link copied to clipboard
Gets the property entry set
Link copied to clipboard
open fun getProperty(property: String): String
Gets the value for a stored property
Link copied to clipboard
Returns all the stored property keys
Link copied to clipboard
open fun hasChanged(): Boolean
Link copied to clipboard
open fun hasGeometry(): Boolean
Checks if the geometry is assigned
Link copied to clipboard
Gets whether the placemark has properties
Link copied to clipboard
open fun hasProperty(property: String): Boolean
Checks whether the given property key exists
Link copied to clipboard
open fun notifyObservers()
Link copied to clipboard
open fun removeProperty(property: String): String
Removes a given property
Link copied to clipboard
open fun setGeometry(geometry: Geometry)
Sets the stored Geometry and redraws it on the layer if it has already been added
Link copied to clipboard
open fun setLineStringStyle(lineStringStyle: GeoJsonLineStringStyle)
Sets the style used to render GeoJsonLineStrings
Link copied to clipboard
open fun setPointStyle(pointStyle: GeoJsonPointStyle)
Sets the style used to render GeoJsonPoints
Link copied to clipboard
open fun setPolygonStyle(polygonStyle: GeoJsonPolygonStyle)
Sets the style used to render GeoJsonPolygons
Link copied to clipboard
open fun setProperty(property: String, propertyValue: String): String
Store a new property key and value
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun update(observable: Observable, data: Any)
Update is called if the developer modifies a style that is stored in this feature