Skip to content

Commit

Permalink
MapFullscreen integration in fullscreen accessibility tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 6, 2024
1 parent 94ac0eb commit a347318
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions public/tutorial/accessibility/script/fullscreen.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { createFullscreenMap } from '../../../script/leaflet-fullscreen.js'
import { attributionOsm, urlTemplateOsm } from '../../../script/base-layers.js'
import { marker } from '../../../leaflet-adapter/marker.js'
import { tileLayer } from '../../../leaflet-adapter/tile-layer/tile-layer.js'
import { attributionOsm, urlTemplateOsm } from '../../../script/base-layers.js'
import { MapFullscreen } from '../../../script/leaflet-fullscreen.js'

function mapFullscreen({ id, ...props }) {
return new MapFullscreen(id, {
fullscreenControl: true,
...props,
})
}

const altText = 'Kyiv',
map = createFullscreenMap({
map = mapFullscreen({
center: [50.4501, 30.5234],
id: 'map',
zoom: 4,
Expand Down

0 comments on commit a347318

Please sign in to comment.