UNPKG

@geoman-io/leaflet-geoman-free

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-radius: 0 0 2px 2px;\n}\n\n.leaflet-pm-toolbar\n .button-container:first-child\n a.leaflet-buttons-control-button {\n border-radius: 2px 2px 0 0;\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,GACf,CAEA,CAtDC,qBAsDqB,CAdr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