UNPKG

@zvonimirsun/leaflet-geoman

Version:

A Leaflet Plugin For Editing Geometry Layers in Leaflet 1.0

8 lines (7 loc) 10.5 kB
{ "version": 3, "sources": ["../src/css/layers.css", "../src/css/controls.css"], "sourcesContent": [".marker-icon {\n background-color: #ffffff;\n border: 1px solid #3388ff;\n border-radius: 50%;\n margin: -8px 0 0 -8px !important;\n width: 14px !important;\n height: 14px !important;\n outline: 0;\n transition: opacity ease 0.3s;\n}\n\n.marker-icon-middle {\n opacity: 0.7;\n margin: -6px 0 0 -6px !important;\n width: 10px !important;\n height: 10px !important;\n}\n\n.leaflet-pm-draggable {\n cursor: move !important;\n}\n\n.cursor-marker {\n cursor: crosshair;\n pointer-events: none;\n opacity: 0;\n}\n\n.cursor-marker.visible {\n opacity: 1 !important;\n}\n\n.geoman-draw-cursor {\n cursor: crosshair;\n}\n.geoman-draw-cursor .leaflet-interactive {\n cursor: crosshair;\n}\n\n.rect-style-marker,\n.rect-start-marker {\n opacity: 0;\n}\n\n.rect-style-marker.visible,\n.rect-start-marker.visible {\n opacity: 1 !important;\n}\n\n.vertexmarker-disabled {\n opacity: 0.7;\n}\n\n.pm-text-marker {\n width: 0;\n height: 0;\n}\n\n.pm-textarea {\n box-sizing: content-box;\n background-color: #fff;\n color: #000;\n resize: none;\n border: none;\n outline: 0;\n cursor: pointer;\n border-radius: 3px;\n padding-left: 7px;\n padding-bottom: 0;\n padding-top: 4px;\n}\n\n.leaflet-pm-draggable .pm-textarea {\n cursor: move;\n}\n\n.pm-textarea:focus,\n.pm-textarea:focus-within,\n.pm-textarea:focus-visible,\n.pm-textarea:active {\n border: 2px solid #000;\n outline: 0;\n}\n\n.pm-textarea.pm-disabled {\n border: none;\n user-select: none;\n}\n\n.pm-textarea.pm-hasfocus {\n cursor: auto;\n}\n", ".leaflet-pm-toolbar {\n}\n\n.leaflet-pm-toolbar .leaflet-buttons-control-button {\n padding: 5px;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.leaflet-pm-toolbar\n .leaflet-pm-actions-container\n a.leaflet-pm-action:first-child:not(.pos-right),\n.leaflet-pm-toolbar\n .leaflet-pm-actions-container\n a.leaflet-pm-action:last-child.pos-right {\n border-radius: 0;\n}\n\n.leaflet-pm-toolbar .button-container a.leaflet-buttons-control-button {\n border-radius: 0;\n}\n\n.leaflet-pm-toolbar\n .button-container:last-child\n a.leaflet-buttons-control-button {\n border-bottom-left-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n\n.leaflet-pm-toolbar\n .button-container:first-child\n a.leaflet-buttons-control-button {\n border-top-left-radius: 2px;\n border-top-right-radius: 2px;\n}\n\n.leaflet-pm-toolbar\n .button-container:last-child\n a.leaflet-buttons-control-button {\n border-bottom: none;\n}\n\n.leaflet-pm-toolbar .control-fa-icon {\n font-size: 19px;\n line-height: 24px;\n}\n\n.leaflet-pm-toolbar .control-icon {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n}\n\n.leaflet-pm-toolbar .leaflet-pm-icon-marker {\n background-image: url('../assets/icons/Marker.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-polygon {\n background-image: url('../assets/icons/Polygon.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-polyline {\n background-image: url('../assets/icons/Line.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-circle {\n background-image: url('../assets/icons/Circle.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-circle-marker {\n background-image: url('../assets/icons/CircleMarker.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-rectangle {\n background-image: url('../assets/icons/Rectangle.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-delete {\n background-image: url('../assets/icons/Eraser.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-edit {\n background-image: url('../assets/icons/Edit_Vertex.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-drag {\n background-image: url('../assets/icons/Move.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-cut {\n background-image: url('../assets/icons/Scissors.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-snapping {\n background-image: url('../assets/icons/Magnet.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-rotate {\n background-image: url('../assets/icons/Rotate.svg');\n}\n.leaflet-pm-toolbar .leaflet-pm-icon-text {\n background-image: url('../assets/icons/Text.svg');\n}\n\n.leaflet-buttons-control-button:hover,\n.leaflet-buttons-control-button:focus {\n cursor: pointer;\n background-color: #f4f4f4;\n}\n.active > .leaflet-buttons-control-button {\n box-shadow: inset 0 -1px 5px 2px rgba(81, 77, 77, 0.31);\n}\n\n.leaflet-buttons-control-text-hide {\n display: none;\n}\n\n.button-container {\n position: relative;\n}\n\n.button-container .leaflet-pm-actions-container {\n z-index: 2;\n position: absolute;\n top: 0;\n left: 100%;\n display: none;\n white-space: nowrap;\n direction: ltr;\n}\n\n.leaflet-right\n .leaflet-pm-toolbar\n .button-container\n .leaflet-pm-actions-container {\n right: 100%;\n left: auto;\n}\n\n.button-container.active .leaflet-pm-actions-container {\n display: block;\n}\n\n.button-container\n .leaflet-pm-actions-container:not(.pos-right)\n a.leaflet-pm-action:last-child {\n border-radius: 0 3px 3px 0;\n border-right: 0;\n}\n.button-container\n .leaflet-pm-actions-container.pos-right\n a.leaflet-pm-action:first-child {\n border-radius: 3px 0 0 3px;\n}\n.button-container\n .leaflet-pm-actions-container.pos-right\n a.leaflet-pm-action:last-child {\n border-right: 0;\n}\n.button-container .leaflet-pm-actions-container .leaflet-pm-action {\n padding: 0 10px;\n background-color: #666;\n color: #fff;\n display: inline-block;\n width: auto;\n border-right: 1px solid #eee;\n user-select: none;\n border-bottom: none;\n height: 29px;\n line-height: 29px;\n vertical-align: middle;\n}\n.leaflet-pm-toolbar\n .button-container:first-child.pos-right.active\n a.leaflet-buttons-control-button {\n border-top-left-radius: 0;\n}\n.leaflet-pm-toolbar\n .button-container:first-child.active:not(.pos-right)\n a.leaflet-buttons-control-button {\n border-top-right-radius: 0;\n}\n\n.button-container .leaflet-pm-actions-container .leaflet-pm-action:hover,\n.button-container .leaflet-pm-actions-container .leaflet-pm-action:focus {\n cursor: pointer;\n background-color: #777;\n}\n\n.button-container\n .leaflet-pm-actions-container\n .leaflet-pm-action.active-action {\n background-color: #8e8e8e;\n}\n/* That the active control is always over the other controls */\n.leaflet-pm-toolbar.activeChild {\n z-index: 801;\n}\n\n.leaflet-buttons-control-button.pm-disabled {\n background-color: #f4f4f4;\n}\n\n.leaflet-buttons-control-button.pm-disabled > .control-icon {\n filter: opacity(0.6);\n}\n\n.button-container\n .leaflet-pm-actions-container\n .pm-action-button-mode.control-icon {\n filter: brightness(0) invert(1);\n width: 18px;\n}\n"], "mappings": "AAAA,CAAC,YACC,iBAAkB,KAClB,OAAQ,IAAI,MAAM,QAFpB,cAGiB,IAHjB,OAIU,KAAK,EAAE,EAAE,eACjB,MAAO,eACP,OAAQ,eACR,QAAS,EACT,WAAY,QAAQ,KAAK,GAC3B,CAEA,CAAC,mBACC,QAAS,GAZX,OAaU,KAAK,EAAE,EAAE,eACjB,MAAO,eACP,OAAQ,cACV,CAEA,CAAC,qBACC,OAAQ,cACV,CAEA,CAAC,cACC,OAAQ,UACR,eAAgB,KAChB,QAAS,CACX,CAEA,CANC,aAMa,CAAC,QACb,QAAS,WACX,CAEA,CAAC,mBAGD,CAHC,mBAGmB,CAAC,oBAFnB,OAAQ,SACV,CAKA,CAAC,kBACD,CAAC,kBACC,QAAS,CACX,CAEA,CALC,iBAKiB,CAhBH,QAiBf,CALC,iBAKiB,CAjBH,QAkBb,QAAS,WACX,CAEA,CAAC,sBACC,QAAS,EACX,CAEA,CAAC,eACC,MAAO,EACP,OAAQ,CACV,CAEA,CAAC,YACC,WAAY,YACZ,iBAAkB,KAClB,MAAO,KACP,OAAQ,KACR,OAAQ,KACR,QAAS,EACT,OAAQ,QAjEV,cAkEiB,IACf,aAAc,IACd,eAAgB,EAChB,YAAa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