PathOptions or 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:
function (geoJsonFeature) {
return {}
}
A Function that will be used for converting GeoJSON coordinates to LatLngs. The default is the coordsToLatLng static method.
A Function that will be used to decide whether to show a feature or not.
The default is to show all features:
function (geoJsonFeature) {
return true;
}
Called for each feature, and should return either a time range for the
feature or false
, indicating that it should not be included in the
timeline.
If not provided, it assumes that the start/end are already part of the feature object.
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:
function (feature, layer) {}
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:
function(geoJsonPoint, latlng) {
return L.marker(latlng);
}
Generated using TypeDoc
If true (default), the layer will update as soon as
setTime
is called.If
false
, you must callupdateDisplayedLayers()
to update the display to the current time. This is useful if you have complex data and performance becomes a concern.