leaflet-polydraw 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/leaflet-polydraw.css +1 -1
- package/dist/polydraw.es.js +232 -29
- package/dist/polydraw.es.js.map +1 -1
- package/dist/polydraw.umd.min.js +1 -1
- package/dist/polydraw.umd.min.js.map +1 -1
- package/dist/styles/polydraw.css +64 -34
- package/dist/types/managers/polygon-interaction-manager.d.ts +4 -0
- package/dist/types/managers/polygon-interaction-manager.d.ts.map +1 -1
- package/dist/types/managers/polygon-mutation-manager.d.ts.map +1 -1
- package/dist/types/polydraw.d.ts +1 -0
- package/dist/types/polydraw.d.ts.map +1 -1
- package/dist/types/popup-factory.d.ts.map +1 -1
- package/dist/types/transform/transform-overlay.d.ts +6 -0
- package/dist/types/transform/transform-overlay.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
html,body,#blitz-app{height:100%}.polygon-marker{background-color:#e0f8c5;box-shadow:0 0 0 2px #50622b,0 0 10px #00000059;width:12px!important;height:12px!important;margin-left:-6px!important;margin-top:-6px!important;border-radius:50%;cursor:move;outline:none;transition:background-color .25s}.polygon-marker.menu{margin-left:-11px!important;margin-top:-11px!important;background-color:#86a2d6;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2040%2040'%20style='enable-background:new%200%200%2040%2040;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3crect%20y='0'%20class='st0'%20width='40'%20height='40'/%3e%3cpath%20class='st1'%20d='M34.6,19.9L34.6,19.9c-0.1-2.1-0.5-4.1-1.4-5.8l4.3-3.6l-4.2-5.2l-4.5,3.4l0,0c-1.6-1.2-3.4-2.1-5.3-2.5l0,0%20l-0.2-5.6h-6.7l-0.2,5.6c-2,0.5-3.8,1.4-5.4,2.6l0,0L6.6,5.3l-4.2,5.2l4.3,3.6l0,0C5.9,16,5.5,17.9,5.4,20l0,0L0,21.4l1.5,6.5%20L7,26.8l0,0c0.9,1.8,2.2,3.4,3.8,4.7l0,0l-2.3,5.1l6,2.9l2.6-5c1,0.2,1.9,0.3,2.9,0.3c1.1,0,2.1-0.1,3.1-0.3l0,0l2.6,5l6-2.9%20l-2.3-5.1l0,0c1.5-1.3,2.8-2.9,3.7-4.7l0,0l5.5,1.1l1.4-6.5L34.6,19.9z%20M11.9,20.2c0-4.4,3.6-8.1,8.1-8.1c4.4,0,8.1,3.6,8.1,8.1%20s-3.6,8.1-8.1,8.1C15.5,28.3,11.9,24.7,11.9,20.2z'/%3e%3c/svg%3e");-ms-background-size:20px 20px;background-size:20px 20px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker.info{margin-left:-11px!important;margin-top:-11px!important;background-color:#86a2d6;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20200%20200'%20style='enable-background:new%200%200%20200%20200;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%23FFFFFF;}%20.st2{opacity:0.3;fill:%23FFFFFF;}%20%3c/style%3e%3crect%20class='st0'%20width='200'%20height='200'/%3e%3cg%3e%3cpath%20class='st1'%20d='M100,1.4C45.5,1.4,1.4,45.5,1.4,100c0,54.5,44.2,98.6,98.6,98.6s98.6-44.2,98.6-98.6%20C198.6,45.5,154.5,1.4,100,1.4z%20M100,174.4c-41.1,0-74.4-33.3-74.4-74.4c0-41.1,33.3-74.4,74.4-74.4c41.1,0,74.4,33.3,74.4,74.4%20C174.4,141.1,141.1,174.4,100,174.4z'/%3e%3cpath%20class='st1'%20d='M94.1,66.4c1,1,2.1,1.9,3.4,2.5c1.3,0.6,2.8,0.9,4.4,0.9c1.5,0,3-0.3,4.3-0.9c1.3-0.6,2.4-1.4,3.3-2.5%20c0.9-1,1.6-2.2,2.1-3.6s0.7-2.8,0.7-4.4c0-1.6-0.3-3.1-0.8-4.5c-0.5-1.4-1.3-2.6-2.2-3.7c-1-1-2.1-1.9-3.4-2.5%20c-1.3-0.6-2.7-0.9-4.2-0.9c-1.5,0-2.8,0.3-4.1,0.9s-2.4,1.4-3.4,2.5c-1,1-1.7,2.3-2.3,3.7c-0.6,1.4-0.9,2.9-0.9,4.5%20c0,1.6,0.3,3.1,0.8,4.4S93.2,65.3,94.1,66.4z'/%3e%3cpath%20class='st1'%20d='M109.9,139.7c0.1-1.2,0.1-2.3,0.2-3.4c0-1.1,0.1-2.1,0.1-3.1c0-1,0-1.8,0-2.5V82.1h-7.6%20c-0.5,0.5-1.3,0.9-2.3,1.4c-1.1,0.5-2.5,0.9-4.2,1.4c-1.7,0.4-3.9,0.8-6.3,1c-2.5,0.3-5.3,0.4-8.5,0.4v10.5l9.8-0.4%20c-0.2,2.1-0.4,4.2-0.4,6.4c-0.1,2.2-0.1,4.1-0.1,5.8v23.2c0,1.9-0.1,3.6-0.2,5.1c-0.1,1.5-0.5,2.8-1,3.9c-0.5,1.1-1.4,1.9-2.5,2.5%20c-1.1,0.6-2.6,0.9-4.6,0.9v9.1h36.6v-10.6l-9.1,0.4C109.8,141.9,109.9,140.8,109.9,139.7z'/%3e%3ccircle%20class='st2'%20cx='100'%20cy='103'%20r='86.2'/%3e%3c/g%3e%3c/svg%3e");-ms-background-size:24px 24px;background-size:24px 24px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker:hover{width:18px!important;height:18px!important;margin-left:-9px!important;margin-top:-9px!important}.polygon-marker.menu:hover{background-color:red;width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.info:hover{background-color:#86a2d6;width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.delete{margin-left:-11px!important;margin-top:-11px!important;background-color:#645d5d;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2048%2048'%20style='enable-background:new%200%200%2048%2048;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23ffffff}%20.st1{fill:%23333333;fill-opacity:0;}%20%3c/style%3e%3ctitle%3etrash%3c/title%3e%3crect%20class='st1'%20width='48'%20height='48'/%3e%3cpolygon%20class='st0'%20points='26.6,10%2026.6,7.8%2021.4,7.8%2021.4,10%2012.6,10%2012.6,12.8%2035.4,12.8%2035.4,10%20'/%3e%3cpath%20class='st0'%20d='M35.4,15.4H12.6v4.3h1.8V37c0,1.1,0.9,2,2,2h15.2c1.1,0,2-0.9,2-2V19.7h1.8V15.4z%20M19.7,34.2c0,0.5-0.4,1-1,1%20c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1c0.5,0,1,0.4,1,1V34.2z%20M25.3,33.8c0,0.7-0.6,1.3-1.3,1.3c-0.7,0-1.3-0.6-1.3-1.3V23%20c0-0.7,0.6-1.3,1.3-1.3c0.7,0,1.3,0.6,1.3,1.3V33.8z%20M30.3,34.2c0,0.5-0.4,1-1,1c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1%20c0.5,0,1,0.4,1,1V34.2z'/%3e%3c/svg%3e");-ms-background-size:24px 24px;background-size:24px 24px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker.delete:hover{background-color:#5c5151;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2048%2048'%20style='enable-background:new%200%200%2048%2048;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23ffffff}%20.st1{fill:%23333333;fill-opacity:0;}%20%3c/style%3e%3ctitle%3etrash%3c/title%3e%3crect%20class='st1'%20width='48'%20height='48'/%3e%3cpolygon%20class='st0'%20points='27.4,9.3%2027.8,7.1%2022.7,6%2022.2,8.2%2013.6,6.4%2013.1,9.1%2035.4,13.8%2036,11.1%20'/%3e%3cpath%20class='st0'%20d='M35.4,15.4H12.6v4.3h1.8V37c0,1.1,0.9,2,2,2h15.2c1.1,0,2-0.9,2-2V19.7h1.8V15.4z%20M19.7,34.2c0,0.5-0.4,1-1,1%20c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1c0.5,0,1,0.4,1,1V34.2z%20M25.3,33.8c0,0.7-0.6,1.3-1.3,1.3c-0.7,0-1.3-0.6-1.3-1.3V23%20c0-0.7,0.6-1.3,1.3-1.3c0.7,0,1.3,0.6,1.3,1.3V33.8z%20M30.3,34.2c0,0.5-0.4,1-1,1c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1%20c0.5,0,1,0.4,1,1V34.2z'/%3e%3c/svg%3e");width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.hole{background-color:#fcc;box-shadow:0 0 0 2px #a00,0 0 10px #00000059;width:12px!important;height:12px!important;margin-left:-6px!important;margin-top:-6px!important;border-radius:50%;cursor:move;outline:none;transition:background-color .25s}.polygon-marker.hole:hover{background-color:#d4a5b8;width:18px!important;height:18px!important;margin-left:-9px!important;margin-top:-9px!important}.marker-menu-inner-wrapper{display:flex;flex-direction:column}.marker-menu-header{font-weight:600}.marker-menu-content{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;max-width:132px}.marker-menu-button{padding:4px;border:1px solid #aaaaaa}.marker-menu-separator{padding:4px}.info-marker,.alter-marker{background-color:#00f;width:100%;display:flex;flex-direction:row-reverse}.info-marker a.leaflet-popup-close-button,.alter-marker a.leaflet-popup-close-button{top:-12px;right:-12.5px;z-index:3;color:#fff}.info-marker a.leaflet-popup-close-button:hover,.alter-marker a.leaflet-popup-close-button:hover{color:#fff}.info-marker .leaflet-popup-content-wrapper,.alter-marker .leaflet-popup-content-wrapper{background:#e93434;color:#fff}.info-marker .leaflet-popup-content-wrapper .leaflet-popup-content,.alter-marker .leaflet-popup-content-wrapper .leaflet-popup-content{margin:0;line-height:1.4}.info-marker .leaflet-popup-content-wrapper,.alter-marker .leaflet-popup-content-wrapper{padding:0}.alter-marker-outer-wrapper,.info-marker-outer-wrapper{overflow:hidden;background-color:#80be50;border-radius:12px;box-shadow:3px 4px 20px #00000080}.alter-marker-wrapper,.info-marker-wrapper{min-height:40px;border:2px solid transparent;background-color:#80be50;color:#fff;padding:0 6px;border-radius:12px;text-align:center}.content{width:auto;min-height:40px;margin-right:12px;display:flex;align-items:center}.marker-menu-content .marker-menu-button{width:22px;height:22px;background-repeat:no-repeat;background-size:22px,22px;background-position:center;padding:4px;border:1px solid #fff;margin:4px;border-radius:4px;cursor:pointer}.marker-menu-content .marker-menu-button.simplify{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%3e%3c!--%20Cirklar%20--%3e%3ccircle%20cx='64'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='64'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='64'%20cy='256'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='448'%20cy='256'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3c!--%20Linjer%20--%3e%3cpath%20d='M64%2064%20L448%20256%20H64'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3cpath%20d='M448%20256%20L64%20448'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.double-elbows{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%3e%3cpath%20d='M100%20412%20L412%20100'%20style='fill:none;stroke:%23ffffff;stroke-opacity:1;stroke-width:35;stroke-dasharray:none'/%3e%3ccircle%20cx='100'%20cy='412'%20r='40'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3ccircle%20cx='416.5'%20cy='91.5'%20r='40'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3ccircle%20cx='253.799'%20cy='254.421'%20r='70'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.bbox{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%3e%3c!--%20Cirklar%20i%20hörnen%20--%3e%3ccircle%20cx='64'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='64'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='448'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='448'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3c!--%20Fyrkantig%20ram%20--%3e%3cpath%20d='M64%2064%20H448%20M448%2064%20V448%20H64%20V64'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.bezier{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xml:space='preserve'%20style='enable-background:new%200%200%2040%2040;'%20viewBox='0%200%2040%2040'%20y='0px'%20x='0px'%20id='Layer_1'%20version='1.1'%20sodipodi:docname='icon-bezier.svg'%20inkscape:version='0.92.3%20(2405546,%202018-03-11)'%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1440'%20inkscape:window-height='837'%20id='namedview11'%20showgrid='false'%20showguides='true'%20inkscape:guide-bbox='true'%20inkscape:zoom='11.8'%20inkscape:cx='19.585579'%20inkscape:cy='18.314137'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='Layer_1'%3e%3csodipodi:guide%20position='5,39.40678'%20orientation='1,0'%20id='guide4521'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='35,35.169492'%20orientation='1,0'%20id='guide4523'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='18.389831,35'%20orientation='0,1'%20id='guide4525'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='20.423729,5'%20orientation='0,1'%20id='guide4527'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='20,25.762712'%20orientation='1,0'%20id='guide4533'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='27.372881,20'%20orientation='0,1'%20id='guide4535'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3c/sodipodi:namedview%3e%3cmetadata%20id='metadata9'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs7'%3e%3cmarker%20inkscape:stockid='Tail'%20orient='auto'%20refY='0.0'%20refX='0.0'%20id='Tail'%20style='overflow:visible'%20inkscape:isstock='true'%3e%3cg%20id='g4585'%20transform='scale(-1.2)'%20style='stroke:%23000000;stroke-opacity:1;fill:%23ffffff;fill-opacity:1'%3e%3cpath%20id='path4573'%20d='M%20-3.8048674,-3.9585227%20L%200.54352094,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4575'%20d='M%20-1.2866832,-3.9585227%20L%203.0617053,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4577'%20d='M%201.3053582,-3.9585227%20L%205.6537466,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4579'%20d='M%20-3.8048674,4.1775838%20L%200.54352094,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4581'%20d='M%20-1.2866832,4.1775838%20L%203.0617053,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4583'%20d='M%201.3053582,4.1775838%20L%205.6537466,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3c/g%3e%3c/marker%3e%3c/defs%3e%3cpath%20style='fill:none;stroke:%23ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'%20d='M%205,35%20C%2035,35%2035,5%2035,5%20v%200'%20id='path4894'%20inkscape:connector-curvature='0'%20/%3e%3cpath%20style='fill:none;stroke:%23fffffe;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:2,%202;stroke-dashoffset:0'%20d='m%2035,4.830508%20v%200%20c%200,0%200,0%200,30.169492%20H%205'%20id='path4896'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20r='4'%20cy='35.169491'%20cx='34.830509'%20id='path819-25-9-8'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3ccircle%20r='4'%20cy='5.5932202'%20cx='34.915257'%20id='path819-25-9'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3ccircle%20r='4'%20cy='35'%20cx='5'%20id='path819'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3c/svg%3e");position:relative;overflow:hidden}.marker-menu-content .marker-menu-button.transform-scale{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='none'%3e%3cpath%20stroke='white'%20stroke-linecap='round'%20stroke-width='2'%20d='M3%209V6a3%203%200%200%201%203-3h12a3%203%200%200%201%203%203v12a3%203%200%200%201-3%203h-3'/%3e%3cpath%20fill='white'%20d='M16%208V7h1v1zm-5.793%207.207a1%201%200%200%201-1.414-1.414zM15%2014V8h2v6zm1-5h-6V7h6zm.707-.293l-6.5%206.5l-1.414-1.414l6.5-6.5z'/%3e%3crect%20width='7'%20height='7'%20x='3'%20y='14'%20stroke='white'%20stroke-linecap='round'%20stroke-width='2'%20rx='2'/%3e%3c/g%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.transform-rotate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='none'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.5'%20d='M11.25%205.25h3m0%203.5c0%202.5-2.798%205.5-6.25%205.5a6.25%206.25%200%201%201%200-12.5c3.75%200%206.25%203.5%206.25%203.5v-3.5'/%3e%3c/svg%3e")}.polydraw-transform-cancel,.polydraw-transform-confirm{width:24px;height:24px;border-radius:3px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:center}.alpha-banner{position:absolute;top:6px;right:-18px;background:#fff6;color:#000;padding:1px 20px;font-size:8px;font-weight:700;transform:rotate(45deg);transform-origin:center;z-index:10;box-shadow:0 1px 3px #0000004d;line-height:12px;letter-spacing:.5px}.alter-marker-wrapper .row.bottom-separator{border-bottom:1px dashed #fff}.alter-marker-wrapper .row{display:-webkit-box;display:flex;white-space:nowrap}.alter-marker-wrapper .header{padding-right:4px;width:100%;text-align:left}.alter-marker-wrapper .area,.alter-marker-wrapper .header{font-size:12px;font-weight:600;line-height:20px}.alter-marker-wrapper .unit{font-size:11px;font-weight:400;line-height:20px}.alter-marker-wrapper .unit .sup{font-size:smaller;font-weight:400;line-height:20px;position:relative;top:-2px}.info-marker-wrapper .row.bottom-separator{border-bottom:1px dashed #fff}.info-marker-wrapper .row{display:-webkit-box;display:flex;white-space:nowrap}.info-marker-wrapper .header{padding-right:4px;width:100%;text-align:left}.info-marker-wrapper .area,.info-marker-wrapper .header{font-size:12px;font-weight:600;line-height:20px}.info-marker-wrapper .unit{font-size:11px;font-weight:400;line-height:20px}.info-marker-wrapper .unit .sup{font-size:smaller;font-weight:400;line-height:20px;position:relative;top:-2px}.leaflet-popup-content{margin:0!important;line-height:1.4}.right-margin{margin-right:8px}.polydraw-hidden-marker{opacity:.2;transform:scale(.5);transition:opacity .2s ease,transform .2s ease;background-color:#e0f8c5!important;box-shadow:none!important;border:none!important;z-index:1}.polydraw-hidden-marker:hover{opacity:1!important;transform:scale(1)!important;background-color:#e0f8c5!important;box-shadow:0 0 0 2px #50622b,0 0 10px #00000059!important;border-radius:50%!important;z-index:10000!important}.polydraw-hidden-marker.leaflet-marker-draggable{cursor:move!important}.leaflet-polydraw-p2p-marker{margin-left:-8px;margin-top:-8px}.leaflet-polydraw-p2p-marker.edge-deletion-hover{background-color:#d9460f!important;border-color:#d9460f!important;transform:scale(1.5);transition:all .2s ease}.menu-popup{margin-bottom:-60px}.info-popup{margin-bottom:-18px}.menu-popup .leaflet-popup-tip-container,.info-popup .leaflet-popup-tip-container{display:none}.menu-popup .leaflet-popup-content-wrapper,.info-popup .leaflet-popup-content-wrapper{background:transparent;box-shadow:none}.menu-popup .leaflet-popup-close-button,.info-popup .leaflet-popup-close-button{color:#fff!important}.leaflet-control.leaflet-bar{position:relative;z-index:1000;pointer-events:auto!important}.leaflet-control.leaflet-bar a{pointer-events:auto!important;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@-moz-document url-prefix(){.leaflet-control.leaflet-bar{position:relative!important;z-index:2000!important;pointer-events:auto!important;isolation:isolate}.leaflet-control.leaflet-bar a{pointer-events:auto!important;touch-action:manipulation!important;position:relative;z-index:1}.sub-buttons{pointer-events:auto!important;position:relative;z-index:1}.sub-buttons a{pointer-events:auto!important;touch-action:manipulation!important;position:relative;z-index:1}}@media (max-width: 768px){.leaflet-control.leaflet-bar a{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center}}
|
|
1
|
+
html,body,#blitz-app{height:100%}.polygon-marker{background-color:#e0f8c5;box-shadow:0 0 0 2px #50622b,0 0 10px #00000059;width:12px!important;height:12px!important;margin-left:-6px!important;margin-top:-6px!important;border-radius:50%;cursor:move;outline:none;transition:background-color .25s}.polygon-marker.menu{margin-left:-11px!important;margin-top:-11px!important;background-color:#86a2d6;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2040%2040'%20style='enable-background:new%200%200%2040%2040;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3crect%20y='0'%20class='st0'%20width='40'%20height='40'/%3e%3cpath%20class='st1'%20d='M34.6,19.9L34.6,19.9c-0.1-2.1-0.5-4.1-1.4-5.8l4.3-3.6l-4.2-5.2l-4.5,3.4l0,0c-1.6-1.2-3.4-2.1-5.3-2.5l0,0%20l-0.2-5.6h-6.7l-0.2,5.6c-2,0.5-3.8,1.4-5.4,2.6l0,0L6.6,5.3l-4.2,5.2l4.3,3.6l0,0C5.9,16,5.5,17.9,5.4,20l0,0L0,21.4l1.5,6.5%20L7,26.8l0,0c0.9,1.8,2.2,3.4,3.8,4.7l0,0l-2.3,5.1l6,2.9l2.6-5c1,0.2,1.9,0.3,2.9,0.3c1.1,0,2.1-0.1,3.1-0.3l0,0l2.6,5l6-2.9%20l-2.3-5.1l0,0c1.5-1.3,2.8-2.9,3.7-4.7l0,0l5.5,1.1l1.4-6.5L34.6,19.9z%20M11.9,20.2c0-4.4,3.6-8.1,8.1-8.1c4.4,0,8.1,3.6,8.1,8.1%20s-3.6,8.1-8.1,8.1C15.5,28.3,11.9,24.7,11.9,20.2z'/%3e%3c/svg%3e");-ms-background-size:20px 20px;background-size:20px 20px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker.info{margin-left:-11px!important;margin-top:-11px!important;background-color:#86a2d6;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20200%20200'%20style='enable-background:new%200%200%20200%20200;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%23FFFFFF;}%20.st2{opacity:0.3;fill:%23FFFFFF;}%20%3c/style%3e%3crect%20class='st0'%20width='200'%20height='200'/%3e%3cg%3e%3cpath%20class='st1'%20d='M100,1.4C45.5,1.4,1.4,45.5,1.4,100c0,54.5,44.2,98.6,98.6,98.6s98.6-44.2,98.6-98.6%20C198.6,45.5,154.5,1.4,100,1.4z%20M100,174.4c-41.1,0-74.4-33.3-74.4-74.4c0-41.1,33.3-74.4,74.4-74.4c41.1,0,74.4,33.3,74.4,74.4%20C174.4,141.1,141.1,174.4,100,174.4z'/%3e%3cpath%20class='st1'%20d='M94.1,66.4c1,1,2.1,1.9,3.4,2.5c1.3,0.6,2.8,0.9,4.4,0.9c1.5,0,3-0.3,4.3-0.9c1.3-0.6,2.4-1.4,3.3-2.5%20c0.9-1,1.6-2.2,2.1-3.6s0.7-2.8,0.7-4.4c0-1.6-0.3-3.1-0.8-4.5c-0.5-1.4-1.3-2.6-2.2-3.7c-1-1-2.1-1.9-3.4-2.5%20c-1.3-0.6-2.7-0.9-4.2-0.9c-1.5,0-2.8,0.3-4.1,0.9s-2.4,1.4-3.4,2.5c-1,1-1.7,2.3-2.3,3.7c-0.6,1.4-0.9,2.9-0.9,4.5%20c0,1.6,0.3,3.1,0.8,4.4S93.2,65.3,94.1,66.4z'/%3e%3cpath%20class='st1'%20d='M109.9,139.7c0.1-1.2,0.1-2.3,0.2-3.4c0-1.1,0.1-2.1,0.1-3.1c0-1,0-1.8,0-2.5V82.1h-7.6%20c-0.5,0.5-1.3,0.9-2.3,1.4c-1.1,0.5-2.5,0.9-4.2,1.4c-1.7,0.4-3.9,0.8-6.3,1c-2.5,0.3-5.3,0.4-8.5,0.4v10.5l9.8-0.4%20c-0.2,2.1-0.4,4.2-0.4,6.4c-0.1,2.2-0.1,4.1-0.1,5.8v23.2c0,1.9-0.1,3.6-0.2,5.1c-0.1,1.5-0.5,2.8-1,3.9c-0.5,1.1-1.4,1.9-2.5,2.5%20c-1.1,0.6-2.6,0.9-4.6,0.9v9.1h36.6v-10.6l-9.1,0.4C109.8,141.9,109.9,140.8,109.9,139.7z'/%3e%3ccircle%20class='st2'%20cx='100'%20cy='103'%20r='86.2'/%3e%3c/g%3e%3c/svg%3e");-ms-background-size:24px 24px;background-size:24px 24px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker:hover{width:18px!important;height:18px!important;margin-left:-9px!important;margin-top:-9px!important}.polygon-marker.menu:hover{background-color:red;width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.info:hover{background-color:#86a2d6;width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.delete{margin-left:-11px!important;margin-top:-11px!important;background-color:#645d5d;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2048%2048'%20style='enable-background:new%200%200%2048%2048;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23ffffff}%20.st1{fill:%23333333;fill-opacity:0;}%20%3c/style%3e%3ctitle%3etrash%3c/title%3e%3crect%20class='st1'%20width='48'%20height='48'/%3e%3cpolygon%20class='st0'%20points='26.6,10%2026.6,7.8%2021.4,7.8%2021.4,10%2012.6,10%2012.6,12.8%2035.4,12.8%2035.4,10%20'/%3e%3cpath%20class='st0'%20d='M35.4,15.4H12.6v4.3h1.8V37c0,1.1,0.9,2,2,2h15.2c1.1,0,2-0.9,2-2V19.7h1.8V15.4z%20M19.7,34.2c0,0.5-0.4,1-1,1%20c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1c0.5,0,1,0.4,1,1V34.2z%20M25.3,33.8c0,0.7-0.6,1.3-1.3,1.3c-0.7,0-1.3-0.6-1.3-1.3V23%20c0-0.7,0.6-1.3,1.3-1.3c0.7,0,1.3,0.6,1.3,1.3V33.8z%20M30.3,34.2c0,0.5-0.4,1-1,1c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1%20c0.5,0,1,0.4,1,1V34.2z'/%3e%3c/svg%3e");-ms-background-size:24px 24px;background-size:24px 24px;background-repeat:no-repeat;background-position:center;width:24px!important;height:24px!important;z-index:10000;cursor:pointer}.polygon-marker.delete:hover{background-color:#5c5151;background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2021.0.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2048%2048'%20style='enable-background:new%200%200%2048%2048;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23ffffff}%20.st1{fill:%23333333;fill-opacity:0;}%20%3c/style%3e%3ctitle%3etrash%3c/title%3e%3crect%20class='st1'%20width='48'%20height='48'/%3e%3cpolygon%20class='st0'%20points='27.4,9.3%2027.8,7.1%2022.7,6%2022.2,8.2%2013.6,6.4%2013.1,9.1%2035.4,13.8%2036,11.1%20'/%3e%3cpath%20class='st0'%20d='M35.4,15.4H12.6v4.3h1.8V37c0,1.1,0.9,2,2,2h15.2c1.1,0,2-0.9,2-2V19.7h1.8V15.4z%20M19.7,34.2c0,0.5-0.4,1-1,1%20c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1c0.5,0,1,0.4,1,1V34.2z%20M25.3,33.8c0,0.7-0.6,1.3-1.3,1.3c-0.7,0-1.3-0.6-1.3-1.3V23%20c0-0.7,0.6-1.3,1.3-1.3c0.7,0,1.3,0.6,1.3,1.3V33.8z%20M30.3,34.2c0,0.5-0.4,1-1,1c-0.5,0-1-0.4-1-1V22.6c0-0.5,0.4-1,1-1%20c0.5,0,1,0.4,1,1V34.2z'/%3e%3c/svg%3e");width:24px!important;height:24px!important;z-index:10000;margin-left:-11px!important;margin-top:-11px!important}.polygon-marker.hole{background-color:#fcc;box-shadow:0 0 0 2px #a00,0 0 10px #00000059;width:12px!important;height:12px!important;margin-left:-6px!important;margin-top:-6px!important;border-radius:50%;cursor:move;outline:none;transition:background-color .25s}.polygon-marker.hole:hover{background-color:#d4a5b8;width:18px!important;height:18px!important;margin-left:-9px!important;margin-top:-9px!important}.marker-menu-inner-wrapper{display:flex;flex-direction:column}.marker-menu-header{font-weight:600}.marker-menu-content{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;max-width:132px}.marker-menu-content .marker-menu-button{width:22px;height:22px;background-repeat:no-repeat;background-size:22px,22px;background-position:center;padding:4px;border:1px solid #fff;margin:4px;border-radius:4px;cursor:pointer}.marker-menu-content .marker-menu-button.simplify{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%3e%3c!--%20Cirklar%20--%3e%3ccircle%20cx='64'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='64'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='64'%20cy='256'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3ccircle%20cx='448'%20cy='256'%20r='50'%20style='fill:%23ffffff;stroke:none;fill-opacity:1'/%3e%3c!--%20Linjer%20--%3e%3cpath%20d='M64%2064%20L448%20256%20H64'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3cpath%20d='M448%20256%20L64%20448'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.double-elbows{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%3e%3cpath%20d='M100%20412%20L412%20100'%20style='fill:none;stroke:%23ffffff;stroke-opacity:1;stroke-width:35;stroke-dasharray:none'/%3e%3ccircle%20cx='100'%20cy='412'%20r='40'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3ccircle%20cx='416.5'%20cy='91.5'%20r='40'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3ccircle%20cx='253.799'%20cy='254.421'%20r='70'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-width:25;stroke-opacity:1'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.bbox{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%3e%3c!--%20Cirklar%20i%20hörnen%20--%3e%3ccircle%20cx='64'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='64'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='448'%20cy='448'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3ccircle%20cx='448'%20cy='64'%20r='50'%20style='fill:%23ffffff;stroke:%23ffffff;stroke-opacity:1'/%3e%3c!--%20Fyrkantig%20ram%20--%3e%3cpath%20d='M64%2064%20H448%20M448%2064%20V448%20H64%20V64'%20style='fill:none;stroke:%23ffffff;stroke-width:35;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'/%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.bezier{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xml:space='preserve'%20style='enable-background:new%200%200%2040%2040;'%20viewBox='0%200%2040%2040'%20y='0px'%20x='0px'%20id='Layer_1'%20version='1.1'%20sodipodi:docname='icon-bezier.svg'%20inkscape:version='0.92.3%20(2405546,%202018-03-11)'%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1440'%20inkscape:window-height='837'%20id='namedview11'%20showgrid='false'%20showguides='true'%20inkscape:guide-bbox='true'%20inkscape:zoom='11.8'%20inkscape:cx='19.585579'%20inkscape:cy='18.314137'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='Layer_1'%3e%3csodipodi:guide%20position='5,39.40678'%20orientation='1,0'%20id='guide4521'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='35,35.169492'%20orientation='1,0'%20id='guide4523'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='18.389831,35'%20orientation='0,1'%20id='guide4525'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='20.423729,5'%20orientation='0,1'%20id='guide4527'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='20,25.762712'%20orientation='1,0'%20id='guide4533'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3csodipodi:guide%20position='27.372881,20'%20orientation='0,1'%20id='guide4535'%20inkscape:locked='false'%20inkscape:label=''%20inkscape:color='rgb(0,0,255)'%20/%3e%3c/sodipodi:namedview%3e%3cmetadata%20id='metadata9'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%3e%3c/dc:title%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs7'%3e%3cmarker%20inkscape:stockid='Tail'%20orient='auto'%20refY='0.0'%20refX='0.0'%20id='Tail'%20style='overflow:visible'%20inkscape:isstock='true'%3e%3cg%20id='g4585'%20transform='scale(-1.2)'%20style='stroke:%23000000;stroke-opacity:1;fill:%23ffffff;fill-opacity:1'%3e%3cpath%20id='path4573'%20d='M%20-3.8048674,-3.9585227%20L%200.54352094,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4575'%20d='M%20-1.2866832,-3.9585227%20L%203.0617053,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4577'%20d='M%201.3053582,-3.9585227%20L%205.6537466,0'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4579'%20d='M%20-3.8048674,4.1775838%20L%200.54352094,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4581'%20d='M%20-1.2866832,4.1775838%20L%203.0617053,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3cpath%20id='path4583'%20d='M%201.3053582,4.1775838%20L%205.6537466,0.21974226'%20style='fill:%23ffffff;fill-rule:evenodd;stroke:%23000000;stroke-width:0.8;stroke-linecap:round;stroke-opacity:1;fill-opacity:1'%20/%3e%3c/g%3e%3c/marker%3e%3c/defs%3e%3cpath%20style='fill:none;stroke:%23ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none'%20d='M%205,35%20C%2035,35%2035,5%2035,5%20v%200'%20id='path4894'%20inkscape:connector-curvature='0'%20/%3e%3cpath%20style='fill:none;stroke:%23fffffe;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:2,%202;stroke-dashoffset:0'%20d='m%2035,4.830508%20v%200%20c%200,0%200,0%200,30.169492%20H%205'%20id='path4896'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20r='4'%20cy='35.169491'%20cx='34.830509'%20id='path819-25-9-8'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3ccircle%20r='4'%20cy='5.5932202'%20cx='34.915257'%20id='path819-25-9'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3ccircle%20r='4'%20cy='35'%20cx='5'%20id='path819'%20style='fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-opacity:1'%20/%3e%3c/svg%3e");position:relative;overflow:hidden}.marker-menu-content .marker-menu-button.transform-scale{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='none'%3e%3cpath%20stroke='white'%20stroke-linecap='round'%20stroke-width='2'%20d='M3%209V6a3%203%200%200%201%203-3h12a3%203%200%200%201%203%203v12a3%203%200%200%201-3%203h-3'/%3e%3cpath%20fill='white'%20d='M16%208V7h1v1zm-5.793%207.207a1%201%200%200%201-1.414-1.414zM15%2014V8h2v6zm1-5h-6V7h6zm.707-.293l-6.5%206.5l-1.414-1.414l6.5-6.5z'/%3e%3crect%20width='7'%20height='7'%20x='3'%20y='14'%20stroke='white'%20stroke-linecap='round'%20stroke-width='2'%20rx='2'/%3e%3c/g%3e%3c/svg%3e")}.marker-menu-content .marker-menu-button.transform-rotate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='none'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.5'%20d='M11.25%205.25h3m0%203.5c0%202.5-2.798%205.5-6.25%205.5a6.25%206.25%200%201%201%200-12.5c3.75%200%206.25%203.5%206.25%203.5v-3.5'/%3e%3c/svg%3e")}.marker-menu-button{padding:4px;border:1px solid #aaaaaa}.marker-menu-separator{padding:4px}.info-marker,.alter-marker{background-color:#00f;width:100%;display:flex;flex-direction:row-reverse}.info-marker a.leaflet-popup-close-button,.alter-marker a.leaflet-popup-close-button{top:-12px;right:-12.5px;z-index:3;color:#fff}.info-marker a.leaflet-popup-close-button:hover,.alter-marker a.leaflet-popup-close-button:hover{color:#fff}.info-marker .leaflet-popup-content-wrapper,.alter-marker .leaflet-popup-content-wrapper{background:#e93434;color:#fff}.info-marker .leaflet-popup-content-wrapper .leaflet-popup-content,.alter-marker .leaflet-popup-content-wrapper .leaflet-popup-content{margin:0;line-height:1.4}.info-marker .leaflet-popup-content-wrapper,.alter-marker .leaflet-popup-content-wrapper{padding:0}.alter-marker-outer-wrapper,.info-marker-outer-wrapper{overflow:hidden;background-color:#80be50;border-radius:12px;box-shadow:3px 4px 20px #00000080}.alter-marker-wrapper,.info-marker-wrapper{min-height:40px;border:2px solid transparent;background-color:#80be50;color:#fff;padding:0 6px;border-radius:12px;text-align:center;position:relative}.content{width:auto;min-height:40px;margin-right:12px;display:flex;align-items:center}.marker-menu-close{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;border:none;background:transparent;color:#fff;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto;z-index:5}.marker-menu-close:focus{outline:2px solid #fff8;outline-offset:2px}.polydraw-transform-cancel,.polydraw-transform-confirm{width:24px;height:24px;border-radius:3px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:center}.alpha-banner{position:absolute;top:6px;right:-18px;background:#fff6;color:#000;padding:1px 20px;font-size:8px;font-weight:700;transform:rotate(45deg);transform-origin:center;z-index:10;box-shadow:0 1px 3px #0000004d;line-height:12px;letter-spacing:.5px}.alter-marker-wrapper .row.bottom-separator{border-bottom:1px dashed #fff}.alter-marker-wrapper .row{display:-webkit-box;display:flex;white-space:nowrap}.alter-marker-wrapper .header{padding-right:4px;width:100%;text-align:left}.alter-marker-wrapper .area,.alter-marker-wrapper .header{font-size:12px;font-weight:600;line-height:20px}.alter-marker-wrapper .unit{font-size:11px;font-weight:400;line-height:20px}.alter-marker-wrapper .unit .sup{font-size:smaller;font-weight:400;line-height:20px;position:relative;top:-2px}.info-marker-wrapper .row.bottom-separator{border-bottom:1px dashed #fff}.info-marker-wrapper .row{display:-webkit-box;display:flex;white-space:nowrap}.info-marker-wrapper .header{padding-right:4px;width:100%;text-align:left}.info-marker-wrapper .area,.info-marker-wrapper .header{font-size:12px;font-weight:600;line-height:20px}.info-marker-wrapper .unit{font-size:11px;font-weight:400;line-height:20px}.info-marker-wrapper .unit .sup{font-size:smaller;font-weight:400;line-height:20px;position:relative;top:-2px}.leaflet-popup-content{margin:0!important;line-height:1.4}.right-margin{margin-right:8px}.polydraw-hidden-marker{opacity:.2;transform:scale(.5);transition:opacity .2s ease,transform .2s ease;background-color:#e0f8c5!important;box-shadow:none!important;border:none!important;z-index:1}.polydraw-hidden-marker:hover{opacity:1!important;transform:scale(1)!important;background-color:#e0f8c5!important;box-shadow:0 0 0 2px #50622b,0 0 10px #00000059!important;border-radius:50%!important;z-index:10000!important}.polydraw-hidden-marker.leaflet-marker-draggable{cursor:move!important}.leaflet-polydraw-p2p-marker{margin-left:-8px;margin-top:-8px}.leaflet-polydraw-p2p-marker.edge-deletion-hover{background-color:#d9460f!important;border-color:#d9460f!important;transform:scale(1.5);transition:all .2s ease}.menu-popup{margin-bottom:-60px}.info-popup{margin-bottom:-18px}.menu-popup .leaflet-popup-tip-container,.info-popup .leaflet-popup-tip-container{display:none}.menu-popup .leaflet-popup-content-wrapper,.info-popup .leaflet-popup-content-wrapper{background:transparent;box-shadow:none}.menu-popup .leaflet-popup-close-button,.info-popup .leaflet-popup-close-button{color:#fff!important}.leaflet-control.leaflet-bar{position:relative;z-index:1000;pointer-events:auto!important}.leaflet-control.leaflet-bar a{pointer-events:auto!important;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@-moz-document url-prefix(){.leaflet-control.leaflet-bar{position:relative!important;z-index:2000!important;pointer-events:auto!important;isolation:isolate}.leaflet-control.leaflet-bar a{pointer-events:auto!important;touch-action:manipulation!important;position:relative;z-index:1}.sub-buttons{pointer-events:auto!important;position:relative;z-index:1}.sub-buttons a{pointer-events:auto!important;touch-action:manipulation!important;position:relative;z-index:1}}@media (max-width: 768px){.leaflet-control.leaflet-bar a{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center}}
|
package/dist/polydraw.es.js
CHANGED
|
@@ -19430,6 +19430,10 @@ class TransformOverlay {
|
|
|
19430
19430
|
__publicField(this, "pane");
|
|
19431
19431
|
__publicField(this, "root");
|
|
19432
19432
|
__publicField(this, "draggingHandle", null);
|
|
19433
|
+
__publicField(this, "documentMoveHandler", null);
|
|
19434
|
+
__publicField(this, "documentUpHandler", null);
|
|
19435
|
+
__publicField(this, "pointerCaptureTarget", null);
|
|
19436
|
+
__publicField(this, "activePointerId", null);
|
|
19433
19437
|
__publicField(this, "callbacks");
|
|
19434
19438
|
__publicField(this, "rafId", null);
|
|
19435
19439
|
__publicField(this, "mode");
|
|
@@ -19439,6 +19443,8 @@ class TransformOverlay {
|
|
|
19439
19443
|
__publicField(this, "confirmBtn", null);
|
|
19440
19444
|
__publicField(this, "currentBBox", null);
|
|
19441
19445
|
__publicField(this, "currentRotation", 0);
|
|
19446
|
+
__publicField(this, "buttonsHidden", false);
|
|
19447
|
+
__publicField(this, "supportsPointerEvents", typeof window !== "undefined" && "PointerEvent" in window);
|
|
19442
19448
|
this.map = map;
|
|
19443
19449
|
this.callbacks = callbacks;
|
|
19444
19450
|
this.mode = mode;
|
|
@@ -19448,13 +19454,14 @@ class TransformOverlay {
|
|
|
19448
19454
|
let pane = this.map.getPane ? this.map.getPane(paneName) : void 0;
|
|
19449
19455
|
if (!pane) pane = this.map.createPane(paneName);
|
|
19450
19456
|
pane.style.zIndex = "650";
|
|
19451
|
-
pane.style.pointerEvents = "
|
|
19457
|
+
pane.style.pointerEvents = "auto";
|
|
19452
19458
|
this.pane = pane;
|
|
19453
19459
|
this.root = document.createElement("div");
|
|
19454
19460
|
this.root.className = "polydraw-transform-root";
|
|
19455
19461
|
this.root.style.position = "absolute";
|
|
19456
19462
|
this.root.style.left = "0px";
|
|
19457
19463
|
this.root.style.top = "0px";
|
|
19464
|
+
this.root.style.pointerEvents = "none";
|
|
19458
19465
|
this.pane.appendChild(this.root);
|
|
19459
19466
|
}
|
|
19460
19467
|
destroy() {
|
|
@@ -19526,8 +19533,27 @@ class TransformOverlay {
|
|
|
19526
19533
|
cursor: this.cursorForHandle(type),
|
|
19527
19534
|
pointerEvents: "auto"
|
|
19528
19535
|
});
|
|
19529
|
-
|
|
19530
|
-
|
|
19536
|
+
if (this.supportsPointerEvents) {
|
|
19537
|
+
L$1.DomEvent.on(
|
|
19538
|
+
h,
|
|
19539
|
+
"pointerdown",
|
|
19540
|
+
(e) => this.startDrag(type, { x: rotX, y: rotY }, e),
|
|
19541
|
+
this
|
|
19542
|
+
);
|
|
19543
|
+
} else {
|
|
19544
|
+
L$1.DomEvent.on(
|
|
19545
|
+
h,
|
|
19546
|
+
"mousedown",
|
|
19547
|
+
(e) => this.startDrag(type, { x: rotX, y: rotY }, e),
|
|
19548
|
+
this
|
|
19549
|
+
);
|
|
19550
|
+
L$1.DomEvent.on(
|
|
19551
|
+
h,
|
|
19552
|
+
"touchstart",
|
|
19553
|
+
(e) => this.startDrag(type, { x: rotX, y: rotY }, e),
|
|
19554
|
+
this
|
|
19555
|
+
);
|
|
19556
|
+
}
|
|
19531
19557
|
this.root.appendChild(h);
|
|
19532
19558
|
};
|
|
19533
19559
|
if (this.mode === "scale") {
|
|
@@ -19577,18 +19603,45 @@ class TransformOverlay {
|
|
|
19577
19603
|
}
|
|
19578
19604
|
startDrag(type, start, evt) {
|
|
19579
19605
|
var _a2, _b2;
|
|
19580
|
-
|
|
19581
|
-
(_b2 = evt.preventDefault) == null ? void 0 : _b2.call(evt);
|
|
19606
|
+
L$1.DomEvent.stop(evt);
|
|
19582
19607
|
this.draggingHandle = type;
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19608
|
+
this.hideButtons();
|
|
19609
|
+
this.documentMoveHandler = (e) => this.onDrag(e);
|
|
19610
|
+
this.documentUpHandler = (e) => this.endDrag(e);
|
|
19611
|
+
if (this.supportsPointerEvents && evt instanceof PointerEvent) {
|
|
19612
|
+
this.activePointerId = evt.pointerId;
|
|
19613
|
+
this.pointerCaptureTarget = evt.target;
|
|
19614
|
+
(_b2 = (_a2 = this.pointerCaptureTarget) == null ? void 0 : _a2.setPointerCapture) == null ? void 0 : _b2.call(_a2, evt.pointerId);
|
|
19615
|
+
L$1.DomEvent.on(
|
|
19616
|
+
document,
|
|
19617
|
+
"pointermove",
|
|
19618
|
+
this.documentMoveHandler
|
|
19619
|
+
);
|
|
19620
|
+
L$1.DomEvent.on(document, "pointerup", this.documentUpHandler);
|
|
19621
|
+
L$1.DomEvent.on(
|
|
19622
|
+
document,
|
|
19623
|
+
"pointercancel",
|
|
19624
|
+
this.documentUpHandler
|
|
19625
|
+
);
|
|
19626
|
+
} else {
|
|
19627
|
+
L$1.DomEvent.on(
|
|
19628
|
+
document,
|
|
19629
|
+
"mousemove",
|
|
19630
|
+
this.documentMoveHandler
|
|
19631
|
+
);
|
|
19632
|
+
L$1.DomEvent.on(document, "mouseup", this.documentUpHandler);
|
|
19633
|
+
L$1.DomEvent.on(
|
|
19634
|
+
document,
|
|
19635
|
+
"touchmove",
|
|
19636
|
+
this.documentMoveHandler
|
|
19637
|
+
);
|
|
19638
|
+
L$1.DomEvent.on(document, "touchend", this.documentUpHandler);
|
|
19639
|
+
L$1.DomEvent.on(
|
|
19640
|
+
document,
|
|
19641
|
+
"touchcancel",
|
|
19642
|
+
this.documentUpHandler
|
|
19643
|
+
);
|
|
19644
|
+
}
|
|
19592
19645
|
this.callbacks.onStartHandleDrag(type, start, evt);
|
|
19593
19646
|
}
|
|
19594
19647
|
onDrag(evt) {
|
|
@@ -19597,21 +19650,101 @@ class TransformOverlay {
|
|
|
19597
19650
|
this.callbacks.onDragHandle(this.draggingHandle, pos, evt);
|
|
19598
19651
|
}
|
|
19599
19652
|
endDrag(evt) {
|
|
19653
|
+
var _a2, _b2;
|
|
19600
19654
|
if (this.draggingHandle == null) return;
|
|
19601
19655
|
const type = this.draggingHandle;
|
|
19602
|
-
const wasRotateDrag = type === TransformHandleType.Rotate && this.mode === "rotate";
|
|
19603
19656
|
this.draggingHandle = null;
|
|
19604
19657
|
const pos = this.getMouseLayerPoint(evt);
|
|
19605
19658
|
this.callbacks.onEndHandleDrag(type, pos, evt);
|
|
19606
|
-
if (
|
|
19659
|
+
if (this.currentBBox) {
|
|
19607
19660
|
this.updateButtonPositions(this.currentBBox, this.currentRotation);
|
|
19608
|
-
this.showButtons();
|
|
19609
19661
|
}
|
|
19610
|
-
|
|
19611
|
-
|
|
19662
|
+
this.showButtons();
|
|
19663
|
+
if (this.documentMoveHandler || this.documentUpHandler) {
|
|
19664
|
+
if (this.supportsPointerEvents && this.pointerCaptureTarget) {
|
|
19665
|
+
if (this.activePointerId != null) {
|
|
19666
|
+
(_b2 = (_a2 = this.pointerCaptureTarget).releasePointerCapture) == null ? void 0 : _b2.call(_a2, this.activePointerId);
|
|
19667
|
+
}
|
|
19668
|
+
if (this.documentMoveHandler) {
|
|
19669
|
+
L$1.DomEvent.off(
|
|
19670
|
+
document,
|
|
19671
|
+
"pointermove",
|
|
19672
|
+
this.documentMoveHandler
|
|
19673
|
+
);
|
|
19674
|
+
}
|
|
19675
|
+
if (this.documentUpHandler) {
|
|
19676
|
+
L$1.DomEvent.off(
|
|
19677
|
+
document,
|
|
19678
|
+
"pointerup",
|
|
19679
|
+
this.documentUpHandler
|
|
19680
|
+
);
|
|
19681
|
+
L$1.DomEvent.off(
|
|
19682
|
+
document,
|
|
19683
|
+
"pointercancel",
|
|
19684
|
+
this.documentUpHandler
|
|
19685
|
+
);
|
|
19686
|
+
}
|
|
19687
|
+
this.pointerCaptureTarget = null;
|
|
19688
|
+
this.activePointerId = null;
|
|
19689
|
+
} else {
|
|
19690
|
+
if (this.documentMoveHandler) {
|
|
19691
|
+
L$1.DomEvent.off(
|
|
19692
|
+
document,
|
|
19693
|
+
"mousemove",
|
|
19694
|
+
this.documentMoveHandler
|
|
19695
|
+
);
|
|
19696
|
+
L$1.DomEvent.off(
|
|
19697
|
+
document,
|
|
19698
|
+
"touchmove",
|
|
19699
|
+
this.documentMoveHandler
|
|
19700
|
+
);
|
|
19701
|
+
}
|
|
19702
|
+
if (this.documentUpHandler) {
|
|
19703
|
+
L$1.DomEvent.off(
|
|
19704
|
+
document,
|
|
19705
|
+
"mouseup",
|
|
19706
|
+
this.documentUpHandler
|
|
19707
|
+
);
|
|
19708
|
+
L$1.DomEvent.off(
|
|
19709
|
+
document,
|
|
19710
|
+
"touchend",
|
|
19711
|
+
this.documentUpHandler
|
|
19712
|
+
);
|
|
19713
|
+
L$1.DomEvent.off(
|
|
19714
|
+
document,
|
|
19715
|
+
"touchcancel",
|
|
19716
|
+
this.documentUpHandler
|
|
19717
|
+
);
|
|
19718
|
+
}
|
|
19719
|
+
}
|
|
19720
|
+
this.documentMoveHandler = null;
|
|
19721
|
+
this.documentUpHandler = null;
|
|
19722
|
+
}
|
|
19612
19723
|
}
|
|
19613
19724
|
getMouseLayerPoint(evt) {
|
|
19614
|
-
const
|
|
19725
|
+
const container = this.map.getContainer();
|
|
19726
|
+
let clientX = null;
|
|
19727
|
+
let clientY = null;
|
|
19728
|
+
if (evt.touches && evt.touches.length > 0) {
|
|
19729
|
+
const touch = evt.touches[0];
|
|
19730
|
+
clientX = touch.clientX;
|
|
19731
|
+
clientY = touch.clientY;
|
|
19732
|
+
} else if (evt.changedTouches && evt.changedTouches.length > 0) {
|
|
19733
|
+
const touch = evt.changedTouches[0];
|
|
19734
|
+
clientX = touch.clientX;
|
|
19735
|
+
clientY = touch.clientY;
|
|
19736
|
+
} else if (evt.clientX != null) {
|
|
19737
|
+
clientX = evt.clientX;
|
|
19738
|
+
clientY = evt.clientY;
|
|
19739
|
+
}
|
|
19740
|
+
if (clientX == null || clientY == null) {
|
|
19741
|
+
clientX = 0;
|
|
19742
|
+
clientY = 0;
|
|
19743
|
+
}
|
|
19744
|
+
const rect = container.getBoundingClientRect();
|
|
19745
|
+
const x = clientX - rect.left;
|
|
19746
|
+
const y = clientY - rect.top;
|
|
19747
|
+
const containerPoint = leafletAdapter.createPoint(x, y);
|
|
19615
19748
|
const layerPoint = this.map.containerPointToLayerPoint(containerPoint);
|
|
19616
19749
|
return { x: layerPoint.x, y: layerPoint.y };
|
|
19617
19750
|
}
|
|
@@ -19694,24 +19827,48 @@ class TransformOverlay {
|
|
|
19694
19827
|
Object.assign(this.cancelBtn.style, {
|
|
19695
19828
|
position: "absolute",
|
|
19696
19829
|
left: `${cancelX}px`,
|
|
19697
|
-
top: `${buttonY}px
|
|
19830
|
+
top: `${buttonY}px`,
|
|
19831
|
+
display: "grid",
|
|
19832
|
+
placeItems: "center",
|
|
19833
|
+
pointerEvents: "auto",
|
|
19834
|
+
width: "28px",
|
|
19835
|
+
height: "28px"
|
|
19698
19836
|
});
|
|
19837
|
+
const svg = this.cancelBtn.querySelector("svg");
|
|
19838
|
+
if (svg) {
|
|
19839
|
+
svg.setAttribute("width", "24");
|
|
19840
|
+
svg.setAttribute("height", "24");
|
|
19841
|
+
}
|
|
19842
|
+
this.cancelBtn.style.display = this.buttonsHidden ? "none" : "grid";
|
|
19699
19843
|
}
|
|
19700
19844
|
if (this.confirmBtn) {
|
|
19701
19845
|
Object.assign(this.confirmBtn.style, {
|
|
19702
19846
|
position: "absolute",
|
|
19703
19847
|
left: `${confirmX}px`,
|
|
19704
|
-
top: `${buttonY}px
|
|
19848
|
+
top: `${buttonY}px`,
|
|
19849
|
+
display: "grid",
|
|
19850
|
+
placeItems: "center",
|
|
19851
|
+
pointerEvents: "auto",
|
|
19852
|
+
width: "28px",
|
|
19853
|
+
height: "28px"
|
|
19705
19854
|
});
|
|
19855
|
+
const svg = this.confirmBtn.querySelector("svg");
|
|
19856
|
+
if (svg) {
|
|
19857
|
+
svg.setAttribute("width", "24");
|
|
19858
|
+
svg.setAttribute("height", "24");
|
|
19859
|
+
}
|
|
19860
|
+
this.confirmBtn.style.display = this.buttonsHidden ? "none" : "grid";
|
|
19706
19861
|
}
|
|
19707
19862
|
}
|
|
19708
19863
|
hideButtons() {
|
|
19864
|
+
this.buttonsHidden = true;
|
|
19709
19865
|
if (this.cancelBtn) this.cancelBtn.style.display = "none";
|
|
19710
19866
|
if (this.confirmBtn) this.confirmBtn.style.display = "none";
|
|
19711
19867
|
}
|
|
19712
19868
|
showButtons() {
|
|
19713
|
-
|
|
19714
|
-
if (this.
|
|
19869
|
+
this.buttonsHidden = false;
|
|
19870
|
+
if (this.cancelBtn) this.cancelBtn.style.display = "grid";
|
|
19871
|
+
if (this.confirmBtn) this.confirmBtn.style.display = "grid";
|
|
19715
19872
|
}
|
|
19716
19873
|
}
|
|
19717
19874
|
function latLngToPixel(map, ll) {
|
|
@@ -20060,6 +20217,12 @@ class PopupFactory {
|
|
|
20060
20217
|
outerWrapper.classList.add("alter-marker-outer-wrapper");
|
|
20061
20218
|
const wrapper = document.createElement("div");
|
|
20062
20219
|
wrapper.classList.add("alter-marker-wrapper");
|
|
20220
|
+
const closeButton = document.createElement("button");
|
|
20221
|
+
closeButton.type = "button";
|
|
20222
|
+
closeButton.className = "marker-menu-close";
|
|
20223
|
+
closeButton.setAttribute("aria-label", "Close menu");
|
|
20224
|
+
closeButton.innerHTML = "×";
|
|
20225
|
+
wrapper.appendChild(closeButton);
|
|
20063
20226
|
const markerContent = document.createElement("div");
|
|
20064
20227
|
markerContent.classList.add("content");
|
|
20065
20228
|
const markerContentWrapper = document.createElement("div");
|
|
@@ -20109,6 +20272,7 @@ class PolygonInteractionManager {
|
|
|
20109
20272
|
__publicField(this, "_openMenuPopup", null);
|
|
20110
20273
|
__publicField(this, "transformModeActive", false);
|
|
20111
20274
|
__publicField(this, "transformControllers", /* @__PURE__ */ new WeakMap());
|
|
20275
|
+
__publicField(this, "deleteMarkerSuppressUntil", 0);
|
|
20112
20276
|
// Read-only access to feature groups
|
|
20113
20277
|
__publicField(this, "getFeatureGroups");
|
|
20114
20278
|
__publicField(this, "removeFeatureGroup");
|
|
@@ -20199,6 +20363,18 @@ class PolygonInteractionManager {
|
|
|
20199
20363
|
emitPolygonUpdated(data) {
|
|
20200
20364
|
this.eventManager.emit("polydraw:polygon:updated", data);
|
|
20201
20365
|
}
|
|
20366
|
+
getTimestamp() {
|
|
20367
|
+
if (typeof performance !== "undefined" && typeof performance.now === "function") {
|
|
20368
|
+
return performance.now();
|
|
20369
|
+
}
|
|
20370
|
+
return Date.now();
|
|
20371
|
+
}
|
|
20372
|
+
shouldSuppressDeleteMarkerClick() {
|
|
20373
|
+
return this.getTimestamp() < this.deleteMarkerSuppressUntil;
|
|
20374
|
+
}
|
|
20375
|
+
suppressDeleteMarkerClicks(durationMs) {
|
|
20376
|
+
this.deleteMarkerSuppressUntil = this.getTimestamp() + Math.max(0, durationMs);
|
|
20377
|
+
}
|
|
20202
20378
|
/**
|
|
20203
20379
|
* Add markers to a polygon feature group
|
|
20204
20380
|
*/
|
|
@@ -20394,6 +20570,7 @@ class PolygonInteractionManager {
|
|
|
20394
20570
|
this._activeMarker = marker;
|
|
20395
20571
|
});
|
|
20396
20572
|
marker.on("click", (e) => {
|
|
20573
|
+
var _a2, _b2;
|
|
20397
20574
|
if (this.modeManager.isInOffMode()) {
|
|
20398
20575
|
if (this.isEdgeDeletionModifierKeyPressed(e.originalEvent)) {
|
|
20399
20576
|
const polygonLayer = featureGroup.getLayers().find((layer) => layer instanceof L$1.Polygon);
|
|
@@ -20402,6 +20579,12 @@ class PolygonInteractionManager {
|
|
|
20402
20579
|
}
|
|
20403
20580
|
} else {
|
|
20404
20581
|
if (i === deleteMarkerIdx && this.config.markers.deleteMarker) {
|
|
20582
|
+
if (this.shouldSuppressDeleteMarkerClick()) {
|
|
20583
|
+
const original = e.originalEvent;
|
|
20584
|
+
(_a2 = original == null ? void 0 : original.preventDefault) == null ? void 0 : _a2.call(original);
|
|
20585
|
+
(_b2 = original == null ? void 0 : original.stopPropagation) == null ? void 0 : _b2.call(original);
|
|
20586
|
+
return;
|
|
20587
|
+
}
|
|
20405
20588
|
this.map.closePopup();
|
|
20406
20589
|
this.removeFeatureGroup(featureGroup);
|
|
20407
20590
|
this.polygonInformation.createPolygonInformationStorage(this.getFeatureGroups());
|
|
@@ -21649,6 +21832,21 @@ class PolygonInteractionManager {
|
|
|
21649
21832
|
buttons.push(PopupFactory.createMenuButton("rotate", "Rotate", ["transform-rotate"]));
|
|
21650
21833
|
}
|
|
21651
21834
|
const outerWrapper = PopupFactory.buildMenuPopup(buttons);
|
|
21835
|
+
const closeBtn = outerWrapper.querySelector(".marker-menu-close");
|
|
21836
|
+
if (closeBtn) {
|
|
21837
|
+
const handleClose = (event) => {
|
|
21838
|
+
event.stopPropagation();
|
|
21839
|
+
event.preventDefault();
|
|
21840
|
+
if (this._openMenuPopup) {
|
|
21841
|
+
this.map.closePopup(this._openMenuPopup);
|
|
21842
|
+
this._openMenuPopup = null;
|
|
21843
|
+
} else {
|
|
21844
|
+
this.map.closePopup();
|
|
21845
|
+
}
|
|
21846
|
+
};
|
|
21847
|
+
closeBtn.addEventListener("click", handleClose);
|
|
21848
|
+
closeBtn.addEventListener("touchend", handleClose, { passive: false });
|
|
21849
|
+
}
|
|
21652
21850
|
const closePopupIfOpen = () => {
|
|
21653
21851
|
if (this._openMenuPopup) {
|
|
21654
21852
|
this.map.closePopup(this._openMenuPopup);
|
|
@@ -21750,7 +21948,7 @@ class PolygonInteractionManager {
|
|
|
21750
21948
|
});
|
|
21751
21949
|
const isMobile = window.innerWidth <= 600;
|
|
21752
21950
|
const popup = leafletAdapter.createPopup({
|
|
21753
|
-
closeButton:
|
|
21951
|
+
closeButton: false,
|
|
21754
21952
|
autoClose: true,
|
|
21755
21953
|
className: `menu-popup${isMobile ? " mobile-popup" : ""}`
|
|
21756
21954
|
}).setContent(outerWrapper);
|
|
@@ -22117,6 +22315,7 @@ class PolygonMutationManager {
|
|
|
22117
22315
|
}
|
|
22118
22316
|
polygon2._polydrawOptimizationLevel = visualOptimizationLevel;
|
|
22119
22317
|
featureGroup.addLayer(polygon2);
|
|
22318
|
+
this.interactionManager.suppressDeleteMarkerClicks(250);
|
|
22120
22319
|
} catch (error) {
|
|
22121
22320
|
return { success: false, error: "Failed to create polygon layer" };
|
|
22122
22321
|
}
|
|
@@ -23194,6 +23393,7 @@ class Polydraw extends L$1.Control {
|
|
|
23194
23393
|
__publicField(this, "_boundPointerUp");
|
|
23195
23394
|
__publicField(this, "_lastTapTime", 0);
|
|
23196
23395
|
__publicField(this, "_tapTimeout", null);
|
|
23396
|
+
__publicField(this, "supportsPointerEvents", typeof window !== "undefined" && "PointerEvent" in window);
|
|
23197
23397
|
/**
|
|
23198
23398
|
* Updates map interactions based on the current drawing mode.
|
|
23199
23399
|
*/
|
|
@@ -23859,10 +24059,12 @@ class Polydraw extends L$1.Control {
|
|
|
23859
24059
|
this._lastTapTime = 0;
|
|
23860
24060
|
} else {
|
|
23861
24061
|
this._lastTapTime = currentTime;
|
|
23862
|
-
this.
|
|
23863
|
-
this.
|
|
23864
|
-
|
|
23865
|
-
|
|
24062
|
+
if (!this.supportsPointerEvents) {
|
|
24063
|
+
this._tapTimeout = window.setTimeout(() => {
|
|
24064
|
+
this.mouseDown(event);
|
|
24065
|
+
this._tapTimeout = null;
|
|
24066
|
+
}, 300);
|
|
24067
|
+
}
|
|
23866
24068
|
}
|
|
23867
24069
|
}
|
|
23868
24070
|
/**
|
|
@@ -24094,6 +24296,7 @@ class Polydraw extends L$1.Control {
|
|
|
24094
24296
|
if (this.modeManager.getCurrentMode() !== DrawMode.PointToPoint && this.modeManager.getCurrentMode() !== DrawMode.PointToPointSubtract) {
|
|
24095
24297
|
return;
|
|
24096
24298
|
}
|
|
24299
|
+
L$1.DomEvent.stop(e);
|
|
24097
24300
|
this.polygonDrawManager.handleDoubleClick(e);
|
|
24098
24301
|
}
|
|
24099
24302
|
/**
|