// // Copyright 2025 DXOS.org // import { type ControlPosition } from 'leaflet'; import { type JSX } from 'solid-js'; export type ControlAction = 'toggle' | 'start' | 'zoom-in' | 'zoom-out'; export type ControlProps = { class?: string; onAction?: (action: ControlAction) => void; }; export const controlPositions: Record = { topleft: 'top-2 left-2', topright: 'top-2 right-2', bottomleft: 'bottom-2 left-2', bottomright: 'bottom-2 right-2', }; export const ZoomControls = (props: ControlProps): JSX.Element => { return (
); }; export const ActionControls = (props: ControlProps): JSX.Element => { return (
); };