GeoJSONOptions

Properties

Link copied to clipboard
abstract var attribution: String?

String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.

Link copied to clipboard
Link copied to clipboard
abstract var coordsToLatLng: (coords: Array<Number>) -> LatLng?

A Function that will be used for converting GeoJSON coordinates to LatLngs.

Link copied to clipboard
abstract var filter: (geoJsonFeature: Feature<GeoJsonGeometry>) -> Boolean?
Link copied to clipboard
abstract var interactive: Boolean?

If true, the popup/tooltip will listen to the mouse events.

Link copied to clipboard
Link copied to clipboard
abstract var onEachFeature: (feature: Feature<GeoJsonGeometry>, layer: Layer<*>) -> Unit?
Link copied to clipboard
abstract var pane: String?

By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.

Link copied to clipboard
abstract var pointToLayer: (geoJsonPoint: Feature<Point>, latlng: LatLng) -> Layer<*>?

A Function defining how GeoJSON points spawn Leaflet layers. It is internally called when data is added, passing the GeoJSON Feature and its LatLng.

Link copied to clipboard
abstract var style: StyleFunction

A Function defining the PathOptions for styling GeoJSON lines and polygons, called internally when data is added.