clean install

This commit is contained in:
matze committed 2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 files changed
+3555714

No files matched your search

@@ -0,0 +1,27 @@
.ol-tooltip {
position: relative;
background: rgba(0, 0, 0, 0.5);
border-radius: 4px;
color: white;
padding: 4px 8px;
opacity: 0.7;
white-space: nowrap;
font-size: 12px;
}
.ol-tooltip-measure {
opacity: 1;
font-weight: bold;
}
.ol-tooltip-measure::before {
border-top: 6px solid rgba(0, 0, 0, 0.5);
border-right: 6px solid transparent;
border-left: 6px solid transparent;
content: "";
position: absolute;
bottom: -6px;
margin-left: -7px;
left: 50%;
}
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[723],{2832:(e,t,a)=>{a.r(t),a.d(t,{default:()=>F});var n=a(8775),s=a(245),i=a(5487),r=a(5010),l=a(7517),o=a(8373),c=a(3232),h=a(6002),d=a(933),g=a(8714),u=a(9466),m=a(5289),w=a(8813),f=a(7673);class p extends n.default{constructor(e){const t=e||{};super({element:document.createElement("div"),target:t.target});const{element:a}=this,n=t.className||"ol-edit";a.className=`${n} ${s.XV} ${s.hg}`;const i=document.createElement("div");i.className="ol-edit-buttons draw",a.appendChild(i);const r=document.createElement("div");r.className="ol-edit-buttons actions",a.appendChild(r),this.buttons={};const l=[{name:"polygon",label:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><g><path d="m3.5 18.47 2.65-6.74 3.65.03 2.46-6.23h8.25l-5.1 12.93z" fill="#dcdcdc" /><path d="M12.25 4c-.4 0-.77.16-1.05.45a1.55 1.55 0 0 0-.08 2.07l-1.47 3.72c-.5.05-.94.36-1.17.8h-1a1.47 1.47 0 0 0-2.38-.38 1.54 1.54 0 0 0-.08 2.06l-1.67 4.23c-.35.04-.67.2-.91.44a1.54 1.54 0 0 0 0 2.16 1.48 1.48 0 0 0 2.38-.38l9.26-.01a1.47 1.47 0 0 0 2.38.38 1.55 1.55 0 0 0 .08-2.07l4.12-10.42c.34-.04.66-.2.9-.44a1.55 1.55 0 0 0 0-2.16 1.48 1.48 0 0 0-2.38.37h-5.6A1.49 1.49 0 0 0 12.25 4zm1.33 2.23h5.6c.06.1.12.2.2.3l-4.12 10.4a1.48 1.48 0 0 0-1.18.82l-9.27.01c-.05-.1-.11-.2-.18-.28l1.67-4.23a1.5 1.5 0 0 0 1.17-.8h1c.25.5.75.84 1.33.84a1.52 1.52 0 0 0 1.13-2.53l1.47-3.71a1.5 1.5 0 0 0 1.18-.82z" fill="currentColor"/></g></svg>',tooltip:"Draw a Polygon",draw:"Polygon",element:i},{name:"line",label:'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><path d="M23,8c0,1.1-0.9,2-2,2c-0.18,0-0.35-0.02-0.51-0.07l-3.56,3.55C16.98,13.64,17,13.82,17,14c0,1.1-0.9,2-2,2s-2-0.9-2-2 c0-0.18,0.02-0.36,0.07-0.52l-2.55-2.55C10.36,10.98,10.18,11,10,11s-0.36-0.02-0.52-0.07l-4.55,4.56C4.98,15.65,5,15.82,5,16 c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2c0.18,0,0.35,0.02,0.51,0.07l4.56-4.55C8.02,9.36,8,9.18,8,9c0-1.1,0.9-2,2-2s2,0.9,2,2 c0,0.18-0.02,0.36-0.07,0.52l2.55,2.55C14.64,12.02,14.82,12,15,12s0.36,0.02,0.52,0.07l3.55-3.56C19.02,8.35,19,8.18,19,8 c0-1.1,0.9-2,2-2S23,6.9,23,8z" fill="currentColor"/></svg>',tooltip:"Draw a Line",draw:"LineString",element:i},{name:"point",label:"•",tooltip:"Draw a Point",draw:"Point",element:i},{name:"circle",label:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><circle cx="12" cy="12" r="10" stroke-width="2.5" stroke-opacity="1" fill="#dcdcdc" stroke="currentColor" /></svg>',tooltip:"Draw a Circle",draw:"Circle",element:i},{name:"modify",label:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="m4.37 19.35 2.4-13.11 13.01-2.15v15.26Z" fill="#dcdcdc" style="stroke-width:1.5"/><g fill="currentColor"><path d="M116.96 93.6a1.09 1.09 0 0 0-.93.74l-1.4.23.16.99 1.4-.23a1.09 1.09 0 0 0 .27.27v8.07c-.2.1-.35.27-.46.46h-8.23a1.09 1.09 0 0 0-.21-.28l.2-1.09-.98-.18-.19 1.02a1.08 1.08 0 0 0 .32 2.12 1.09 1.09 0 0 0 .87-.59h8.27a1.08 1.08 0 1 0 1.41-1.4v-8.08a1.08 1.08 0 0 0-.5-2.04zm-3.32 1.13-1.97.33.16.98 1.97-.32zm-5.16.26V95c-.6 0-1.1.5-1.1 1.1 0 .34.17.65.43.86l-.31 1.68.99.18.3-1.68c.35-.1.62-.37.73-.7l1.32-.23-.16-.98-1.32.2a1.1 1.1 0 0 0-.88-.44zm-1.16 4.63-.36 1.97.98.18.37-1.96z" transform="translate(-159.58 -141.1) scale(1.5335)"/><path d="m11.6 17.79-1.19-2.14c-.05-.06-.05-.06-1.12 1l-1.07 1.03c-.03 0-.97-10.55-.97-10.63 0-.01 8.56 6.35 8.59 6.4l-1.46.38-1.48.38 1.2 2.12.05.12-1.25.68-1.26.69c-.02 0-.03 0-.05-.03zm.82-1.5.4-.22-.68-1.23-.69-1.26 1.08-.27 1.07-.3a231.68 231.68 0 0 0-5.18-3.89L9 15.6l.81-.76.8-.77.67 1.16c.76 1.37.73 1.3.74 1.3l.42-.2z"/></g><path d="M11.99 16.47a89.39 89.39 0 0 1-1.38-2.43l-.72.65a880.95 880.95 0 0 1-.87.81c-.04-.02-.07-.38-.37-3.83a101.06 101.06 0 0 1-.2-2.38v-.12l1.65 1.22c1.77 1.32 3.13 2.33 3.35 2.52l.14.1-1.08.28-1.07.3.86 1.56c.26.46.46.89.46.9 0 .03-.66.42-.72.43z" fill="#FFF"/></svg>',tooltip:"Modify features",element:r},{name:"move",label:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z" fill="currentColor"/></svg>',tooltip:"Move features",element:r},{name:"delete",label:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z" fill="currentColor"/></svg>',tooltip:"Delete selected feature",visible:!1,element:r}];for(let e=0;e<l.length;e+=1)this.buttons[l[e].name]=this.addButton(l[e].element,l[e]);this.layer=t.layer,this.eventListeners={drawstart:[],drawend:[],modifystart:[],modifyend:[],translatestart:[],translating:[],translateend:[],select:[],delete:[],disable:[]}}addButton(e,t){const{label:a,tooltip:n}=t,s=document.createElement("button");return s.namLine truncated
@@ -0,0 +1 @@
(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[553],{460:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-layers-half" viewBox="0 0 16 16"><path d="M8.235 1.559a.5.5 0 0 0-.47 0l-7.5 4a.5.5 0 0 0 0 .882L3.188 8 .264 9.559a.5.5 0 0 0 0 .882l7.5 4a.5.5 0 0 0 .47 0l7.5-4a.5.5 0 0 0 0-.882L12.813 8l2.922-1.559a.5.5 0 0 0 0-.882l-7.5-4zM8 9.433 1.562 6 8 2.567 14.438 6 8 9.433z"></path></svg>'},9444:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>o});var n=r(6421),s=r.n(n),t=r(460),l=r.n(t);const o={attach(e){const a=()=>{const a=e.map.getControls().getArray().find((e=>"function"==typeof e.renderPanel));if(!e.sidePanel)return;if(e.sidePanel.getPaneById("layers"))return;const r=e.sidePanel.definePane({paneId:"layers",name:"Layers",icon:l()}),n=document.createElement("div");n.classList="layer-switcher",r.addWidgetElement(n);const t=()=>s().renderPanel(e.map,n,{reverse:!0});t(),e.map.on("farmOS-map.layer",(()=>{t()})),a&&e.map.removeControl(a)};a(),e.map.getControls().on("add",a)}}}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[395],{8957:(s,a,r)=>{r.r(a)}}]);
@@ -0,0 +1,22 @@
@keyframes farmos-map-loading-spinner {
to {
transform: rotate(360deg);
}
}
div.ol-viewport.loading-spinner::after {
content: "";
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin-top: -20px;
margin-left: -20px;
border-radius: 50%;
border: 5px solid rgba(180, 180, 180, 0.6);
border-top-color: var(--farmos-map-accent-color);
animation: farmos-map-loading-spinner 1s linear infinite;
}
@@ -0,0 +1,8 @@
.ol-side-panel-pane .layer-switcher {
left: 0;
}
.ol-side-panel-pane .layer-switcher > ul {
margin-top: 0;
}
@@ -0,0 +1,17 @@
.ol-edit.ol-control {
left: 0.5em;
}
.ol-edit.ol-control .ol-edit-buttons.draw {
margin-bottom: 4px;
}
.ol-edit.ol-control button.active {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.ol-edit.ol-control button svg {
pointer-events: none;
}
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[32],{8481:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(7673);const r={attach(e){this.update(e),e.map.on("farmOS-map.layer",(()=>{this.update(e)}))},remember(e){!function(e){const t=e.get("title");if(t){const a=`farmOS.map.layers.${t}.visible`;if(null!==localStorage.getItem(a)){const t=!0===JSON.parse(localStorage.getItem(a));e.setVisible(t)}}}(e),e.on("change:visible",(e=>{!function(e){const t=e.get("title");if(t){const a=`farmOS.map.layers.${t}.visible`,s=JSON.stringify(e.get("visible"));localStorage.setItem(a,s)}}(e.target)}))},update(e){(0,s.Z)(e.map.getLayerGroup(),(e=>{"base"===e.get("type")&&this.remember(e)}))}}}}]);
@@ -0,0 +1,80 @@
.ol-snapgrid.ol-control {
bottom: 2.5em;
left: 0.5em;
}
.ol-snapgrid.ol-control.collapsed .collabsible {
display: none;
}
.ol-snapgrid.ol-control.expanded .reverse-collabsible {
display: none;
}
.ol-snapgrid.ol-control .expandButton {
display: none;
}
.ol-snapgrid.ol-control.grid-active .expandButton {
display: inline-block;
}
.ol-snapgrid.ol-control.grid-active.expanded .expandButton {
display: none;
}
.ol-snapgrid.ol-control .clearButton {
display: none;
}
.ol-snapgrid.ol-control.grid-active .clearButton {
display: inline-block;
}
.ol-snapgrid.ol-control button {
display: inline-block;
}
.ol-snapgrid.ol-control input {
display: inline-block;
width: 4em;
padding: 0;
margin: 0;
}
.ol-snapgrid.ol-control span.timesSymbol {
display: inline-block;
padding: 0 0.5em 0 0.5em;
margin: 0;
}
.ol-snapgrid.ol-control input:focus {
outline: 0;
}
.ol-snapgrid.ol-control button.enable {
text-decoration: none;
background-color: #4c6079;
background-color: rgba(0, 60, 136, 0.7);
}
.ol-snapgrid.ol-control.active button.activateButton {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.ol-snapgrid.ol-control button:disabled {
background-color: #929292;
background-color: rgba(146, 146, 146, 0.7);
}
.ol-snapgrid.ol-control button svg {
pointer-events: none;
}
.ol-snapgrid.ol-control select {
display: inline-block;
padding: 0;
margin: 0;
}
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[807],{7276:(t,e,i)=>{i.d(e,{Z:()=>c});var o,n=i(4754),r=i(2967),s=i(8641),a=i(8527),h=i(6442),u=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=function(t){function e(e,i,o){var n=t.call(this)||this;if(void 0!==o&&void 0===i)n.setFlatCoordinates(o,e);else{var r=i||0;n.setCenterAndRadius(e,r,o)}return n}return u(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,o){var n=this.flatCoordinates,r=t-n[0],s=e-n[1],a=r*r+s*s;if(a<o){if(0===a)for(var h=0;h<this.stride;++h)i[h]=n[h];else{var u=this.getRadius()/Math.sqrt(a);for(i[0]=n[0]+u*r,i[1]=n[1]+u*s,h=2;h<this.stride;++h)i[h]=n[h]}return i.length=this.stride,a}return o},e.prototype.containsXY=function(t,e){var i=this.flatCoordinates,o=t-i[0],n=e-i[1];return o*o+n*n<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,i=e[this.stride]-e[0];return(0,s.createOrUpdate)(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return n.Z.CIRCLE},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if((0,s.intersects)(t,e)){var i=this.getCenter();return t[0]<=i[0]&&t[2]>=i[0]||t[1]<=i[1]&&t[3]>=i[1]||(0,s.forEachCorner)(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],o=t.slice();o[e]=o[0]+i;for(var n=1;n<e;++n)o[e+n]=t[n];this.setFlatCoordinates(this.layout,o),this.changed()},e.prototype.setCenterAndRadius=function(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var o=this.flatCoordinates,n=(0,a.IG)(o,0,t,this.stride);o[n++]=o[0]+e;for(var r=1,s=this.stride;r<s;++r)o[n++]=o[r];o.length=n,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var i=this.getCenter(),o=this.getStride();this.setCenter((0,h.U1)(i,0,i.length,o,t,e,i)),this.changed()},e.prototype.translate=function(t,e){var i=this.getCenter(),o=this.getStride();this.setCenter((0,h.Iu)(i,0,i.length,o,t,e,i)),this.changed()},e}(r.ZP);d.prototype.transform;const c=d},5010:(t,e,i)=>{i.d(e,{N_:()=>S,ZP:()=>Z});var o,n=i(7276),r=i(291),s=i(5487),a=i(1090),h=i(4754),u=i(4049),d=i(2083),c=i(8630),_=i(2217),l=i(7403),p=i(6259),f=i(3643),g=i(188),y=i(4515),m=i(2033),v=i(9271),C=i(933),k=i(6885),w=i(8683),P=i(7539),E=i(2290),T=i(1900),F=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),x="Point",L="LineString",G="Polygon",D="Circle",M="drawstart",O=function(t){function e(e,i){var o=t.call(this,e)||this;return o.feature=i,o}return F(e,t),e}(r.ZP);function S(t,e){return function(i,o,r){var s=(0,E.fromUserCoordinate)(i[0],r),a=(0,E.fromUserCoordinate)(i[i.length-1],r),h=Math.sqrt((0,T.bI)(s,a)),u=o||(0,m.Bb)(new n.Z(s),t),d=e;if(!e&&0!==e){var c=a[0]-s[0],_=a[1]-s[1];d=Math.atan2(_,c)}(0,m.Ej)(u,s,h,d);var l=(0,E.getUserProjection)();return l&&u.transform(r,l),u}}const Z=function(t){function e(e){var i=this,o=e;o.stopDown||(o.stopDown=k.Dv),(i=t.call(this,o)||this).on,i.once,i.un,i.shouldHandle_=!1,i.downPx_=null,i.downTimeout_,i.lastDragTime_,i.pointerType_,i.freehand_=!1,i.source_=e.source?e.source:null,i.features_=e.features?e.features:null,i.snapTolerance_=e.snapTolerance?e.snapTolerance:12,i.type_=e.type,i.mode_=function(t){switch(t){case h.Z.POINT:case h.Z.MULTI_POINT:return x;case h.Z.LINE_STRING:case h.Z.MULTI_LINE_STRING:return L;case h.Z.POLYGON:case h.Z.MULTI_POLYGON:return G;case h.Z.CIRCLE:return D;default:throw new Error("Invalid type: "+t)}}(i.type_),i.stopClick_=!!e.stopClick,i.minLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[687],{300:(s,a,r)=>{r.r(a)}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[663],{2390:(t,e,i)=>{var n=i(7182),r=i(9271),s=i(933),a=i(8641),o=i(7580),d=i(2290),c=i(1090),h=i(6528);function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=l(n),g=l(r),p=l(s),m=l(c);const f=[0,0];class S extends u.default{constructor(t){const e=t||{};super(e),this.originCoordinate=e.originCoordinate||f,this.rotationAnchorCoordinate=e.rotationAnchorCoordinate||null,this.xGridSize=e.xGridSize||10,this.yGridSize=e.yGridSize||10,this.maxPointsPerSide=e.maxPointsPerSide||64,this.overlay_=new g.default({source:E(),style:e.style,updateWhileInteracting:!0}),this.gridFeature_=new m.default({geometry:new h.MultiPoint([])}),this.updateGridDescription_(),this.overlay_.getSource().addFeature(this.gridFeature_),this.overlay_.on("postrender",this.handleGridLayerPostRender_.bind(this)),this.addEventListener("change:active",this.updateState_)}getGridFeature(){return this.gridFeature_}setOriginPoint(t){this.originCoordinate=t,this.updateGridDescription_()}setRotationControlPoint(t){this.rotationAnchorCoordinate=t,this.updateGridDescription_()}setXGridSize(t){this.xGridSize=t,this.updateGridDescription_()}setYGridSize(t){this.yGridSize=t,this.updateGridDescription_()}setMaxPointsPerSide(t){this.maxPointsPerSide=t,this.changed()}setStyle(t){this.overlay_.setStyle(t)}setMap(t){super.setMap(t),this.updateState_()}updateState_(){const t=this.getMap(),e=this.getActive();this.overlay_.setMap(e?t:null),this.updateGridDescription_()}updateGridDescription_(){const t=this.getMap();if(!(t&&this.originCoordinate&&this.xGridSize&&this.yGridSize&&this.getActive()))return this.gridDescription_=null,this.lastGridDescription_=null,this.gridFeature_.getGeometry().setCoordinates([]),void this.changed();const e=t.getView().getProjection(),i=d.transform(this.originCoordinate,e,"EPSG:4326"),n=this.rotationAnchorCoordinate||C(this.originCoordinate,[1,0]),r=d.transform(n,e,"EPSG:4326"),s=[i[0],r[1]],a=[r[0],i[1]],c=o.getDistance(i,r);let h=o.getDistance(i,s),l=o.getDistance(i,a);i[0]>r[0]&&(l*=-1),i[1]>r[1]&&(h*=-1);const u=h/c,g=l/c;this.gridDescription_,this.gridDescription_={originCoordinate:this.originCoordinate,riseFactor:u,runFactor:g,xDim:this.xGridSize,yDim:this.yGridSize},this.changed()}changed(){super.changed(),this.overlay_.changed()}handleGridLayerPostRender_(t){const e=this.getMap(),i=this.gridDescription_;if(!i)return;const n=e.getView().calculateExtent(e.getSize()),r=i===this.lastGridDescription_||JSON.stringify(i)===JSON.stringify(this.lastGridDescription_),s=n===this.lastViewExtent_||JSON.stringify(n)===JSON.stringify(this.lastViewExtent_);if(r&&s)return;const o=i.originCoordinate;let d=[i.xDim*i.runFactor,i.xDim*i.riseFactor],c=[-1*i.yDim*i.riseFactor,i.yDim*i.runFactor];const l=this.calculateLocalSphereNormalizationCoefficients(new h.Point(i.originCoordinate));d=M(d,l),c=M(c,l);const u=C(o,v([d,c],w(o,d,c,a.getCenter(n)))),g=new h.Point(u),p=function(t,e,i,n){return[w(t,e,i,[n[0],n[1]],Math.ceil),w(t,e,i,[n[2],n[3]],Math.ceil),w(t,e,i,[n[0],n[3]],Math.ceil),w(t,e,i,[n[2],n[1]],Math.ceil)]}(u,d,c,n),m=function(t,e,i,n,r,s){const a=i[0][0],o=i[0][1],d=i[1][0],c=i[1][1],h=i[2][0],l=i[2][1],u=i[3][0],g=i[3][1],p=Math.min(a,d,h,u),m=Math.min(o,c,l,g),f=Math.max(a,d,h,u),S=Math.max(o,c,l,g),v=f-p,C=S-m,y=Math.max(1,Math.floor(v/s)),M=Math.max(1,Math.floor(C/s)),w=[];for(let i=p;i<=f;i+=y)for(let s=m;s<=S;s+=M){const a=I(e,i,s,n,r);a.intersectsExtent(t)&&w.push(a.getCoordinates())}return w}(n,g,p,d,c,this.maxPointsPerSide);this.lastGridDescription_=i,this.lastViewExtent_=n,this.gridFeature_.getGeometry().setCoordinates(m)}calculateLocalSphereNormalizationCoefficients(t){const e=this.getMap().getView().getProjection().getCode();function i(t){return t.transform(e,"EPSG:4326").getCoordinates()}function n(t,e,i){const n=t.clone();return n.translate(e,i),n}const r=i(t.clone()),s=i(n(t,1,0)),a=i(n(t,0,1));return[1/o.getDistance(r,s),1/o.getDistance(r,a)]}}function I(t,e,i,n,r){const s=y(n,e),a=y(r,i),o=t.clone();return o.setCoordinates(C(t.getCoordinates(),s,a)),o}function v(t,e){const i=t[0][0],n=t[0][1],r=t[1][0],s=t[1][1],a=e[0],o=e[1];return[i*a+r*o,n*a+s*o]}function C(t,e,i){return i?[t[0]+e[0]+i[0],t[1]+e[1]+i[1]]:[t[0]+e[0],t[1]+e[1]]}function y(t,e){return[t[0]*e,t[1]*e]}function M(t,e){return[t[0]*e[0],t[1]*e[1]]}function w(t,e,i,n,r){var s,a;return function(t,e,i,n){const r=n||Math.round,s=function(t,e,i){return v(function(t){const e=t[0][0],i=t[0][1],n=t[1][0],r=t[1][1],s=e*r-i*n;return[[r/s,-i/s],[-n/s,e/s]]}([t,e]),i)}(t,e,i);return[r(s[0]),r(s[1])]}(e,i,(a=t,[(s=n)[0]-a[0],s[1]-a[1]]),r)}function E(){const t=new p.default({useSpatialIndex:!1,features:[],wrapX:!1});return t.getFeaturesInExtent=t.getFeatures,t}t.exports=S},9899:(t,e,i)=>{i.r(e),i.d(e,{default:()=>C});var n=i(8714),r=i(8775),s=i(5010),a=i(6002),o=i(245),d=i(5487),c=i(7539),h=i(283),l=i(1345),u=i(8958),g=i(9271),p=i(933),m=i(2390),f=i.nLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[92],{1868:(e,t,a)=>{a.r(t),a.d(t,{default:()=>L,startMeasure:()=>y,stopMeasure:()=>h});var n=a(1882),r=a(2083),o=a(2033),s=a(2706),d=a(3945);const i={},c=[];let u,f,l,m=0;function g(e){let t=e.getId();return t||(t=`measureFeature${m}`,e.setId(t),m+=1),t}function I(e,t){const a=(0,d.Yt)(t,l);let n;t instanceof o.ZP&&(n=t.getInteriorPoint().getCoordinates()),t instanceof r.Z&&(n=t.getLastCoordinate()),e.setPosition(n),e.getElement().innerHTML=a}function p(e){const t=g(e),a=document.createElement("div");a.className="ol-tooltip ol-tooltip-measure",i[t]=new n.default({element:a,offset:[0,-15],positioning:"bottom-center",stopEvent:!1}),u.addOverlay(i[t]),I(i[t],e.getGeometry())}function y(e){const t=g(e);i[t]||p(e),c[t]=e.getGeometry().on("change",(e=>I(i[t],e.target)))}function h(e=!1){c.forEach((e=>(0,s.unByKey)(e))),Object.keys(i).forEach((t=>{f.getSource().getFeatureById(t)||e&&e.getId()===t||(u.removeOverlay(i[t]),delete i[t])}))}const L={attach(e,t={}){({map:u,units:l}=e),({layer:f}=t),f.getSource().getFeatures().forEach((e=>{p(e)})),f.getSource().on("clear",(()=>{h()})),f.getSource().on("addfeature",(e=>{y(e.feature)})),e.edit&&(e.edit.addInteractionListener("drawstart",((e,t)=>{y(t.feature)})),e.edit.addInteractionListener("drawend",((e,t)=>{h(t.feature)})),e.edit.addInteractionListener("modifystart",((e,t)=>{t.features.forEach((e=>{y(e)}))})),e.edit.addInteractionListener("modifyend",(()=>{h()})),e.edit.addInteractionListener("translatestart",((e,t)=>{t.features.forEach((e=>{y(e)}))})),e.edit.addInteractionListener("translateend",(()=>{h()})),e.edit.addInteractionListener("delete",(()=>{h()})),e.edit.addInteractionListener("disable",(()=>{h()})))}}}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[243],{8373:(e,t,r)=>{r.d(t,{Z:()=>G});var i,n=r(8714),o=r(2071),a=r(291),s=r(5487),u=r(1090),h=r(4754),l=r(2217),d=r(188),g=r(4515),_=r(9781),f=r(2796),c=r(9271),p=r(933),y=r(8683),v=r(8641),m=r(1900),x=r(7539),C=r(5537),E=r(2033),F=r(2290),S=r(4187),T=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),P=[0,0,0,0],b=[],L="modifyend",w=function(e){function t(t,r,i){var n=e.call(this,t)||this;return n.features=r,n.mapBrowserEvent=i,n}return T(t,e),t}(a.ZP);function M(e,t){return e.index-t.index}function I(e,t,r){var i=t.geometry;if(i.getType()===h.Z.CIRCLE){var n=i;if(1===t.index){var o=(0,F.getUserProjection)();o&&(n=n.clone().transform(o,r));var a=(0,m.bI)(n.getCenter(),(0,F.fromUserCoordinate)(e,r)),s=Math.sqrt(a)-n.getRadius();return s*s}}var u=(0,F.fromUserCoordinate)(e,r);return b[0]=(0,F.fromUserCoordinate)(t.segment[0],r),b[1]=(0,F.fromUserCoordinate)(t.segment[1],r),(0,m.Bs)(u,b)}function A(e,t,r){var i=t.geometry;if(i.getType()===h.Z.CIRCLE&&1===t.index){var n=i,o=(0,F.getUserProjection)();return o&&(n=n.clone().transform(o,r)),(0,F.toUserCoordinate)(n.getClosestPoint((0,F.fromUserCoordinate)(e,r)),r)}var a=(0,F.fromUserCoordinate)(e,r);return b[0]=(0,F.fromUserCoordinate)(t.segment[0],r),b[1]=(0,F.fromUserCoordinate)(t.segment[1],r),(0,F.toUserCoordinate)((0,m.oL)(a,b),r)}const G=function(e){function t(t){var r,i,a=e.call(this,t)||this;if(a.on,a.once,a.un,a.boundHandleFeatureChange_=a.handleFeatureChange_.bind(a),a.condition_=t.condition?t.condition:y.Xp,a.defaultDeleteCondition_=function(e){return(0,y.Ko)(e)&&(0,y.Kf)(e)},a.deleteCondition_=t.deleteCondition?t.deleteCondition:a.defaultDeleteCondition_,a.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:y.Bx,a.vertexFeature_=null,a.vertexSegments_=null,a.lastPixel_=[0,0],a.ignoreNextSingleClick_=!1,a.featuresBeingModified_=null,a.rBush_=new _.Z,a.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,a.snappedToVertex_=!1,a.changingFeature_=!1,a.dragSegments_=[],a.overlay_=new c.default({source:new p.default({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:(r=(0,x.createEditingStyle)(),function(e,t){return r[h.Z.POINT]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),a.SEGMENT_WRITERS_={Point:a.writePointGeometry_.bind(a),LineString:a.writeLineStringGeometry_.bind(a),LinearRing:a.writeLineStringGeometry_.bind(a),Polygon:a.writePolygonGeometry_.bind(a),MultiPoint:a.writeMultiPointGeometry_.bind(a),MultiLineString:a.writeMultiLineStringGeometry_.bind(a),MultiPolygon:a.writeMultiPolygonGeometry_.bind(a),Circle:a.writeCircleGeometry_.bind(a),GeometryCollection:a.writeGeometryCollectionGeometry_.bind(a)},a.source_=null,a.hitDetection_=null,t.features?i=t.features:t.source&&(a.source_=t.source,i=new n.Z(a.source_.getFeatures()),a.source_.addEventListener(f.Z.ADDFEATURE,a.handleSourceAdd_.bind(a)),a.source_.addEventListener(f.Z.REMOVEFEATURE,a.handleSourceRemove_.bind(a))),!i)throw new Error("The modify interaction requires features, a source or a layer");return t.hitDetection&&(a.hitDetection_=t.hitDetection),a.features_=i,a.features_.forEach(a.addFeature_.bind(a)),a.features_.addEventListener(o.Z.ADD,a.handleFeatureAdd_.bind(a)),a.features_.addEventListener(o.Z.REMOVE,a.handleFeatureRemove_.bind(a)),a.lastPointerEvent_=null,a.delta_=[0,0],a.snapToPointer_=void 0===t.snapToPointer?!a.hitDetection_:t.snapToPointer,a}return T(t,e),t.prototype.addFeature_=function(e){var t=e.getGeometry();if(t){var r=this.SEGMENT_WRITERS_[t.getType()];r&&r(e,t)}var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),e.addEventListener(s.Z.CHANGE,this.boundHandleFeatureChange_)},t.prototype.willModifyFeatures_=function(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new n.Z;for(var r=this.featuresBeingModified_.getArray(),i=0,o=t.length;i<o;++i)for(var a=t[i],s=0,u=a.length;s<u;++s){var h=a[s].feature;h&&-1===r.indexOf(h)&&this.featuresBeingModified_.push(h)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new w("modifystart",this.featuresBeingModified_,e))}},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(s.Z.CHANGE,this.boundHandleFeatureChange_)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,r=[];t.forEach((function(tLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[412],{9338:(s,a,r)=>{r.r(a)}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[103],{856:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var n=a(8714),s=a(8775),i=a(245);const l=(e,t,a)=>{const n=document.createElement(e);return Object.entries(t||{}).forEach((([e,t])=>n.setAttribute(e,t))),a&&a(n),n};var h=a(2971);class d extends h.Z{constructor({sidePanel:e,paneId:t,paneUniqId:a,name:s,icon:i,weight:h}){super({name:s,icon:i,weight:h}),this.sidePanel_=e,this.paneId_=t,this.paneUniqId_=a,this.element_=l("div",{id:`ol-side-panel-pane-${this.paneUniqId_}`,role:"tabpanel",class:"ol-side-panel-pane",tabindex:"0","aria-labelledby":`ol-side-panel-tab-${this.paneUniqId_}`}),this.headerElement_=l("h1",{class:"ol-side-panel-header"}),this.element_.appendChild(this.headerElement_),this.headerElementText_=document.createElement("span"),this.headerElementText_.innerHTML=this.get("name"),this.headerElement_.appendChild(this.headerElementText_),this.headerElementCloser_=l("span",{class:"ol-side-panel-close"}),this.headerElementCloser_.innerHTML="«",this.headerElement_.appendChild(this.headerElementCloser_),this.headerElementCloser_.addEventListener("click",(e=>{e.preventDefault(),this.set("active",!1)})),this.on("change:name",(()=>{this.headerElementText_.innerHTML=this.get("name")})),this.widgets=new n.Z,this.widgets.on("add",(e=>this.element_.appendChild(e.element.element_))),this.widgets.on("remove",(e=>this.element_.removeChild(e.element.element_))),this.on("change:active",(()=>{this.get("active")?-1===this.element_.className.search(/\bactive\b/)&&(this.element_.className+=" active"):this.element_.className=this.element_.className.replace(/\s*\bactive\b/g,"")}))}remove(){this.sidePanel_.removePane_(this),this.sidePanel_=void 0}addWidgetElement(e){const t=new class{constructor({pane:e,element:t}){this.pane_=e,this.element_=t}remove(){this.pane_.removeWidget_(this),this.pane_=void 0}}({pane:this,element:e});return this.widgets.push(t),t}removeWidget_(e){this.widgets.remove(e)}}const p=d;class r{constructor({pane:e}){this.pane_=e,this.element_=l("button",{id:`ol-side-panel-tab-${this.pane_.paneUniqId_}`,role:"tab","aria-controls":`ol-side-panel-pane-${this.pane_.paneUniqId_}`}),this.updateName_(),this.updateIcon_(),this.updateWeight_(),this.pane_.on("change:name",(()=>this.updateName_())),this.pane_.on("change:icon",(()=>this.updateIcon_())),this.pane_.on("change:weight",(()=>this.updateWeight_())),this.pane_.on("change:active",(()=>{const e=this.pane_.get("active");e?-1===this.element_.className.search(/\bactive\b/)&&(this.element_.className+=" active"):this.element_.className=this.element_.className.replace(/\s*\bactive\b/g,""),this.element_.setAttribute("aria-selected",e?"true":"false")})),this.element_.addEventListener("click",(e=>{e.preventDefault(),this.pane_.set("active",!this.pane_.get("active")),this.element_.blur()}))}static fromPane(e){const t=new r({pane:e});return e.tabRef_=t,t}updateName_(){const e=this.pane_.get("name");this.element_.setAttribute("aria-label",`Tab for map side pane: '${e}'`)}updateIcon_(){this.element_.innerHTML=this.pane_.get("icon")}updateWeight_(){this.element_.style.order=this.pane_.get("weight")}}const c=r;class o extends s.default{constructor(){super({element:document.createElement("div"),activePane:null});const{element:e}=this;e.className=`ol-side-panel ${i.XV} ${i.hg}`,window.nextOlSidePanelPaneUniqId=window.nextOlSidePanelPaneUniqId||0,this.panes=new n.Z,e.appendChild(l("div",{class:"ol-side-panel-tabs",role:"tablist"},(e=>{this.panes.on("add",(t=>{const a=t.element;e.appendChild(c.fromPane(a).element_),a.on("change:active",(()=>{a.get("active")||a!==this.get("activePane")?a.get("active")&&this.updateActivePane_(a):this.updateActivePane_(null)}))})),this.panes.on("remove",(t=>{e.removeChild(t.element.tabRef_.element_)})),e.appendChild(l("div",{class:"ol-side-panel-tabs-separator"}))}))),e.appendChild(l("div",{class:"ol-side-panel-content"},(e=>{this.panes.on("add",(t=>e.appendChild(t.element.element_))),this.panes.on("remove",(t=>{e.removeChild(t.element.element_),t.element===this.get("activePane")&&this.updateActivePane_(null)}))}))),this.on("change:activePane",(()=>{this.get("activePane")?this.getMap().getTargetElement().className=this.getMap().getTargetElement().className.replace(/\bol-side-panel-collapsed\b/g,""):-1===this.getMap().getTargetElement().className.search(/\bol-side-panel-collapsed\b/)&&(this.getMap().getTargetElement().className+=" ol-side-panel-collapsed")}))}definePane({paneId:e,name:t,icon:a,weight:n}){const s=window.nextOlSidePanelPaneUniqId++,i=new p({paneId:e,paneUniqId:s,name:t,icon:a,weight:n});return this.panes.push(i),i}getPaneById(e){return this.panes.getArray().find((t=>t.paneId_===e))}removePaneById(e){this.removePane_(this.getPaneById(e))}removePane_(e){this.panes.remove(e)}addWidgetElement(e,t){return this.getPane(e).addWidgetElement(t)}updateActivePane_(e){this.set("activePane",e),this.panes.getArray().filter((t=>t!==e)).forEacLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[285],{7493:(s,a,r)=>{r.r(a)}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunk_farmos_org_farmos_map=self.webpackChunk_farmos_org_farmos_map||[]).push([[330],{4593:(a,s,o)=>{o.r(s),o.d(s,{default:()=>e});const e={attach(a){a.map.on("loadstart",(()=>{a.map.getViewport().classList.add("loading-spinner")})),a.map.on("loadend",(()=>{a.map.getViewport().classList.remove("loading-spinner")}))}}}}]);
@@ -0,0 +1,28 @@
.ol-side-panel-tabs button svg {
margin: 5px;
width: 28px;
}
.ol-side-panel .ol-side-panel-tabs button.active {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.map-with-ol-side-panel .ol-geocoder {
margin-left: 100%;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-geocoder {
margin-left: 0;
}
@media (min-width: 768px) {
.map-with-ol-side-panel .ol-geocoder {
margin-left: 0;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-geocoder {
margin-left: 0;
}
}
@@ -0,0 +1,419 @@
.ol-side-panel {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
overflow: hidden;
z-index: 2000;
padding: 0;
border-radius: 0;
}
.ol-side-panel-collapsed .ol-side-panel {
width: 40px;
}
.ol-side-panel .ol-side-panel-tabs {
display: flex;
flex-direction: column;
align-items: flex-start;
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 100%;
margin: 0;
padding: 0;
}
.ol-side-panel .ol-side-panel-tabs > button {
display: block;
width: 100%;
line-height: 40px;
text-decoration: none;
text-align: center;
margin: 0px;
width: 100%;
height: 40px;
font-size: 12pt;
overflow: hidden;
transition: all 80ms;
cursor: default;
}
.ol-control .ol-side-panel-tabs > button {
border-radius: 0px;
}
.ol-side-panel-tabs > button.active {
background-color: rgba(0, 60, 136, 0.7);
}
.ol-side-panel-tabs > .ol-side-panel-tabs-separator {
margin-top: auto;
order: 100;
}
.ol-side-panel-content {
position: absolute;
top: 0;
bottom: 0;
left: 40px;
right: 0;
overflow-x: hidden;
overflow-y: auto;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-side-panel-content {
display: none;
overflow-y: hidden;
}
.ol-side-panel-pane {
display: none;
left: 0;
right: 0;
box-sizing: border-box;
padding: 10px 20px;
}
.ol-side-panel-pane.active {
display: block;
}
.ol-side-panel-header {
margin: -10px -20px 0;
height: 40px;
padding: 0 20px;
line-height: 40px;
font-size: 14.4pt;
}
.ol-side-panel-close {
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
text-align: center;
cursor: pointer;
}
.ol-side-panel-tabs {
overflow: hidden;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel), .map-with-ol-side-panel .ol-scale-line {
margin-left: 100%;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel .ol-scale-line {
margin-left: 42px;
}
@media (min-width : 768px) {
.ol-side-panel {
top: 6px;
bottom: 6px;
left: 6px;
transition: width 500ms;
border: 3px solid transparent;
border-radius: 4px;
}
.ol-side-panel-tabs {
border-radius: 2px 0 0 2px;
}
.ol-side-panel-content {
border-radius: 0 2px 2px 0;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
transition: margin-left 500ms;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 768px) and (max-width: 991px) {
.ol-side-panel {
width: 305px;
}
.ol-side-panel-pane {
min-width: 265px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 317px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 992px) and (max-width: 1199px) {
.ol-side-panel {
width: 390px;
}
.ol-side-panel-pane {
min-width: 350px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 402px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 1200px) {
.ol-side-panel {
width: 460px;
}
.ol-side-panel-pane {
min-width: 420px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 472px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
.ol-side-panel {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
overflow: hidden;
z-index: 2000;
padding: 0;
border-radius: 0;
}
.ol-side-panel-collapsed .ol-side-panel {
width: 40px;
}
.ol-side-panel .ol-side-panel-tabs {
display: flex;
flex-direction: column;
align-items: flex-start;
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 100%;
margin: 0;
padding: 0;
}
.ol-side-panel .ol-side-panel-tabs > button {
display: block;
width: 100%;
line-height: 40px;
text-decoration: none;
text-align: center;
margin: 0px;
width: 100%;
height: 40px;
font-size: 12pt;
overflow: hidden;
transition: all 80ms;
cursor: default;
}
.ol-control .ol-side-panel-tabs > button {
border-radius: 0px;
}
.ol-side-panel-tabs > button.active {
background-color: rgba(0, 60, 136, 0.7);
}
.ol-side-panel-tabs > .ol-side-panel-tabs-separator {
margin-top: auto;
order: 100;
}
.ol-side-panel-content {
position: absolute;
top: 0;
bottom: 0;
left: 40px;
right: 0;
overflow-x: hidden;
overflow-y: auto;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-side-panel-content {
display: none;
overflow-y: hidden;
}
.ol-side-panel-pane {
display: none;
left: 0;
right: 0;
box-sizing: border-box;
padding: 10px 20px;
}
.ol-side-panel-pane.active {
display: block;
}
.ol-side-panel-header {
margin: -10px -20px 0;
height: 40px;
padding: 0 20px;
line-height: 40px;
font-size: 14.4pt;
}
.ol-side-panel-close {
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
text-align: center;
cursor: pointer;
}
.ol-side-panel-tabs {
overflow: hidden;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel), .map-with-ol-side-panel .ol-scale-line {
margin-left: 100%;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel .ol-scale-line {
margin-left: 42px;
}
@media (min-width : 768px) {
.ol-side-panel {
top: 6px;
bottom: 6px;
left: 6px;
transition: width 500ms;
border: 3px solid transparent;
border-radius: 4px;
}
.ol-side-panel-tabs {
border-radius: 2px 0 0 2px;
}
.ol-side-panel-content {
border-radius: 0 2px 2px 0;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
transition: margin-left 500ms;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 768px) and (max-width: 991px) {
.ol-side-panel {
width: 305px;
}
.ol-side-panel-pane {
min-width: 265px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 317px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 992px) and (max-width: 1199px) {
.ol-side-panel {
width: 390px;
}
.ol-side-panel-pane {
min-width: 350px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 402px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
@media (min-width : 1200px) {
.ol-side-panel {
width: 460px;
}
.ol-side-panel-pane {
min-width: 420px;
}
.map-with-ol-side-panel .ol-control:not(.ol-side-panel ), .map-with-ol-side-panel .ol-scale-line {
margin-left: 472px;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-control:not(.ol-side-panel), .map-with-ol-side-panel.ol-side-panel-collapsed .ol-scale-line {
margin-left: 52px;
}
}
.ol-side-panel-tabs button svg {
margin: 5px;
width: 28px;
}
.ol-side-panel .ol-side-panel-tabs button.active {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.map-with-ol-side-panel .ol-geocoder {
margin-left: 100%;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-geocoder {
margin-left: 0;
}
@media (min-width: 768px) {
.map-with-ol-side-panel .ol-geocoder {
margin-left: 0;
}
.map-with-ol-side-panel.ol-side-panel-collapsed .ol-geocoder {
margin-left: 0;
}
}
+925
View File
@@ -0,0 +1,925 @@
/*! farmOS-map 2.3.0 */
.ol-box {
box-sizing: border-box;
border-radius: 2px;
border: 1.5px solid rgb(179,197,219);
background-color: rgba(255,255,255,0.4);
}
.ol-mouse-position {
top: 8px;
right: 8px;
position: absolute;
}
.ol-scale-line {
background: rgba(0,60,136,0.3);
border-radius: 4px;
bottom: 8px;
left: 8px;
padding: 2px;
position: absolute;
}
.ol-scale-line-inner {
border: 1px solid #eee;
border-top: none;
color: #eee;
font-size: 10px;
text-align: center;
margin: 1px;
will-change: contents, width;
transition: all 0.25s;
}
.ol-scale-bar {
position: absolute;
bottom: 8px;
left: 8px;
}
.ol-scale-step-marker {
width: 1px;
height: 15px;
background-color: #000000;
float: right;
z-index: 10;
}
.ol-scale-step-text {
position: absolute;
bottom: -5px;
font-size: 12px;
z-index: 11;
color: #000000;
text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;
}
.ol-scale-text {
position: absolute;
font-size: 14px;
text-align: center;
bottom: 25px;
color: #000000;
text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;
}
.ol-scale-singlebar {
position: relative;
height: 10px;
z-index: 9;
box-sizing: border-box;
border: 1px solid black;
}
.ol-unsupported {
display: none;
}
.ol-viewport, .ol-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ol-viewport canvas {
all: unset;
}
.ol-selectable {
-webkit-touch-callout: default;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.ol-grabbing {
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
.ol-grab {
cursor: move;
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.ol-control {
position: absolute;
background-color: rgba(255,255,255,0.4);
border-radius: 4px;
padding: 2px;
}
.ol-control:hover {
background-color: rgba(255,255,255,0.6);
}
.ol-zoom {
top: .5em;
left: .5em;
}
.ol-rotate {
top: .5em;
right: .5em;
transition: opacity .25s linear, visibility 0s linear;
}
.ol-rotate.ol-hidden {
opacity: 0;
visibility: hidden;
transition: opacity .25s linear, visibility 0s linear .25s;
}
.ol-zoom-extent {
top: 4.643em;
left: .5em;
}
.ol-full-screen {
right: .5em;
top: .5em;
}
.ol-control button {
display: block;
margin: 1px;
padding: 0;
color: white;
font-weight: bold;
text-decoration: none;
font-size: inherit;
text-align: center;
height: 1.375em;
width: 1.375em;
line-height: .4em;
background-color: rgba(0,60,136,0.5);
border: none;
border-radius: 2px;
}
.ol-control button::-moz-focus-inner {
border: none;
padding: 0;
}
.ol-zoom-extent button {
line-height: 1.4em;
}
.ol-compass {
display: block;
font-weight: normal;
font-size: 1.2em;
will-change: transform;
}
.ol-touch .ol-control button {
font-size: 1.5em;
}
.ol-touch .ol-zoom-extent {
top: 5.5em;
}
.ol-control button:hover,
.ol-control button:focus {
text-decoration: none;
background-color: rgba(0,60,136,0.7);
}
.ol-zoom .ol-zoom-in {
border-radius: 2px 2px 0 0;
}
.ol-zoom .ol-zoom-out {
border-radius: 0 0 2px 2px;
}
.ol-attribution {
text-align: right;
bottom: .5em;
right: .5em;
max-width: calc(100% - 1.3em);
display: flex;
flex-flow: row-reverse;
align-items: center;
}
.ol-attribution a {
color: rgba(0,60,136,0.7);
text-decoration: none;
}
.ol-attribution ul {
margin: 0;
padding: 1px .5em;
color: #000;
text-shadow: 0 0 2px #fff;
font-size: 12px;
}
.ol-attribution li {
display: inline;
list-style: none;
}
.ol-attribution li:not(:last-child):after {
content: " ";
}
.ol-attribution img {
max-height: 2em;
max-width: inherit;
vertical-align: middle;
}
.ol-attribution button {
flex-shrink: 0;
}
.ol-attribution.ol-collapsed ul {
display: none;
}
.ol-attribution:not(.ol-collapsed) {
background: rgba(255,255,255,0.8);
}
.ol-attribution.ol-uncollapsible {
bottom: 0;
right: 0;
border-radius: 4px 0 0;
}
.ol-attribution.ol-uncollapsible img {
margin-top: -.2em;
max-height: 1.6em;
}
.ol-attribution.ol-uncollapsible button {
display: none;
}
.ol-zoomslider {
top: 4.5em;
left: .5em;
height: 200px;
}
.ol-zoomslider button {
position: relative;
height: 10px;
}
.ol-touch .ol-zoomslider {
top: 5.5em;
}
.ol-overviewmap {
left: 0.5em;
bottom: 0.5em;
}
.ol-overviewmap.ol-uncollapsible {
bottom: 0;
left: 0;
border-radius: 0 4px 0 0;
}
.ol-overviewmap .ol-overviewmap-map,
.ol-overviewmap button {
display: block;
}
.ol-overviewmap .ol-overviewmap-map {
border: 1px solid #7b98bc;
height: 150px;
margin: 2px;
width: 150px;
}
.ol-overviewmap:not(.ol-collapsed) button {
bottom: 2px;
left: 2px;
position: absolute;
}
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
.ol-overviewmap.ol-uncollapsible button {
display: none;
}
.ol-overviewmap:not(.ol-collapsed) {
background: rgba(255,255,255,0.8);
}
.ol-overviewmap-box {
border: 2px dotted rgba(0,60,136,0.7);
}
.ol-overviewmap .ol-overviewmap-box:hover {
cursor: move;
}
.layer-switcher {
position: absolute;
top: 3.5em;
right: 0.5em;
text-align: left;
}
.layer-switcher .panel {
margin: 0;
border: 4px solid #eee;
border-radius: 4px;
background-color: white;
display: none;
max-height: inherit;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
}
.layer-switcher button {
float: right;
z-index: 1;
width: 38px;
height: 38px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==')
/*logo.png*/;
background-repeat: no-repeat;
background-position: 2px;
background-color: white;
color: black;
border: none;
}
.layer-switcher button:focus,
.layer-switcher button:hover {
background-color: white;
}
.layer-switcher.shown {
overflow-y: hidden;
}
.layer-switcher.shown.ol-control {
background-color: transparent;
}
.layer-switcher.shown.ol-control:hover {
background-color: transparent;
}
.layer-switcher.shown .panel {
display: block;
}
.layer-switcher.shown button {
display: none;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
display: block;
background-image: unset;
right: 2px;
position: absolute;
background-color: #eee;
margin: 0 1px;
}
.layer-switcher.shown button:focus,
.layer-switcher.shown button:hover {
background-color: #fafafa;
}
.layer-switcher ul {
list-style: none;
margin: 1.6em 0.4em;
padding-left: 0;
}
.layer-switcher ul ul {
padding-left: 1.2em;
margin: 0.1em 0 0 0;
}
.layer-switcher li.group + li.group {
margin-top: 0.4em;
}
.layer-switcher li.group + li.layer-switcher-base-group {
}
.layer-switcher li.group > label {
font-weight: bold;
}
.layer-switcher.layer-switcher-group-select-style-none li.group > label {
padding-left: 1.2em;
}
.layer-switcher li {
position: relative;
margin-top: 0.3em;
}
.layer-switcher li input {
position: absolute;
left: 1.2em;
height: 1em;
width: 1em;
font-size: 1em;
}
.layer-switcher li label {
padding-left: 2.7em;
padding-right: 1.2em;
display: inline-block;
margin-top: 1px;
}
.layer-switcher label.disabled {
opacity: 0.4;
}
.layer-switcher input {
margin: 0px;
}
.layer-switcher.touch ::-webkit-scrollbar {
width: 4px;
}
.layer-switcher.touch ::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
}
.layer-switcher.touch ::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}
li.layer-switcher-base-group > label {
padding-left: 1.2em;
}
.layer-switcher .group button {
position: absolute;
left: 0;
display: inline-block;
vertical-align: top;
float: none;
font-size: 1em;
width: 1em;
height: 1em;
margin: 0;
background-position: center 2px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==');
-webkit-transition: -webkit-transform 0.2s ease-in-out;
-ms-transition: -ms-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
}
.layer-switcher .group.layer-switcher-close button {
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
}
.layer-switcher .group.layer-switcher-fold.layer-switcher-close > ul {
overflow: hidden;
height: 0;
}
/*layerswitcher on the right*/
.layer-switcher.shown.layer-switcher-activation-mode-click {
padding-left: 34px;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
left: 0;
border-right: 0;
}
/*layerswitcher on the left*/
/*
.layer-switcher.shown.layer-switcher-activation-mode-click {
padding-right: 34px;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
right: 0;
border-left: 0;
}
*/
/*!
* ol-geocoder - v4.3.1
* A geocoder extension compatible with OpenLayers v6.x, v7.x & v8.x
* https://github.com/Dominique92/ol-geocoder
* Built: 15/09/2023 16:57:43
*/
.ol-touch .ol-control.gcd-gl-control button {
font-size: 1.14em; }
.ol-touch .ol-geocoder.gcd-gl-container {
font-size: 1.1em; }
.ol-geocoder.gcd-gl-container {
position: absolute;
top: 4.875em;
left: .5em;
box-sizing: border-box;
font-size: 0.9em; }
.ol-geocoder.gcd-gl-container *,
.ol-geocoder.gcd-gl-container *::before,
.ol-geocoder.gcd-gl-container *::after {
box-sizing: inherit; }
.ol-geocoder .gcd-gl-control {
width: 2.1875em;
height: 2.1875em;
overflow: hidden;
transition: width 200ms, height 200ms; }
.ol-geocoder .gcd-gl-expanded {
width: 15.625em;
height: 2.1875em; }
.ol-geocoder .gcd-gl-input {
position: absolute;
z-index: 99;
top: 0.25em;
left: 2.5em;
width: 14.84375em;
padding: 5px;
border: 1px solid #ccc;
font-family: inherit;
font-size: 0.875em;
background-color: #fff;
color: #222; }
.ol-geocoder .gcd-gl-input:focus {
border: none;
outline: none;
box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 5px #4d90fe; }
.ol-geocoder .gcd-gl-search {
position: absolute;
z-index: 100;
top: 0;
right: 0;
width: 1.5625em;
height: 100%;
line-height: 1.4;
border: none;
background-color: transparent;
display: inline-block;
outline: 0;
cursor: pointer; }
.ol-geocoder .gcd-gl-search::after {
content: "\2386";
display: inline-block;
color: #333;
font-size: 1.5em;
cursor: pointer; }
.ol-geocoder .gcd-gl-btn {
position: absolute;
width: 1.5625em;
height: 1.5625em;
top: 0.125em;
left: 0.125em;
cursor: pointer; }
.ol-geocoder .gcd-gl-btn:after {
content: "\1F50D"; }
.ol-geocoder ul.gcd-gl-result {
position: absolute;
top: 2.1875em;
left: 2em;
width: 16.25em;
max-height: 18.75em;
white-space: normal;
list-style: none;
padding: 0;
margin: 0;
background-color: white;
border-radius: 4px;
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
overflow-x: hidden;
overflow-y: auto;
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
transition: max-height 300ms ease-in; }
.ol-geocoder ul.gcd-gl-result > li {
width: 100%;
overflow: hidden;
border-bottom: 1px solid #eee;
padding: 0;
line-height: 0.875rem; }
.ol-geocoder ul.gcd-gl-result > li > a {
display: block;
text-decoration: none;
padding: 3px 5px; }
.ol-geocoder ul.gcd-gl-result > li > a:hover {
background-color: #d4d4d4; }
.ol-geocoder ul.gcd-gl-result > li:nth-child(odd) {
background-color: #e0ffe0; }
.ol-geocoder ul.gcd-gl-result:empty {
display: none; }
.ol-geocoder.gcd-txt-container {
position: absolute;
width: 25em;
height: 4.375em;
top: .5em;
left: calc(50% - 12.5em);
box-sizing: border-box; }
.ol-geocoder.gcd-txt-container *,
.ol-geocoder.gcd-txt-container *::before,
.ol-geocoder.gcd-txt-container *::after {
box-sizing: inherit; }
.ol-geocoder .gcd-txt-control {
position: relative;
width: 100%;
height: 4.375em;
border: 1px solid #ccc;
background-color: #fff;
overflow: hidden; }
.ol-geocoder .gcd-txt-label {
display: inline-block;
width: 100%;
text-align: center; }
.ol-geocoder .gcd-txt-input {
position: absolute;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 5px 30px 5px 40px;
border: none;
text-indent: 6px;
background-color: transparent;
font-family: inherit;
font-size: 0.875em; }
.ol-geocoder .gcd-txt-input:focus {
outline: none;
box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 6px #4d90fe; }
.ol-geocoder .gcd-txt-search {
position: absolute;
z-index: 100;
top: 0;
right: 0;
width: 2.5em;
height: 100%;
line-height: 100%;
border: none;
background-color: transparent;
display: inline-block;
vertical-align: middle;
outline: 0;
cursor: pointer; }
.ol-geocoder .gcd-txt-search::after {
content: "\2386";
display: inline-block;
color: #333;
font-size: 2em;
cursor: pointer; }
.ol-geocoder .gcd-txt-glass {
position: absolute;
top: 26px;
left: 9px;
z-index: 100;
display: inline-block;
width: 2.5em;
height: 100%; }
.ol-geocoder .gcd-txt-glass:after {
content: "\1F50D"; }
.ol-geocoder ul.gcd-txt-result {
position: absolute;
top: 4.575em;
left: 0;
width: 25em;
max-height: 18.75em;
white-space: normal;
list-style: none;
padding: 0;
margin: 0;
background-color: white;
border-radius: 4px;
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
overflow-x: hidden;
overflow-y: auto;
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
transition: max-height 300ms ease-in; }
.ol-geocoder ul.gcd-txt-result > li {
width: 100%;
overflow: hidden;
border-bottom: 1px solid #eee;
padding: 0;
line-height: 0.875rem; }
.ol-geocoder ul.gcd-txt-result > li > a {
display: block;
text-decoration: none;
padding: 3px 5px; }
.ol-geocoder ul.gcd-txt-result > li > a:hover {
background-color: #d4d4d4; }
.ol-geocoder ul.gcd-txt-result > li:nth-child(odd) {
background-color: #e0ffe0; }
.ol-geocoder ul.gcd-txt-result:empty {
display: none; }
.ol-geocoder .gcd-hidden {
opacity: 0;
visibility: hidden; }
.ol-geocoder .gcd-pseudo-rotate::after {
animation: spin .7s linear infinite; }
@keyframes spin {
from {
transform: rotate(0deg); }
to {
transform: rotate(360deg); } }
.gcd-address {
font-size: 0.875em;
font-weight: 500;
color: #333; }
.gcd-road {
font-size: 0.875em;
font-weight: 500;
color: #333; }
.gcd-city {
font-size: 0.75em;
font-weight: normal;
color: #333; }
.gcd-country {
font-size: 0.75em;
font-weight: lighter;
color: #333; }
.ol-geolocate.ol-control {
top: 0.5em;
left: 3em;
}
.ol-geolocate.ol-control button {
display: inline-block;
}
.ol-geolocate.ol-control button.enable {
text-decoration: none;
background-color: #4c6079;
background-color: rgba(0, 60, 136, 0.7);
}
.ol-geolocate.ol-control.active button {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.ol-geolocate.ol-control button svg {
pointer-events: none;
}
.ol-popup {
display: none;
position: absolute;
background-color: white;
padding: 15px 25px 15px 15px;
border: 1px solid #cccccc;
bottom: 12px;
left: -50px;
}
.ol-popup:after, .ol-popup:before {
top: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.ol-popup:after {
border-top-color: white;
border-width: 10px;
left: 48px;
margin-left: -10px;
}
.ol-popup:before {
border-top-color: #cccccc;
border-width: 11px;
left: 48px;
margin-left: -11px;
}
.ol-popup-content {
min-width: 170px;
max-height: 200px;
overflow-x: auto;
}
.ol-popup-closer {
position: absolute;
top: 2px;
right: 2px;
font-size: 150%;
padding: 0 4px;
color: gray;
text-decoration: none;
}
.ol-popup-closer:after {
content: "\2716";
}
.ol-popup div.infoResult {
min-width: 130px;
}
.ol-popup div.infoResult p {
padding: 0.1em;
margin: 0;
}
.ol-popup-content h3 {
margin: 0.25em 0;
}
.ol-popup.marker {
margin-bottom: 30px;
}
/* Control color. */
:root {
--farmos-map-accent-color: green;
}
.ol-control {
background-color: rgba(255, 255, 255, 0.25);
}
.ol-control svg {
fill: var(--farmos-map-accent-color);
}
.ol-control button {
color: var(--farmos-map-accent-color);
background-color: rgba(255, 255, 255, 0.8);
}
.ol-control button:hover,
.ol-control button:focus {
background-color: rgba(255, 255, 255, 1);
}
.ol-scale-line {
background: rgba(255, 255, 255, 0.25);
}
/* Control backgrounds. */
.ol-geocoder .gcd-gl-btn {
background-image: none;
}
.ol-geocoder .gcd-gl-btn::after {
content: '\1f50d';
}
.layer-switcher > button {
background-size: 1.5em 1.5em;
}
/* Control sizing. */
.ol-control button,
.ol-geocoder .gcd-gl-btn {
height: 1.75em;
width: 1.75em;
}
.ol-geocoder .gcd-gl-control {
width: 2.4em;
height: 2.4em;
font-size: 1.14em;
}
.ol-geocoder .gcd-gl-expanded {
width: 16em;
height: 2.4em;
}
.ol-geocoder .gcd-gl-input {
height: 2.4em;
top: 0.125em;
left: 3em;
}
/* Control positioning. */
.ol-geolocate.ol-control {
left: 3.5em;
}
.ol-geocoder.gcd-gl-container {
top: 0.5em;
left: 7em;
}
.ol-edit.ol-control {
top: 4.75em;
}
.ol-rotate.ol-control {
right: 3.5em;
}
.layer-switcher {
top: 3.5em;
}
.layer-switcher.shown {
max-height: 300px;
}
/* Popup styles. */
.ol-popup {
padding: 0.75em;
}
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see farmOS-map.js.LICENSE.txt */
(()=>{var t,e,n,i,r={3965:function(t,e,n){t.exports=function(t,e,n,i,r,o,s,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=l(t),c=l(e),h=l(n),p=l(i),f=l(r),d=l(o),g=l(s),_=function(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}(a),y="gcd-container",v="gcd-button-control",m="gcd-input-query",x="gcd-input-label",E="gcd-input-search",C={namespace:"ol-geocoder",spin:"gcd-pseudo-rotate",hidden:"gcd-hidden",address:"gcd-address",country:"gcd-country",city:"gcd-city",road:"gcd-road",olControl:"ol-control",glass:{container:"gcd-gl-container",control:"gcd-gl-control",button:"gcd-gl-btn",input:"gcd-gl-input",expanded:"gcd-gl-expanded",search:"gcd-gl-search",result:"gcd-gl-result"},inputText:{container:"gcd-txt-container",control:"gcd-txt-control",label:"gcd-txt-label",input:"gcd-txt-input",search:"gcd-txt-search",icon:"gcd-txt-glass",result:"gcd-txt-result"}},w={containerId:y,buttonControlId:v,inputQueryId:m,inputLabelId:x,inputSearchId:E,cssClasses:C};const T=Object.freeze({__proto__:null,containerId:y,buttonControlId:v,inputQueryId:m,inputLabelId:x,inputSearchId:E,cssClasses:C,default:w}),S="addresschosen",O="nominatim",b="reverse",R="glass-button",P="osm",I={provider:P,label:"",placeholder:"Search for an address",featureStyle:null,targetType:R,lang:"en-US",limit:5,keepOpen:!1,preventDefault:!1,preventPanning:!1,preventMarker:!1,defaultFlyResolution:10,debug:!1};function L(t,e="Assertion failed"){if(!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function M(t){const e=function(){if("performance"in window==0&&(window.performance={}),"now"in window.performance==0){let t=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),window.performance.now=()=>Date.now()-t}return window.performance.now()}().toString(36);return t?t+e:e}function A(t){return/^\d+$/u.test(t)}function Z(t,e,n){if(Array.isArray(t))return void t.forEach((t=>Z(t,e)));const i=Array.isArray(e)?e:e.split(/\s+/u);let r=i.length;for(;r--;)N(t,i[r])||j(t,i[r],n)}function F(t,e,n){if(Array.isArray(t))return void t.forEach((t=>F(t,e,n)));const i=Array.isArray(e)?e:e.split(/\s+/u);let r=i.length;for(;r--;)N(t,i[r])&&G(t,i[r],n)}function N(t,e){return t.classList?t.classList.contains(e):D(e).test(t.className)}function k(t,e){let n;if(Array.isArray(t)){if(n=document.createElement(t[0]),t[1].id&&(n.id=t[1].id),t[1].classname&&(n.className=t[1].classname),t[1].attr){const{attr:e}=t[1];if(Array.isArray(e)){let t=-1;for(;++t<e.length;)n.setAttribute(e[t].name,e[t].value)}else n.setAttribute(e.name,e.value)}}else n=document.createElement(t);n.innerHTML=e;const i=document.createDocumentFragment();for(;n.childNodes[0];)i.append(n.childNodes[0]);return n.append(i),n}function D(t){return new RegExp(`(^|\\s+) ${t} (\\s+|$)`,"u")}function j(t,e,n){t.classList?t.classList.add(e):t.className=`${t.className} ${e}`.trim(),n&&A(n)&&window.setTimeout((()=>G(t,e)),n)}function G(t,e,n){t.classList?t.classList.remove(e):t.className=t.className.replace(D(e)," ").trim(),n&&A(n)&&window.setTimeout((()=>j(t,e)),n)}const X=T.cssClasses;class Y{constructor(t){this.options=t,this.els=this.createControl()}createControl(){let t,e,n;return"text-input"===this.options.targetType?(e=`${X.namespace} ${X.inputText.container}`,t=k(["div",{id:T.containerId,classname:e}],Y.input),n={container:t,control:t.querySelector(`.${X.inputText.control}`),label:t.querySelector(`.${X.inputText.label}`),input:t.querySelector(`.${X.inputText.input}`),search:t.querySelector(`.${X.inputText.search}`),result:t.querySelector(`.${X.inputText.result}`)},n.label.innerHTML=this.options.label):(e=`${X.namespace} ${X.glass.container}`,t=k(["div",{id:T.containerId,classname:e}],Y.glass),n={container:t,control:t.querySelector(`.${X.glass.control}`),button:t.querySelector(`.${X.glass.button}`),input:t.querySelector(`.${X.glass.input}`),search:t.querySelector(`.${X.glass.search}`),result:t.querySelector(`.${X.glass.result}`)}),n.input.placeholder=this.options.placeholder,n}}function U(t){return new Promise(((e,n)=>{const i=function(t,e){return e&&"object"==typeof e&&(t+=(/\?/u.test(t)?"&":"?")+W(e)),t}(t.url,t.data);t.jsonp?function(t,e,n){const{head:i}=document,r=document.createElement("script"),o=`f${Math.round(Math.random()*Date.now())}`;r.setAttribute("src",`${t+(t.indexOf("?")>0?"&":"?")+e}=${o}`),window[o]=t=>{window[o]=void 0,setTimeout((()=>i.removeChild(r)),0),n(t)},i.append(r)}(i,t.callbackName,e):fetch(i,{method:"GET",mode:"cors",credentials:"same-origin"}).then((t=>t.json())).then(e).catch(n)}))}function W(t){return Object.keys(t).reduce(((e,n)=>(e.push("object"==typeof t[n]?W(t[n]):`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`),e)),[]).join("&")}Y.glass=`\n <div class=" Line truncated
@@ -0,0 +1,8 @@
/*!
* ol-geocoder - v4.3.1
* A geocoder extension compatible with OpenLayers v6.x, v7.x & v8.x
* https://github.com/Dominique92/ol-geocoder
* Built: 15/09/2023 16:57:41
*/
/*! farmOS-map 2.3.0 */