Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GeoJSONOptions

Hierarchy

Index

Properties

Optional coordsToLatLng

coordsToLatLng: function

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).

Type declaration

    • Parameters

      • coords: any[]

      Returns LatLng[]

Optional filter

filter: function

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

Type declaration

    • (featureData: any, layer: ILayer): boolean
    • Parameters

      • featureData: any
      • layer: ILayer

      Returns boolean

Optional onEachFeature

onEachFeature: function

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

Type declaration

    • (featureData: any, layer: ILayer): void
    • Parameters

      • featureData: any
      • layer: ILayer

      Returns void

Optional pointToLayer

pointToLayer: function

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

Type declaration

Optional style

style: function

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

Type declaration

    • (featureData: any): any
    • Parameters

      • featureData: any

      Returns any