/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as o,subclass as t}from"../core/accessorSupport/decorators.js";import r from"../geometry/Extent.js";import l from"../geometry/Point.js";import s from"../geometry/SpatialReference.js";import n from"./WebTileLayer.js";import i from"./support/LOD.js";import a from"./support/TileInfo.js";import p from"../portal/PortalItem.js";let c=class extends n{constructor(...e){super(...e),this.portalItem=null,this.isReference=null,this.tileInfo=new a({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new l({x:-20037508.342787,y:20037508.342787,spatialReference:s.WebMercator}),spatialReference:s.WebMercator,lods:[new i({level:0,scale:591657527.591555,resolution:156543.033928}),new i({level:1,scale:295828763.795777,resolution:78271.5169639999}),new i({level:2,scale:147914381.897889,resolution:39135.7584820001}),new i({level:3,scale:73957190.948944,resolution:19567.8792409999}),new i({level:4,scale:36978595.474472,resolution:9783.93962049996}),new i({level:5,scale:18489297.737236,resolution:4891.96981024998}),new i({level:6,scale:9244648.868618,resolution:2445.98490512499}),new i({level:7,scale:4622324.434309,resolution:1222.99245256249}),new i({level:8,scale:2311162.217155,resolution:611.49622628138}),new i({level:9,scale:1155581.108577,resolution:305.748113140558}),new i({level:10,scale:577790.554289,resolution:152.874056570411}),new i({level:11,scale:288895.277144,resolution:76.4370282850732}),new i({level:12,scale:144447.638572,resolution:38.2185141425366}),new i({level:13,scale:72223.819286,resolution:19.1092570712683}),new i({level:14,scale:36111.909643,resolution:9.55462853563415}),new i({level:15,scale:18055.954822,resolution:4.77731426794937}),new i({level:16,scale:9027.977411,resolution:2.38865713397468}),new i({level:17,scale:4513.988705,resolution:1.19432856685505}),new i({level:18,scale:2256.994353,resolution:.597164283559817}),new i({level:19,scale:1128.497176,resolution:.298582141647617})]}),this.subDomains=["a","b","c"],this.urlTemplate="https://{subDomain}.tile.openstreetmap.org/{level}/{col}/{row}.png",this.operationalLayerType="OpenStreetMap",this.type="open-street-map",this.fullExtent=new r(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,s.WebMercator),this.copyright="Map data &copy; OpenStreetMap contributors, CC-BY-SA"}get refreshInterval(){return 0}};e([o({type:p,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],c.prototype,"portalItem",void 0),e([o({type:Boolean,json:{read:!1,write:!1}})],c.prototype,"isReference",void 0),e([o({type:Number,readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],c.prototype,"refreshInterval",null),e([o({type:a,json:{write:!1}})],c.prototype,"tileInfo",void 0),e([o({type:["show","hide"]})],c.prototype,"listMode",void 0),e([o({readOnly:!0,json:{read:!1,write:!1}})],c.prototype,"subDomains",void 0),e([o({readOnly:!0,json:{read:!1,write:!1}})],c.prototype,"urlTemplate",void 0),e([o({type:["OpenStreetMap"]})],c.prototype,"operationalLayerType",void 0),e([o({json:{read:!1}})],c.prototype,"type",void 0),e([o({readOnly:!0,json:{read:!1,write:!1},nonNullable:!0})],c.prototype,"fullExtent",void 0),e([o({json:{read:!1,write:!1}})],c.prototype,"copyright",void 0),e([o({json:{read:!1,write:!1}})],c.prototype,"wmtsInfo",void 0),c=e([t("esri.layers.OpenStreetMapLayer")],c);const u=c;export{u as default};
