Skip to content

Commit

Permalink
domElement integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 22, 2024
1 parent ae2483b commit 4786aca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/leaf/map/fullscreen/fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import {
type ControlPosition,
type Map,
type MapOptions,
DomUtil,
map as leafletMap,
} from 'leaflet'

import { joinClassNames } from '../../../dom/join-class-names'
import { domElement } from '../../../dom/element'

import { controlAddedListener } from './control/added-listener'
import {
Expand Down Expand Up @@ -89,18 +89,18 @@ export function fullscreenMap({
}: FullscreenMapOptions): Map {
const { get: getFullscreenState, toggle: toggleFullscreenState } =
useSwitch(false),
containerElement: HTMLElement = DomUtil.create(
containerTag,
joinClassNames(containerClassNames),
),
containerElement: HTMLElement = domElement({
className: joinClassNames(containerClassNames),
tag: containerTag,
}),
{ assign: anchorAssign, onClick: anchorOnClick }: ControlAnchor =
controlAnchor({
attributes: anchorAttributes,
element: DomUtil.create(
anchorTag,
joinClassNames(anchorClassNames),
containerElement,
),
element: domElement({
className: joinClassNames(anchorClassNames),
container: containerElement,
tag: anchorTag,
}),
}),
map: Map = leafletMap(id, mapOptions),
handleMapLifecycleChange: (
Expand Down

0 comments on commit 4786aca

Please sign in to comment.