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
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{427:function(t,e,r){"use strict";r.r(e);var i=r(3),o=r(5),a=r(2),n=r(9),s=r(89),p=r(104),c=r(12),h=r(1),l=r(13),u=r(47),g=r(56),m=function(t){function e(e){var r=e||{};t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,imageSmoothing:r.imageSmoothing,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition}),this.params_=r.params||{},this.hidpi_=void 0===r.hidpi||r.hidpi,this.tmpExtent_=Object(h.k)(),this.setKey(this.getKeyForParams_())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,i,o,a){var n=this.urls;if(n){var s,c=o.getCode().split(":").pop();if(a.SIZE=e[0]+","+e[1],a.BBOX=r.join(","),a.BBOXSR=c,a.IMAGESR=c,a.DPI=Math.round(a.DPI?a.DPI*i:90*i),1==n.length)s=n[0];else s=n[Object(l.e)(Object(g.e)(t),n.length)];var h=s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return Object(p.a)(h,a)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){Object(c.a)(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,r){var i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(r)),!(i.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var o=i.getTileCoordExtent(t,this.tmpExtent_),a=Object(u.d)(i.getTileSize(t[0]),this.tmpSize);1!=e&&(a=Object(u.c)(a,e,this.tmpSize));var n={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object(c.a)(n,this.params_),this.getRequestUrl_(t,a,o,e,r,n)}},e}(s.a),d=[new o.a({source:new n.b}),new o.a({extent:[-13884991,2870341,-7455066,6338219],source:new m({url:"https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer"})})];new i.a({layers:d,target:"map",view:new a.a({center:[-10997148,4569099],zoom:4})})}},[[427,0]]]);
|
|
//# sourceMappingURL=arcgis-tiled.js.map
|