Layer

abstract class Layer

An abstraction that shares the common properties of KmlLayer and GeoJsonLayer

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Callback interface for when a map object is clicked.

Functions

Link copied to clipboard
abstract fun addLayerToMap()
Link copied to clipboard
open fun getContainerFeature(mapObject: Any): Feature
Link copied to clipboard
Gets the default style used to render GeoJsonLineStrings.
Link copied to clipboard
Gets the default style used to render GeoJsonPoints.
Link copied to clipboard
Gets the default style used to render GeoJsonPolygons.
Link copied to clipboard
open fun getFeature(mapObject: Any): Feature
Retrieves a corresponding Feature instance for the given Object Allows maps with multiple layers to determine which layer the Object belongs to.
Link copied to clipboard
open fun getFeatures(): Iterable<out Feature>
Gets an iterable of all Feature elements that have been added to the layer
Link copied to clipboard
open fun getMap(): GoogleMap
Gets the map on which the layer is rendered
Link copied to clipboard
open fun isLayerOnMap(): Boolean
Checks if the current layer has been added to the map
Link copied to clipboard
Removes all the data from the map and clears all the stored placemarks
Link copied to clipboard
open fun setMap(map: GoogleMap)
Renders the layer on the given map.
Link copied to clipboard
Sets a single click listener for the entire GoogleMap object, that will be called with the corresponding Feature object when an object on the map (Polygon, Marker, Polyline) is clicked.