pointToLayer property

Layer Function(dynamic geoJsonPoint, LatLng latlng) pointToLayer

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.

Implementation

external Layer Function(dynamic geoJsonPoint, LatLng latlng) get pointToLayer;
void pointToLayer=(Layer value(dynamic geoJsonPoint, LatLng latlng))

Implementation

external set pointToLayer(
    Layer Function(dynamic geoJsonPoint, LatLng latlng) value);