diff --git a/g3w-admin/client/static/client/js/app.min.js b/g3w-admin/client/static/client/js/app.min.js index 18d8cb82d..9e754f614 100644 --- a/g3w-admin/client/static/client/js/app.min.js +++ b/g3w-admin/client/static/client/js/app.min.js @@ -1,2 +1,2 @@ -!function n(a,i,o){function s(t,e){if(!i[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=i[t]={exports:{}},a[t][0].call(r.exports,function(e){return s(a[t][1][e]||e)},r,r.exports,n,a,i,o)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e=",lte:"<=",NOT:"!=",eq:"=",gt:">",lt:"<",IN:"IN",LIKE:"LIKE",ILIKE:"ILIKE",AND:"AND",OR:"OR"}),n=r.FILTER_EXPRESSION_OPERATORS=n({lte:"<=",ltgt:"!=",ilike:"ILIKE",like:"LIKE"},o),s=r.GEOMETRY_FIELDS=["geometryProperty","boundedBy","geom","the_geom","geometry","bbox","GEOMETRY","geoemtria","geometria"],l=r.GEOMETRY_TYPES={POINT:"Point",POINTZ:"PointZ",POINTM:"PointM",POINTZM:"PointZM",POINT25D:"Point25D",MULTIPOINT:"MultiPoint",MULTIPOINTZ:"MultiPointZ",MULTIPOINTM:"MutliPointM",MULTIPOINTZM:"MultiPointZM",MULTIPOINT25D:"MultiPoint25D",LINESTRING:"LineString",LINESTRINGZ:"LineStringZ",LINESTRINGM:"LineStringM",LINESTRINGZM:"LineStringZM",LINESTRING25D:"LineString25D",LINE:"Line",LINEZ:"LineZ",LINEM:"LineM",LINEZM:"LineZM",LINE25D:"Line25D",MULTILINESTRING:"MultiLineString",MULTILINESTRINGZ:"MultiLineStringZ",MULTILINESTRINGM:"MultiLineStringM",MULTILINESTRINGZM:"MultiLineStringZM",MULTILINESTRING25D:"MultiLineString25D",MULTILINE:"MultiLine",MULTILINEZ:"MultiLineZ",MULTILINEM:"MultiLineM",MULTILINEZM:"MultiLineZM",MULTILINE25D:"MultiLine25D",POLYGON:"Polygon",POLYGONZ:"PolygonZ",POLYGONM:"PolygonM",POLYGONZM:"PolygonZM",POLYGON25D:"Polygon25D",MULTIPOLYGON:"MultiPolygon",MULTIPOLYGONZ:"MultiPolygonZ",MULTIPOLYGONM:"MultiPolygonM",MULTIPOLYGONZM:"MultiPolygonZM",MULTIPOLYGON25D:"MultiPolygon25D",GEOMETRYCOLLECTION:"GeometryCollection",GEOMETRYCOLLECTIONZ:"GeometryCollectionZ",GEOMETRYCOLLECTIONM:"GeometryCollectionM",GEOMETRYCOLLECTIONZM:"GeometryCollectionZM",GEOMETRYCOLLECTION25D:"GeometryCollection25D"},u=(r.LIST_OF_RELATIONS_TITLE="info.list_of_relations",r.LIST_OF_RELATIONS_ID="__G3W_LIST_OF_RELATIONS_ID__",r.LOCALSTORAGE_EXTERNALWMS_ITEM="externalwms",r.MAP_SETTINGS={ZOOM:{maxScale:1e3},ANIMATION:{duration:2e3},LAYER_POSITIONS:{default:"top",getPositions:function(){return["top","bottom"]}}}),c=r.PRINT_FORMATS=[{value:"png",label:"PNG"},{value:"jpg",label:"JPG"},{value:"svg",label:"SVG"},{value:"pdf",label:"PDF"},{value:"geopdf",label:"GEOPDF"}],d=r.PRINT_RESOLUTIONS=[150,300],p=r.PRINT_SCALES=[{value:100,label:"1:100"},{value:200,label:"1:200"},{value:500,label:"1:500"},{value:1e3,label:"1:1.000"},{value:2e3,label:"1:2.000"},{value:2500,label:"1:2.500"},{value:5e3,label:"1:5.000"},{value:1e4,label:"1:10.000"},{value:2e4,label:"1:20.000"},{value:25e3,label:"1:25.000"},{value:5e4,label:"1:50.000"},{value:1e5,label:"1:100.000"},{value:25e4,label:"1:250.000"},{value:5e5,label:"1:500.000"},{value:1e6,label:"1:1.000.000"},{value:25e5,label:"1:2.500.000"},{value:5e6,label:"1:5.000.000"},{value:1e7,label:"1:10.000.000"},{value:2e7,label:"1:20.000.000"},{value:5e7,label:"1:50.000.000"},{value:1e8,label:"1:100.000.000"},{value:25e7,label:"1:250.000.000"},{value:5e8,label:"1:500.000.000"}],f=r.QUERY_POINT_TOLERANCE={unit:"pixel",value:10},h=(r.SEARCH_ALLVALUE="__G3W_ALL__",r.SEARCH_RETURN_TYPES=["data","search"]),g=(r.TIMEOUT=6e4,r.TOC_LAYERS_INIT_STATUS="not_collapsed",r.TOC_THEMES_INIT_STATUS="collapsed",r.VIEWPORT={resize:{map:{min:200},content:{min:200}}}),v=r.ZINDEXES={usermessage:{tool:2}},y=r.API_BASE_URLS={ABOUT:{macrogroups:"/about/api/macrogroup/",nomacrogoups:"/about/api/group/nomacrogroup/",projects:"/about/api/group/__G3W_GROUP_ID__/projects/",group:"/about/api/group/"},CRS:"/crs/"},m=r.FONT_AWESOME_ICONS={"change-map":"fas fa-map-signs",map:"far fa-map",file:"fas fa-file-code",marker:"fas fa-map-marker-alt",relation:"fas fa-sitemap",tools:"fas fa-cogs",tool:"fas fa-cog",search:"fas fa-search",print:"fas fa-print",info:"fas fa-info-circle","info-circle":"fas fa-info-circle",globe:"fas fa-globe",mail:"fas fa-envelope",mobile:"fas fa-mobile",fax:"fas fa-fax",user:"fas fa-user",bars:"fas fa-bars",uncheck:"far fa-square",check:"far fa-check-square",checkmark:"fa fa-check",filluncheck:"fas fa-square",table:"fas fa-table",trash:"fas fa-trash","trash-o":"far fa-trash-alt",pencil:"fas fa-pencil-alt","ellips-h":"fas fa-ellipsis-h","ellips-v":"fas fa-ellipsis-v","arrow-up":"fas fa-chevron-up","arrow-down":"fas fa-chevron-down","arrow-left":"fas fa-chevron-left","arrow-right":"fas fa-chevron-right","resize-h":"fas fa-arrows-alt-h","resize-v":"fas fa-arrows-alt-v","resize-default":"fas fa-compress","caret-up":"fas fa-caret-up","caret-down":"fas fa-caret-down","caret-left":"fas fa-caret-left","caret-right":"fas fa-caret-right","empty-circle":"far fa-circle","cloud-upload":"fas fa-cloud-upload-alt",spinner:"fas fa-spinner",minus:"fas fa-minus","minus-square":"far fa-minus-square",plus:"fas fa-plus","plus-circle":"fas fa-plus-circle","plus-square":"far fa-plus-square",grid:"fas fa-th",home:"fas fa-home",folder:"fas fa-folder","sign-out":"fas fa-sign-out-alt",close:"fas fa-times",time:"far fa-clock",calendar:"fas fa-calendar-alt",list:"fas fa-list-alt",link:"fas fa-link",unlink:"fas fa-unlink",eye:"far fa-eye","eye-close":"far fa-eye-slash",save:"far fa-save",pdf:"fas fa-file-pdf",image:"far fa-image",video:"far fa-file-video",unknow:"far fa-question-circle",zip:"far fa-file-archive",text:"far fa-file-alt",excel:"far fa-file-excel",xls:"far fa-file-excel",gpx:"fas fa-location-arrow",gpkg:"fas fa-box-open",shapefile:"fas fa-file-archive",csv:"fas fa-file-csv",geotiff:"fas fa-th",ppt:"far fa-file-powerpoint",circle:"fas fa-circle",calculator:"fas fa-calculator",picture:"far fa-image",keyboard:"far fa-keyboard","file-download":"fas fa-file-download",copy:"far fa-copy",draw:"fas fa-draw-polygon",chart:"fas fa-chart-bar","chart-line":"fas fa-chart-line","chart-area":"fas fa-chart-area","chart-pie":"fas fa-chart-pie",run:"fas fa-play",warning:"fas fa-exclamation-circle",alert:"fas fa-exclamation-triangle",crosshairs:"fas fa-crosshairs",success:"far fa-check-circle",back:"fas fa-chevron-circle-left","file-upload":"fas fa-file-upload",wifi:"fas fa-wifi",mouse:"fas fa-mouse","copy-paste":"far fa-copy","vector-square":"fas fa-vector-square",download:"fas fa-download",credits:"fas fa-euro-sign",filter:"fas fa-filter",plugin:"fas fa-plug",invert:"fas fa-exchange-alt",clear:"fas fa-broom",palette:"fas fa-palette",layers:"fas fa-layer-group","sign-in":"fas fa-sign-in-alt",language:"fas fa-language",target:"fas fa-bullseye",pin:"fas fa-map-pin",square:"far fa-square",move:"fas fa-arrows-alt",moon:"fas fa-moon",sun:"fas fa-sun",refresh:"fas fa-sync-alt",pause:"fas fa-pause","step-backward":"fas fa-step-backward","fast-backward":"fas fa-fast-backward","step-forward":"fas fa-step-forward","fast-forward":"fas fa-fast-forward",crop:"fas fa-crop-alt",exit:"fas fa-door-open",slider:"fas fa-sliders-h",bookmark:"fas fa-bookmark",reply:"fas fa-reply",share:"fas fa-share","share-alt":"fa fa-share-alt","external-link":"fa fa-external-link-alt",pointer:"fa fa-hand-pointer",camera:"fas fa-camera-retro",measure:"fas fa-ruler-horizontal"},_=r.LOCAL_ITEM_IDS={MESSAGES:{id:"MESSAGES",value:{}},SPATIALBOOKMARKS:{id:"SPATIALBOOKMARKS",value:{}}},b=(r.LOGO_GIS3W="images/logo_gis3w_156_85.png",r.SPATIAL_METHODS=["intersects","within"]),w=(r.DOTS_PER_INCH=96,r.INCHES_PER_UNIT={m:39.37,degrees:4374754});r.SELECTION={ALL:"__ALL__",EXCLUDE:"__EXCLUDE__"};r.default={APP_VERSION:e,API_BASE_URLS:y,DEFAULT_EDITING_CAPABILITIES:a,DOTS_PER_INCH:96,DOWNLOAD_FORMATS:i,FILTER_OPERATORS:o,FILTER_EXPRESSION_OPERATORS:n,FONT_AWESOME_ICONS:m,G3W_FID:"g3w_fid",GEOMETRY_FIELDS:s,GEOMETRY_TYPES:l,INCHES_PER_UNIT:w,LIST_OF_RELATIONS_TITLE:"info.list_of_relations",LIST_OF_RELATIONS_ID:"__G3W_LIST_OF_RELATIONS_ID__",LOCAL_ITEM_IDS:_,LOCALSTORAGE_EXTERNALWMS_ITEM:"externalwms",LOGO_GIS3W:"images/logo_gis3w_156_85.png",MAP_SETTINGS:u,PRINT_FORMATS:c,PRINT_RESOLUTIONS:d,PRINT_SCALES:p,QUERY_POINT_TOLERANCE:f,SEARCH_ALLVALUE:"__G3W_ALL__",SEARCH_RETURN_TYPES:h,SPATIAL_METHODS:b,TIMEOUT:6e4,TOC_LAYERS_INIT_STATUS:"not_collapsed",TOC_THEMES_INIT_STATUS:"collapsed",VIEWPORT:g,ZINDEXES:v}},{"../version":406}],6:[function(e,t,r){function n(){this._error=(0 "+t+" "):$(t):t,$(this._parent).append(r),o.push({content:r,options:e}),i.resolve()):t.mount&&"function"==typeof t.mount?(-1!==(n=o.findIndex(function(e){return e.content.getId&&t.getId()===e.content.getId()}))&&o[n].content.unmount().then(function(){return o.splice(n,1)}),t.mount(this._parent,e.append||!1).then(function(){$(a._parent).localize(),o.push({content:t,options:e}),i.resolve(t)})):(this._parent.appendChild(t),o.push({content:t,options:e}),i.resolve()),i.promise()}},{key:"_unmount",value:function(e){var t=$.Deferred();return e instanceof o.default||e instanceof i.default?e.unmount().then(function(){return t.resolve()}):($(this._parent).empty(),t.resolve()),t.promise()}},{key:"forEach",value:function(t){this.state.contentsdata.forEach(function(e){return t(e.content)})}},{key:"getLength",value:function(){return this.state.contentsdata.length}},{key:"getComponentById",value:function(t){return(this.getContentData().find(function(e){return t==e.content.id})||{}).content}}]),r}(e.default)},{"core/g3w-component":8,"core/g3w-panel":10,"core/g3wobject":11}],8:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var r=t,n=[],a=!0,t=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!r||n.length!==r);a=!0);}catch(e){t=!0,i=e}finally{try{!a&&s.return&&s.return()}finally{if(t)throw i}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r=this.state.maxscale&&e<=this.state.minscale)}},{key:"getStyles",value:function(){return(this.config.source.external?this.config.source:this.config).styles}},{key:"getStyle",value:function(){return this.config.source.external?this.config.source.styles:this.config.styles?this.config.styles.find(function(e){return e.current}).name:""}},{key:"getOpacity",value:function(){return this.state.opacity}},{key:"setCurrentStyle",value:function(t){var r=!1;return this.config.styles.forEach(function(e){e.name===t&&(r=!e.current),e.current=e.name===t}),r}},{key:"getCurrentStyle",value:function(){return this.config.styles.find(function(e){return e.current})}},{key:"setDisabled",value:function(e){if(this.state.scalebasedvisibility){for(var t=(0,u.getScaleFromResolution)(e,1=this.state.maxscale&&t<=this.state.minscale),this.state.disabled=0===this.state.minscale?!(t>=this.state.maxscale):this.state.disabled,!0),n=this.state.parentGroup;n;)r=r&&n.checked,n=n.parentGroup;r&&this.setVisible(!this.state.disabled),this.isFilterable()&&this.setTocHighlightable(!this.state.disabled)}else this.state.disabled=!1}},{key:"getMultiLayerId",value:function(){return this.config.multilayerid}},{key:"getGeometryType",value:function(){return this.config.geometrytype}},{key:"getOwsMethod",value:function(){return this.config.ows_method}},{key:"setProjection",value:function(){this.config.projection=s.default.get(0\n \n "}))).$mount().$el),(n=u(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e)))._options=e,n.cursorClass=e.cursorClass,n._originalonlick=null,n._onclick=e.onclick,n._enabled=e.enabled,n.offline=void 0===e.offline||e.offline,n.name=t,n.id=n.name+"_"+Math.floor(1e6*Math.random()),n.eventKeys={},n.positionCode=e.position||"tl",n.priority=e.priority||0,$(e.element).on("click",function(e){return n._handleClick(e)}),n.setVisible(e.visible),n._options.postRender&&n._options.postRender.call(n),n._toggled=!1,n._toggled=!1,n._interactionClassOptions=e.interactionClassOptions,e.interactionClass&&n.initInteraction(e),u(n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(a,[{key:"setMouseCursor",value:function(e){var t=1t&&(e=$(this).position().left,r>$(this).outerWidth()&&(t+=r-$(this).outerWidth()),$(this).css("left",t+"px"),t=e,r=$(this).outerWidth())}),$(this.element).hide()}},{key:"setEnable",value:function(e){$(this.element).find("button").first().toggleClass("g3w-ol-disabled",!e),!e&&this._interaction&&this._interaction.setActive(!1),this._enabled=e}},{key:"getEnable",value:function(){return this._enabled}},{key:"setVisible",value:function(){var e=!(0\n \n ',data:function(){return{methods:o.SPATIAL_METHODS,method:t.getSpatialMethod()}},watch:{method:function(e){return t.setSpatialMethod(e)}},created:function(){s.default.setCloseUserMessageBeforeSetContent(!1)},beforeDestroy:function(){s.default.setCloseUserMessageBeforeSetContent(!0)}};break;case"custom":this.toggledTool=e.component}"how"===e.how&&this._onhover&&(this._toolButton=$(''),$(this.element).prepend(this._toolButton),this._toolButton.on("click",function(e){e.stopPropagation(),t.showToggledTool(!0)}),$(this.element).hover(function(){return t._toggled&&t._toolButton.show()}),$(this.element).mouseleave(function(){return t._toolButton.hide()}))}},{key:"showToggledTool",value:function(){!(0\n \n ',watch:{type:function(e,t){r.interactions[t].setActive(!1),r.interactions[t].clear(),r.getMap().removeInteraction(r.interactions[t]),r.getMap().addInteraction(r.interactions[e]),r.interactions[e].setActive(!0),r._interaction=r.interactions[e]}},created:function(){l.default.setCloseUserMessageBeforeSetContent(!1)},beforeDestroy:function(){l.default.setCloseUserMessageBeforeSetContent(!0)}}})}}]),m);function m(){var e=0\n \x3c!-- DOCS URL --\x3e\n \n \n \n \x3c!-- SPATIAL METHOD --\x3e\n
\n \n
\n \x3c!-- QUERY TYPE --\x3e\n
\n \n
\n \x3c!-- RADIUS TYPE --\x3e\n
\n \n \n
\n \x3c!-- SELECTED LAYER --\x3e\n
\n \n \n
\n \x3c!-- HELP TEXT --\x3e\n
\n \x3c!-- CLEAR SELECTION --\x3e\n \n ',computed:{control:function(){return w[this.type]},queryable:function(){var t=this;return(this.control.layers||[]).filter(function(e){return"querybypolygon"!==t.type||b.includes(e.getGeometryType())})},no_layers:function(){return!this.queryable||!E(this.control)},help:function(){return"sdk.mapcontrols."+this.type+".help.message"},all:function(){return this.no_layers?"sdk.mapcontrols.queryby.none":"sdk.mapcontrols.queryby.all"},radius:{get:function(){return k.querybycircle.radius},set:function(e){Number.isNaN(e)||e<0?this.radius=k.querybycircle.radius:(k.querybycircle.radius=Math.floor(e),x.dfeature&&0  '+e.text+""):e.text},templateLayer:function(t){var e;return t.id&&"__NEW__"!==t.id?(e=u.default.getService("map").getLegacyExternalLayers(),e=l.default.getLayerById(t.id)||e.find(function(e){return e.get("id")===t.id}),e="__ALL__"!==t.id&&e?'  ':"",$(""+e+t.text+"")):t.text}},mounted:function(){w.queryby.usermessage=this,u.default.setCloseUserMessageBeforeSetContent(!1),this.reset()},beforeDestroy:function(){u.default.setCloseUserMessageBeforeSetContent(!0),r.types.forEach(function(e){w[e].toggle(!1),w[e].autorun=!1,w.queryby.element.classList.toggle("ol-"+e,e===r.types[0]),w[e].layers.forEach(function(e){return e.setTocHighlightable(!1)})})}}}})}),r;throw new TypeError("Cannot call a class as a function")}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e),n(a,[{key:"addType",value:function(i){var e,r=this;this.types.includes(i)||(this.types.splice(this.types.includes("querybypolygon")?this.types.indexOf("querybypoyling"):this.types.length,0,i),e=w[i]=new p.InteractionControl({name:i,offline:!1,visible:!1,geometryTypes:["querybypolygon","querybydrawpolygon"].includes(i)?b:[],interactionClass:{querybbox:ol.interaction.DragBox,querybycircle:ol.interaction.Draw,querybydrawpolygon:ol.interaction.Draw,querybypolygon:m}[i],interactionClassOptions:["querybydrawpolygon","querybycircle"].includes(i)?{type:"querybydrawpolygon"===i?"Polygon":"Circle"}:{},layers:T(i),onSetMap:function(e){var t,r,n=this,a=e.setter;e.map;"after"===a&&("querybbox"===i&&(t=null,this._interaction.on("boxstart",function(e){return t=e.coordinate}),this._interaction.on("boxend",(0,f.throttle)(function(e){x.bbox=ol.extent.boundingExtent([t,e.coordinate]),n.dispatchEvent({type:"bboxend",extent:x.bbox}),t=null,n._autountoggle&&n.toggle()})),this.setEventKey({eventType:"bboxend",eventKey:this.on("bboxend",function(){return w.queryby.runSpatialQuery("querybbox")})})),"querybycircle"===i&&this._interaction.on("drawstart",function(e){var t=e.feature.getGeometry();t.setRadius(k.querybycircle.radius),t.on("change",function(){return k.querybycircle.radius=t.getRadius()}),0\n \n \n ',methods:{download:(t=p(function*(e){var t=l.default.getService("map"),r=s.default.setDownload(!0);e.target.disabled=!0;try{var n=yield t.createMapImage();"screenshot"===this.type?window.saveAs(n,"map_"+Date.now()+".png"):window.saveAs(yield(0,c.getGeoTIFFfromServer)({url:"/"+t.project.getType()+"/api/asgeotiff/"+t.project.getId()+"/",method:"POST",params:{image:n,csrfmiddlewaretoken:t.getCookie("csrftoken"),bbox:t.getMapBBOX().toString()}}),"map_"+Date.now()+".tif")}catch(e){l.default.showUserMessage({type:"SecurityError"===err.name?"warning":"alert",message:"SecurityError"===err.name?"mapcontrols.screenshot.securityError":"mapcontrols.screenshot.error",autoclose:!1})}return s.default.setDownload(!1,r),!(e.target.disabled=!1)}),function(e){return t.apply(this,arguments)})},created:function(){l.default.setCloseUserMessageBeforeSetContent(!1)},beforeDestroy:function(){l.default.setCloseUserMessageBeforeSetContent(!0)}}})}},{key:"_addLayer",value:function(e){var t=this;this.layers.push(e),this.change(this.layers),e.on("change:visible",function(){return t.change(t.layers)})}},{key:"_removeLayer",value:function(t){this.layers=this.layers.filter(function(e){return e!==t}),this.change(this.layers)}},{key:"change",value:function(){this.setVisible(this.checkVisible(0n._map.getSize()[0]||r[1]+15>n._map.getSize()[1]||r[0]<15||r[1]<15)&&n._map.getView().setCenter(e)}),e&&e.location&&(n._panorama.setPov({pitch:0,heading:0}),n._panorama.setPosition(e.location.latLng))}).then(function(e){void 0===e&&l.default.closeContent()}).catch(function(){return t.toggle()})}},{key:"setMap",value:function(e){var t=this;this._map=e,p.InteractionControl.prototype.setMap.call(this,e),this.setProjection(this._map.getView().getProjection()),this._map.addLayer(this._layer),this._interaction.on("picked",function(e){e=e.coordinate;t.showStreetView(e),t._autountoggle&&t.toggle()})}},{key:"showStreetView",value:function(e){var t=ol.proj.transform(e,this._map.getView().getProjection().getCode(),"EPSG:4326"),t=n(t,2),r=t[0],t=t[1];this.key?(l.default.setContent({title:"StreetView",content:new c.default({internalComponent:new(Vue.extend(u))({keyError:this.keyError})})}),this.keyError||this.setPosition({lng:r,lat:t})):(this._streetViewFeature.setGeometry(new ol.geom.Point(e)),window.open("https://www.google.com/maps/@?api=1&map_action=pano&viewpoint="+t+","+r))}},{key:"clearMarker",value:function(){this._streetViewFeature.setGeometry(null)}},{key:"clear",value:function(){this._layer.getSource().clear(),this._streetViewFeature.setGeometry(null),this.clearMarker(),this._panorama=null,this.active&&l.default.closeContent(),this.active=!1}},{key:"toggle",value:function(e){p.InteractionControl.prototype.toggle.call(this,e),this.isToggled()?this._layer.getSource().addFeatures([this._streetViewFeature]):this.clear()}}]),a}(p.InteractionControl);r.StreetViewControl=e},{"components/StreetView.vue":189,"core/g3w-component":8,"g3w-ol/controls/interactioncontrol":32,"g3w-ol/interactions/pickcoordinatesinteraction":39,"services/gui":253,"store/application-state":260,"utils/XHR":269}],38:[function(t,r,n){function o(e,t,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,t);return void 0!==n?"value"in n?n.value:void 0!==(n=n.get)?n.call(r):void 0:null!==(n=Object.getPrototypeOf(e))?o(n,t,r):void 0}var a=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r+this.state.tovalidate[e.validate.min_field].value:this.state.tovalidate[e.validate.max_field].validate.empty||+e.value<+this.state.tovalidate[e.validate.max_field].value,e.validate.valid&&(this.state.tovalidate[t].validate.valid=!0))}this.state.valid=Object.values(this.state.tovalidate).reduce(function(e,t){return e&&t.validate.valid},!0)&&Object.values(this.state.componentstovalidate).reduce(function(e,t){return e&&t},!0)},n.addComponents=function(){var e=0\n "+this.state.info+"\n \n "),this.state.validate.message=this.state.info||e):this.state.validate.message=this.state.info)},e.setUpdate=function(){var e=this.state,t=e.value,e=e._value;"media"===this.state.input.type&&"Object"!==i(t)&&"Object"!==i(e)?this.state.update=t.value!=e.value:"datetimepicker"===this.state.input.type?this.state.update=(null!==t?t.toUpperCase():t)!=(e&&e.toUpperCase()):this.state.update=t!=e},t.exports=s},{"core/i18n/i18n.service":12,utils:354,"utils/validators":403}],72:[function(e,t,r){e={text:e("./service"),textarea:e("./service"),texthtml:e("./service"),integer:e("./integer/service"),string:e("./service"),float:e("./float/service"),radio:e("./radio/service"),check:e("./checkbox/service"),range:e("./range/service"),datetimepicker:e("./datetimepicker/service"),unique:e("./unique/service"),select:e("./select/service"),media:e("./media/service"),select_autocomplete:e("./select/service"),picklayer:e("./service"),color:e("./service"),slider:e("./sliderrange/service"),lonlat:e("./lonlat/service")};t.exports=e},{"./checkbox/service":48,"./datetimepicker/service":51,"./float/service":53,"./integer/service":57,"./lonlat/service":59,"./media/service":61,"./radio/service":65,"./range/service":67,"./select/service":69,"./service":71,"./sliderrange/service":73,"./unique/service":78}],73:[function(e,t,r){var n=e("utils"),a=n.base,n=n.inherit,i=e("gui/inputs/service"),o=e("utils/validators");function s(){var e=0=this.state.input.options.min||this.state.value<=this.state.input.options.max}}n(s,i),s.prototype.changeInfoMessage=function(){this.state.info="[MIN: "+this.state.input.options.min+" - MAX: "+this.state.input.options.max+"]"},t.exports=s},{"gui/inputs/service":71,utils:354,"utils/validators":403}],74:[function(e,t,r){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("components/InputSliderRange.vue"));e=Vue.extend(e);t.exports=e},{"components/InputSliderRange.vue":146}],75:[function(e,t,r){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("components/InputText.vue"));e=Vue.extend(e);t.exports=e},{"components/InputText.vue":147}],76:[function(e,t,r){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("components/InputTextArea.vue"));e=Vue.extend(e);t.exports=e},{"components/InputTextArea.vue":148}],77:[function(e,t,r){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("components/InputTextHtml.vue"));e=Vue.extend(e);t.exports=e},{"components/InputTextHtml.vue":149}],78:[function(e,t,r){var n=e("utils"),a=n.inherit,i=n.base;function o(){i(this,0'+t+"":''+t+"");if(this.getMapLayers().forEach(function(e){return e.getSource().setAttributions(r)}),(r||(0,S.getMapLayersByFilter)({BASELAYER:!0}).length)&&this.getMap().addControl(new ol.control.Attribution({collapsible:!1,target:"map_footer_left"})),this.config&&this.config.mapcontrols)return e=Array.isArray(this.config.mapcontrols)?this.config.mapcontrols.reduce(function(e,t){return e[t]={},e},{}):this.config.mapcontrols,Object.entries(e).forEach(function(e){var r,n,t,a,e=p(e,2),i=e[0],e=e[1],o=void 0===e?{}:e;switch(i){case"zoom":s.createMapControl(i);break;case"zoombox":isMobile.any||s.createMapControl(i,{}).on("zoomend",function(e){return s.viewer.fit(e.extent)});break;case"zoomtoextent":s.createMapControl(i,{options:{label:"",extent:s.project.state.initextent}});break;case"mouseposition":isMobile.any||(r="degrees"===s.getProjection().getUnits(),n=s.getEpsg(),a=s.createMapControl(i,{add:!(t=function(e,t){return"EPSG:4326"===e?ol.coordinate.format(ol.proj.transform(t,n,"EPSG:4326")," Lng: {x}, Lat: {y}   [EPSG:4326] ",4):ol.coordinate.format(t," "+(r?"Lng":"X")+": {x}, "+(r?"Lat":"Y")+": {y}   ["+e+"] ",r?4:2)}),options:{coordinateFormat:t.bind(null,n),undefinedHTML:!1,projection:s.getCrs()}}),"EPSG:4326"!==n&&a.on("change:epsg",function(e){return a.setCoordinateFormat(t.bind(null,e.epsg))}));break;case"screenshot":case"geoscreenshot":isMobile.any||(s.getMapControlByType("screenshot")?s.getMapControlByType("screenshot").addType(i):s.createMapControl("screenshot",{options:{types:[i],layers:[].concat(F(A.layers.getLayers()),F(s._layers.external))}}));break;case"scale":s.createMapControl(i,{add:!1,options:{coordinateFormat:ol.coordinate.createStringXY(4),projection:s.getCrs(),isMobile:isMobile.any}});break;case"query":s.createMapControl(i,{add:!0,toggled:!0});break;case"querybypolygon":case"querybbox":case"querybycircle":case"querybydrawpolygon":isMobile.any||(s.getMapControlByType("queryby")?s.getMapControlByType("queryby").addType(i):s.createMapControl("queryby",{options:{types:[i]}}));break;case"streetview":s.createMapControl(i,{});break;case"scaleline":s.createMapControl(i,{add:!1,options:{position:"br"}});break;case"overview":!isMobile.any&&s.config.overviewproject&&s.config.overviewproject.gid&&y.default.getProject(s.config.overviewproject.gid).then(function(n){var r=s.getMap(),a=new ol.View(s._calculateViewOptions({project:n,width:200,height:150}));a.on("change:center",function(){var e=a.getCenter(),t=r.getView().constrainCenter(e);t[0]===e[0]&&t[1]===e[1]||a.setCenter(t)}),s.createMapControl(i,{add:!1,options:{view:a,position:"bl",collapsed:!1,className:"ol-overviewmap ol-custom-overviewmap",collapseLabel:$('')[0],label:$('')[0],layers:Object.entries(n.getLayersStore().getLayers({GEOLAYER:!0,BASELAYER:!1}).reduce(function(e,t){var r=t.getMultiLayerId();return void 0===e[r]&&(e[r]=[]),e[r].push(t),e},{})||[]).map(function(e){var e=p(e,2),t=e[0],e=e[1],r=new(c("core/layers/imagelayer").WMSLayer)({url:n.getWmsUrl(),id:"overview_layer_"+t,tiled:e[0].state.tiled});return e.reverse().forEach(function(e){return r.addLayer(e)}),r.getOLLayer(!0)}).reverse()}}),document.querySelector(".g3w-map-controls-left-bottom").style.left="230px",new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&(document.querySelector(".g3w-map-controls-left-bottom").style.left=e.target.classList.contains("ol-collapsed")?"50px":"230px")})}).observe(document.querySelector(".ol-custom-overviewmap"),{attributes:!0})});break;case"geocoding":case"nominatim":s.createMapControl(i,{add:!1,options:{config:o}});break;case"geolocation":s.createMapControl(i).on("click",(0,L.throttle)(function(e){return s.showMarker(e.coordinates)}));break;case"addlayers":isMobile.any||s.createMapControl(i,{}).on("addlayer",function(){return s.showAddLayerModal()});break;case"length":case"area":isMobile.any||(s.getMapControlByType("measure")?s.getMapControlByType("measure").addType(i):s.createMapControl("measure",{options:{name:"measure",tipLabel:"sdk.mapcontrols.measures.title",types:[i],interactionClassOptions:{projection:s.getProjection(),help:"sdk.mapcontrols.measures."+i+".help"}}}));break;case"zoomhistory":$(".g3w-map-controls-left-bottom").append(s.createMapControl(i,{add:!1}).element)}}),this.getMapControls()},addHideMap:function(){var e=(0'),this.viewer.map.getInteractions().forEach(function(e){return d._watchInteraction(e)}),this.viewer.map.getInteractions().on("add",function(e){return d._watchInteraction(e.element)}),this.viewer.map.getInteractions().on("remove",function(e){}),this._marker=new ol.Overlay({position:null,positioning:"center-center",element:document.getElementById("marker"),stopEvent:!1}),this.viewer.map.addOverlay(this._marker),this.viewer.map.getLayers().on("add",function(e){e=d.setLayerZIndex({layer:e.element,zindex:e.element.get("basemap")||"bottom"===e.element.get("position")?0:void 0});d.defaultsLayers.mapcenter&&d.defaultsLayers.mapcenter.setZIndex(e+1),d.defaultsLayers.highlightLayer&&d.defaultsLayers.highlightLayer.setZIndex(e+1),d.defaultsLayers.selectionLayer&&d.defaultsLayers.selectionLayer.setZIndex(e+2)}),this.viewer.map.getLayers().on("remove",function(e){e.element.getZIndex()===d.layersCount&&d.layersCount--}),this.state.bbox=this.getMapBBOX(),this.state.resolution=this.viewer.getResolution(),this.state.center=this.viewer.getCenter(),this._setupAllLayers(),this.setUpMapOlEvents(),A.layers.getLayersStores().forEach(this._setUpEventsKeysToLayersStore.bind(this)),A.layers.onafter("addLayersStore",this._setUpEventsKeysToLayersStore.bind(this)),A.layers.onafter("removeLayersStore",this._removeEventsKeysToLayersStore.bind(this)),this.emit("viewerset"),this.setupControls(),this.emit("ready"))}),function(e,t){return r.apply(this,arguments)}),controlClick:function(e){},loadExternalLayer:function(e){},unloadExternalLayer:function(e){}},t.on("extraParamsSet",t.onExtraParamsSet),t;throw new TypeError("Cannot call a class as a function")}return s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e),d(u,[{key:"onExtraParamsSet",value:function(t,e){var r=this;e&&this.getMapLayers().forEach(function(e){return e.update(r.state,t)})}},{key:"onSetCurrentProject",value:function(e){function t(){var e=n.viewer.map.getSize(),t=(e=p(e,2))[0],e=e[1],r=n.project.state.extent,t=ol.extent.getWidth(r)/t,e=ol.extent.getHeight(r)/e,t=Math.max(t,e)>n.viewer.map.getView().getMaxResolution()?Math.max(t,e):n.viewer.map.getView().getMaxResolution(),e=new ol.View({extent:r,projection:n.viewer.map.getView().getProjection(),center:n.viewer.map.getView().getCenter(),resolution:n.viewer.map.getView().getResolution(),maxResolution:t});g.MAP_SETTINGS.ZOOM.maxScale=Math.min((0,E.getScaleFromResolution)(n.getMap().getView().getResolutionForExtent(n.project.state.initextent,n.getMap().getSize()),n.getMapUnits()),g.MAP_SETTINGS.ZOOM.maxScale),n.viewer.map.setView(e),n._setupAllLayers(),n.setUpMapOlEvents(),n.setupCustomMapParamsToLegendUrl()}var n=this,r=(this.removeLayers(),this._keyEvents.base&&this.project.un("setBaseLayer",this._keyEvents.base),this.project.getId()===e.getId());this.project=e;(r||m.default.isIframe())&&t(),r||this.getMap().once("change:size",t)}},{key:"onLayerLoadStart",value:function(){0===this._howManyAreLoading&&(this.emit("loadstart"),b.default.showSpinner({container:$("#map-spinner"),id:"maploadspinner",style:"transparent"})),this._howManyAreLoading+=1}},{key:"onLayerLoadEnd",value:function(){--this._howManyAreLoading,0===this._howManyAreLoading&&(this.emit("loadend"),b.default.hideSpinner("maploadspinner"))}},{key:"onLayerLoadError",value:function(){this.project.state.show_load_layer_error&&(this.onLayerLoadError.shown||(b.default.notify.warning("sdk.errors.layers.load"),this.onLayerLoadError.shown=!0),this.onLayerLoadEnd())}},{key:"isReady",value:function(){return this._ready}},{key:"setUpMapOlEvents",value:function(){var e=this,t=this.project.getContextBaseLegend();this._keyEvents.ol.forEach(function(e){return ol.Observable.unByKey(e)}),this._keyEvents.ol.push(this.viewer.map.getView().on("change:resolution",function(){e.state.bbox=e.getMapBBOX(),e.state.resolution=e.viewer.getResolution(),e.state.center=e.viewer.getCenter(),e.updateMapLayers(),t&&e.setupCustomMapParamsToLegendUrl()})),t?this._keyEvents.ol.push(this.viewer.map.on("moveend",function(){return e.setupCustomMapParamsToLegendUrl()})):this.setupCustomMapParamsToLegendUrl()}},{key:"clear",value:function(){var r=this;this.removeListener("extraParamsSet",this.onExtraParamsSet),["ol","g3wobject"].forEach(function(e){switch(e){case"ol":r._keyEvents[e].forEach(function(e){return ol.Observable.unByKey(e)});break;case"g3wobject":r._keyEvents[e].forEach(function(e){var t=e.who,r=e.setter,e=e.key;return t.un(r,e)});break;case"eventemitter":r._keyEvents[e].forEach(function(e){var t=e.event,e=e.listener;return r.removeListener(t,e)})}r._keyEvents[e].splice(0)}),A.layers.getLayersStores().forEach(this._removeEventsKeysToLayersStore.bind(this))}},{key:"_addHideMap",value:function(){var e=0extentResolution?r:a,yield this.goToRes(ol.extent.getCenter(e),a),t.highLightGeometry&&(yield this.highlightGeometry(t.highLightGeometry,{zoom:!1,duration:t.duration}))}),function(e){return n.apply(this,arguments)})},{key:"goToBBox",value:function(e){var t=1')+'
"}),x.default.showModalDialog({title:F("sdk.atlas.template_dialog.title"),message:n,buttons:{success:{label:"OK",className:"skin-button",callback:function(){var e=$('input[name="template"]:checked').attr("g3w_atlas_index");if(void 0===e)return!1;r._printSingleAtlas({features:a,atlas:i[e]})}}}}))}},{key:"showLayerDownloadFormats",value:function(e){var t=f.default.name;e[t].active=!e[t].active,this.setLayerActionTool({layer:e,component:e[t].active?f.default:null,config:e[t].active?s({},this.state.actiontools[t][e.id],{downloads:this.state.actiontools[t][e.id].downloads.filter(function(e){return"pdf"!==e.format})}):null})}},{key:"downloadFeatures",value:(r=P(function*(t,r){var e,n=2r._projectLayerIds.indexOf(t.id)?1:-1})),e.forEach(function(e){t.add?r.updateLayerResultFeatures(e):r.state.layers.push(e)}),this.setActionsForLayers(e,{add:t.add}),this.state.changed=!0},addComponent:function(e){this.state.components.push(e)},addActionsForLayers:function(e,t){},postRender:function(e){},closeComponent:function(){},changeLayerResult:function(t){this.state.layersactions[t.id].forEach(function(e){return e.change&&e.change(t)}),this.resetCurrentActionToolsLayer(t)},activeMapInteraction:function(){},editFeature:function(){var e=0div[data-v-6659a6eb]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project_title_content .main_title[data-v-6659a6eb]{font-size:1.6em}.project_title_content .sub_title[data-v-6659a6eb]{font-size:1.3em}@media (max-width:767px){.logo-wrapper[data-v-6659a6eb]{padding-left:5px}}.logo-wrapper.mobile[data-v-6659a6eb]{padding:5px}.logo-wrapper.mobile img[data-v-6659a6eb]{height:23px;max-width:150px!important;padding-left:0;margin-right:5px}.logo-wrapper.mobile .main_title[data-v-6659a6eb]{font-size:1.1em}.logo-wrapper.mobile .sub_title[data-v-6659a6eb]{font-size:1em}.project_title_content.mobile[data-v-6659a6eb]{margin-top:2px}.project_title_content.mobile .sub_title[data-v-6659a6eb]{height:auto}.credit-title-logo[data-v-6659a6eb]{font-weight:700;font-size:1.2em;margin-bottom:15px}.g3w-credits-block[data-v-6659a6eb]{text-align:center!important;margin-bottom:20px}.g3w-suite-logo[data-v-6659a6eb]{width:50%!important}.customcredits[data-v-6659a6eb]{margin-bottom:10px;margin-top:5px}#address-credits span[data-v-6659a6eb]{padding-left:3px}.g3w-languages[data-v-6659a6eb]{min-width:125px}#g3w-sidebarpanel-header-placeholder[data-v-6659a6eb]{overflow:hidden;line-height:14px;font-size:1.5em;min-height:35px;border-bottom:1px solid #fff;margin-bottom:5px}#disable-sidebar[data-v-6659a6eb]{display:none;position:absolute;background-color:rgba(0,0,0,.3);height:100%;width:100%;z-index:10}.content_breadcrumb[data-v-6659a6eb]{font-size:1.2em;padding:0 3px;border-radius:3px}.close-panel-block[data-v-6659a6eb]{overflow:hidden;margin-top:2px;margin-bottom:2px;font-size:1.4em}.g3w_contents_back[data-v-6659a6eb]{font-size:.8em}.g3w_contents_back [data-v-6659a6eb]:is(.backto,.back){display:inline-block;font-weight:700}.g3w_contents_back .backto[data-v-6659a6eb]{margin-top:5px;cursor:pointer}.user-header[data-v-6659a6eb]{background-color:var(--skin-color);height:175px;padding:10px;text-align:center}.user-header>p[data-v-6659a6eb]{z-index:5;color:#fff;color:hsla(0,0%,100%,.8);font-size:17px;margin-top:10px}.user-footer[data-v-6659a6eb]{background-color:#f9f9f9;padding:10px;display:flex;justify-content:space-between}.user-footer .btn-default[data-v-6659a6eb]{color:#666}@media (max-width:767px){#g3w-small-screen-hamburger-sidebar[data-v-6659a6eb]{display:block}.user-footer .btn-default[data-v-6659a6eb]:hover{background-color:#f9f9f9}.user-header[data-v-6659a6eb]{display:none}}");function k(e){return e&&e.__esModule?e:{default:e}}function S(e){return function(){var s=e.apply(this,arguments);return new Promise(function(i,o){return function t(e,r){try{var n=s[e](r),a=n.value}catch(e){return void o(e)}if(!n.done)return Promise.resolve(a).then(function(e){t("next",e)},function(e){t("throw",e)});i(a)}("next")})}}Object.defineProperty(r,"__esModule",{value:!0}),s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var r=t,n=[],a=!0,t=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!r||n.length!==r);a=!0);}catch(e){t=!0,i=e}finally{try{!a&&s.return&&s.return()}finally{if(t)throw i}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=k(e("vue-cookie-law")),l=e("app/constant"),a=e("app/eventbus"),i=k(e("store/application-state")),o=k(e("store/projects")),u=k(e("services/application")),c=k(e("services/gui")),d=k(e("services/viewport")),p=k(e("services/sidebar")),f=k(e("services/navbaritems")),h=e("mixins"),g=k(e("components/HeaderItem.vue")),v=k(e("components/UserMessage.vue")),y=k(e("components/CatalogContextMenu.vue")),m=k(e("utils/getUniqueDomId")),x=e("core/i18n/i18n.service").t,r.default={name:"app",mixins:[h.resizeMixin],data:function(){return{customcredits:!1,appState:u.default.getState(),current_custom_modal_content:null,language:null,cookie_law_buttonText:x("cookie_law.buttonText"),state:d.default.state,updatePreviousTitle:!1,components:p.default.state.components,panels:p.default.stack.state.contentsdata,header:x("main navigation"),sstate:p.default.state,NavbarItemsService:f.default}},components:{HeaderItem:g.default,CookieLaw:n.default,userMessage:v.default,CatalogContextMenu:y.default},computed:{app:function(){return this.appState.gui.app},languages:function(){var e;return 1<(e=Array.isArray(this.appconfig.i18n)&&this.appconfig.i18n||[]).length&&e},currentProject:function(){return o.default.getCurrentProject()},appconfig:function(){return u.default.getConfig()},isIframe:function(){return!!this.appconfig.group.layout.iframe},urls:function(){return this.appconfig.urls},staticurl:function(){return this.urls.staticurl},powered_by:function(){return this.appconfig.group.powered_by},clienturl:function(){return this.urls.clienturl},logo_url:function(){return this.currentProject.getThumbnail()||""+this.appconfig.mediaurl+this.appconfig.logo_img},project_title:function(){return this.currentProject.getState().name},user:function(){return this.appconfig.user&&this.appconfig.user.username?this.appconfig.user:null},login_url:function(){return this.appconfig.user.login_url},hasRelatedMaps:function(){return 1\n \n '+e.text+" \n "):e.text},resize:(w=S(function*(){var e;this.isIframe||(yield this.$nextTick(),e=0\n \n