GeoJsonOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

GeoJsonOptions({String? pane, String? attribution, bool? markersInheritOptions, Layer pointToLayer(dynamic geoJsonPoint, LatLng latlng)?, PathOptions style(dynamic geoJsonFeature)?, dynamic onEachFeature(dynamic feature, Layer layer)?, bool filter(dynamic geoJsonFeature)?, Function? coordsToLatLng})
factory

Properties

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.
getter/setter pairinherited
coordsToLatLng Function
A Function that will be used for converting GeoJSON coordinates to LatLngs. The default is the coordsToLatLng static method.
getter/setter pair
filter bool Function(dynamic geoJsonFeature)
A Function that will be used to decide whether to include a feature or not. The default is to include all features.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
markersInheritOptions bool
Whether default Markers for "Point" type Features inherit from group options.
getter/setter pair
onEachFeature ↔ dynamic Function(dynamic feature, Layer layer)
A Function that will be called once for each created Feature, after it has been created and styled. Useful for attaching events and popups to features. The default is to do nothing with the newly created layers.
getter/setter pair
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.
getter/setter pairinherited
pointToLayer Layer Function(dynamic geoJsonPoint, LatLng latlng)
A Function defining how GeoJSON points spawn Leaflet layers. It is internally called when data is added, passing the GeoJSON point feature and its LatLng. The default is to spawn a default Marker.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style PathOptions Function(dynamic geoJsonFeature)
A Function defining the Path options for styling GeoJSON lines and polygons, called internally when data is added. The default value is to not override any defaults.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited