@@ -126,7 +126,7 @@ const interactiveMap = new InteractiveMap('map', {
126126 transformRequest : transformTileRequest ,
127127 enableZoomControls : true ,
128128 readMapText : true ,
129- // enableFullscreen: true,
129+ enableFullscreen : true ,
130130 // hasExitButton: true,
131131 // markers: [{
132132 // id: 'location',
@@ -245,72 +245,6 @@ interactiveMap.on('datasets:ready', function () {
245245let selectedFeatureIds = [ ]
246246
247247interactiveMap . on ( 'draw:ready' , function ( ) {
248- // interactiveMap.addButton('drawPolygon', {
249- // label: 'Draw polygon',
250- // group: { name: 'drawing-tools', label: 'Drawing tools', order: 2 },
251- // iconSvgContent: '<path d="M19.5 7v10M4.5 7v10M7 19.5h10M7 4.5h10"/><path d="M22 18v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1zm0-15v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1zM7 18v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1zM7 3v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1z"/>',
252- // isPressed: false,
253- // mobile: { slot: 'right-top' },
254- // tablet: { slot: 'right-top' },
255- // desktop: { slot: 'right-top' },
256- // onClick: function (e) {
257- // e.target.setAttribute('aria-pressed', true)
258- // drawPlugin.newPolygon(crypto.randomUUID(), {
259- // stroke: '#e6c700',
260- // fill: 'rgba(255, 221, 0, 0.1)'
261- // })
262- // }
263- // })
264- // interactiveMap.addButton('drawLine', {
265- // label: 'Draw line',
266- // group: { name: 'drawing-tools', label: 'Drawing tools', order: 2 },
267- // iconSvgContent: '<path d="M5.706 16.294L16.294 5.706"/><path d="M21 2v3c0 .549-.451 1-1 1h-3c-.549 0-1-.451-1-1V2c0-.549.451-1 1-1h3c.549 0 1 .451 1 1zM6 17v3c0 .549-.451 1-1 1H2c-.549 0-1-.451-1-1v-3c0-.549.451-1 1-1h3c.549 0 1 .451 1 1z"/>',
268- // isPressed: false,
269- // mobile: { slot: 'right-top' },
270- // tablet: { slot: 'right-top' },
271- // desktop: { slot: 'right-top' },
272- // onClick: function (e) {
273- // e.target.setAttribute('aria-pressed', true)
274- // drawPlugin.newLine(crypto.randomUUID(), {
275- // stroke: { outdoor: '#99704a', dark: '#ffffff' }
276- // })
277- // }
278- // })
279- // interactiveMap.addButton('editFeature', {
280- // label: 'Edit feature',
281- // group: { name: 'drawing-tools', label: 'Drawing tools', order: 2 },
282- // iconSvgContent: '<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>',
283- // isDisabled: true,
284- // mobile: { slot: 'right-top' },
285- // tablet: { slot: 'right-top' },
286- // desktop: { slot: 'right-top' },
287- // onClick: function (e) {
288- // if (e.target.getAttribute('aria-disabled') === 'true') {
289- // return
290- // }
291- // interactPlugin.disable()
292- // drawPlugin.editFeature(selectedFeatureId)
293- // }
294- // })
295- // interactiveMap.addButton('deleteFeature', {
296- // label: 'Delete feature',
297- // group: { name: 'drawing-tools', label: 'Drawing tools', order: 2 },
298- // iconSvgContent: '<path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>',
299- // isDisabled: true,
300- // mobile: { slot: 'right-top' },
301- // tablet: { slot: 'right-top' },
302- // desktop: { slot: 'right-top' },
303- // onClick: function (e) {
304- // if (e.target.getAttribute('aria-disabled') === 'true') {
305- // return
306- // }
307- // drawPlugin.deleteFeature(selectedFeatureId)
308- // interactiveMap.toggleButtonState('drawPolygon', 'disabled', false)
309- // interactiveMap.toggleButtonState('drawLine', 'disabled', false)
310- // interactiveMap.toggleButtonState('editFeature', 'disabled', true)
311- // interactiveMap.toggleButtonState('deleteFeature', 'disabled', true)
312- // }
313- // })
314248 drawPlugin . addFeature ( {
315249 id : 'test1234' ,
316250 type : 'Feature' ,
0 commit comments