From d1ab1067f9c8d7adafda85b556005a5e582cd55d Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Thu, 11 Jul 2024 13:31:27 +0100 Subject: [PATCH] more README --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 94f1566..d093b3c 100644 --- a/README.md +++ b/README.md @@ -224,12 +224,19 @@ and inspect the `CustomEvent` detail property to access the Leaflet Event. Leaflet HTML wires up a Leaflet JS application by firing and listening to CustomEvents. These events can be observed to add additional functionality to an application. -| Key | Description | -| -- | -- | -| l:layer:connected | Triggered when a layer is connected to the DOM | -| l:layer:removed | Triggered when a layer is removed from the DOM but before the disconnectedCallback fires | -| l:popup:connected | Triggered when a popup element is connected to the DOM. Used to bind popup to parent marker | -| l:icon:connected | Triggered when a icon element is connected to the DOM. Used to bind icon to parent marker | +| Key | Description | +| -- | -- | +| l:layer:connected | Triggered when a layer is connected to the DOM | +| l:layer:removed | Triggered when a layer is removed from the DOM but before the disconnectedCallback fires | +| l:popup:connected | Triggered when a popup element is connected to the DOM. Used to bind popup to parent marker | +| l:icon:connected | Triggered when a icon element is connected to the DOM. Used to bind icon to parent marker | +| l:tooltip:connected | Triggered when a tooltip element is connected to the DOM | +| l:latlngbounds:connected | Triggered when a lat-lng-bounds element is connected to the DOM | +| l:latlngbounds:changed | Triggered when a lat-lng-bounds element attribute changed | + +> [!NOTE] +> At present, only the event keys needed to connect core functionality have been exposed. +> Future releases may add additional events based on user needs. ## Realistic example