You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
4.7 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[727],{66654:function(e,t,n){var r=n(86291),i=n(6566),o=n(19010),a=n(49060),u=n(62514),s=n(32275),c=n(86923);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(d,e);var t,n,r,l=h(d);function d(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),(t=l.call(this,{interpolate:n,projection:e.projection,resolutions:e.resolutions})).crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,t.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,t.params_=e.params||{},t.url_=e.url,t.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:o.r6,t.hidpi_=void 0===e.hidpi||e.hidpi,t.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,t.ratio_=void 0!==e.ratio?e.ratio:1,t.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,t.image_=null,t.renderedRevision_=0,t}return t=d,(n=[{key:"getParams",value:function(){return this.params_}},{key:"getImageInternal",value:function(e,t,n,r){t=this.findNearestResolution(t),n=this.hidpi_?n:1;var o=this.image_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==t&&o.getPixelRatio()==n&&(0,c.r4)(o.getExtent(),e))return o;1!=this.ratio_&&(e=e.slice(),(0,c.H9)(e,this.ratio_));var u=[(0,c.dz)(e)/t*n,(0,c.Cr)(e)/t*n];if(void 0!==this.url_){var s=this.getUrl(this.url_,this.params_,e,u,r);(o=new a.Z(e,t,n,s,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(i.Z.CHANGE,this.handleImageChange.bind(this))}else o=null;return this.image_=o,this.renderedRevision_=this.getRevision(),o}},{key:"getImageLoadFunction",value:function(){return this.imageLoadFunction_}},{key:"updateParams",value:function(e){(0,s.f0)(this.params_,e),this.changed()}},{key:"getUrl",value:function(e,t,n,r,i){var o=function(e,t,n,r){var i=(0,c.dz)(e),o=(0,c.Cr)(e),a=t[0],u=t[1],s=.0254/r;return u*i>a*o?i*n/(a*s):o*n/(u*s)}(n,r,this.metersPerUnit_,this.displayDpi_),a=(0,c.qg)(n),l={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(r[0]),SETDISPLAYHEIGHT:Math.round(r[1]),SETVIEWSCALE:o,SETVIEWCENTERX:a[0],SETVIEWCENTERY:a[1]};return(0,s.f0)(l,t),(0,u.B)(e,l)}},{key:"setImageLoadFunction",value:function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.ZP),g=n(41376),v=n(54354);new g.Z({layers:[new r.Z({extent:[-87.86511444236592,43.66506556483793,-87.59539405949707,43.82385256443007],source:new m({projection:"EPSG:4326",url:"https://mikenunn.net/mapguide/mapagent/mapagent.fcgi?",useOverlay:!1,metersPerUnit:111319.4908,params:{MAPDEFINITION:"Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition",FORMAT:"PNG",VERSION:"3.0.0",USERNAME:"OLGuest",PASSWORD:"olguest"},ratio:2})})],target:"map",view:new v.ZP({center:[-87.7302542509315,43.744459064634],projection:"EPSG:4326",zoom:12})})}},function(e){var t=function(t){return e(e.s=t)};t(9877),t(66654)}]);
//# sourceMappingURL=mapguide-untiled.js.map