Interface GeoJSONOptions

Index

Properties

Properties

optional public coordsToLatLng?: (coords: any[]) => L.LatLng[]

Function that will be used for converting GeoJSON coordinates to LatLng points (if not specified, coords will be assumed to be WGS84 � standard[longitude, latitude] values in degrees).

optional public filter?: (featureData: any, layer: L.ILayer) => boolean

Function that will be used to decide whether to show a feature or not.

optional public onEachFeature?: (featureData: any, layer: L.ILayer) => void

Function that will be called on each created feature layer. Useful for attaching events and popups to features.

optional public pointToLayer?: (featureData: any, latlng: L.LatLng) => L.ILayer

Function that will be used for creating layers for GeoJSON points (if not specified, simple markers will be created).

optional public style?: (featureData: any) => any

Function that will be used to get style options for vector layers created for GeoJSON features.