diff --git a/archive/components/leaflet/tipCircle.ts b/archive/components/leaflet/tipCircle.ts new file mode 100644 index 0000000..378b3b6 --- /dev/null +++ b/archive/components/leaflet/tipCircle.ts @@ -0,0 +1,28 @@ +import * as L from 'leaflet'; + +interface TooltipCircleOptions extends L.CircleOptions { + tooltipContent?: string; +} + +export class TipCircle extends L.Circle { + constructor(latlng: L.LatLngExpression, options: TooltipCircleOptions) { + super(latlng, options); + if (options?.tooltipContent) { + this.bindTooltip(options.tooltipContent, { + permanent: false, + direction: 'top', + }); + } + } + override setRadius(radius: number): this { + super.setRadius(radius); + if (this.getTooltip()) { + this.setTooltipContent(`New radius: ${radius}m`); + } + return this; + } +} + +export const tipCircle = (latlng: L.LatLngExpression, options: TooltipCircleOptions) => { + return new TipCircle(latlng, options); +} diff --git a/public/icons.svg b/public/icons.svg new file mode 100644 index 0000000..e69de29 diff --git a/quasar.extensions.json b/quasar.extensions.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/quasar.extensions.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/components/ControlFab.vue b/src/components/ControlFab.vue new file mode 100644 index 0000000..690e3ad --- /dev/null +++ b/src/components/ControlFab.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/src/components/EditFavoriteDialog.vue b/src/components/EditFavoriteDialog.vue index 2a0adb0..5ba1975 100644 --- a/src/components/EditFavoriteDialog.vue +++ b/src/components/EditFavoriteDialog.vue @@ -1,6 +1,6 @@