Skip to content

Commit

Permalink
decorative accessibility tutorial TypeScript conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 3, 2024
1 parent b54279e commit c1f6b71
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/tutorial/accessibility/decorative.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import 'leaflet/dist/leaflet.css'
import '../style/theme.css'
import '../style/medium.css'

import { type Map } from '@stassi/leaf'

const map: Map = await (
await import('../../leaf/map/map.js')
).map({
center: [50.4501, 30.5234],
id: 'map',
zoom: 4,
})

await (
await import('../../leaf/marker.js')
).marker({
latitudeLongitude: [50.4501, 30.5234],
map,
})

await (
await import('../../leaf/tile-layer/tile-layer-osm.js')
).tileLayerOsm({
map,
})

0 comments on commit c1f6b71

Please sign in to comment.