UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 3.18 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import e from"../../core/Error.js";function r(){return Promise.all([import("./webglDeps.js"),import("./mapViewDeps.js")])}const a=()=>r().then(()=>import("./layers/TileLayerView2D.js")),t={"base-dynamic":()=>r().then(()=>import("./layers/BaseDynamicLayerView2D.js")),"base-tile":a,"bing-maps":a,catalog:()=>r().then(()=>import("./layers/CatalogLayerView2D.js")),"catalog-dynamic-group":()=>r().then(()=>import("./layers/CatalogDynamicGroupLayerView2D.js")),"catalog-footprint":()=>r().then(()=>import("./layers/CatalogFootprintLayerView2D.js")),csv:()=>r().then(()=>import("./layers/CSVLayerView2D.js")),"geo-rss":()=>r().then(()=>import("./layers/GeoRSSLayerView2D.js")),feature:()=>r().then(()=>import("./layers/FeatureLayerView2D.js")),geojson:()=>r().then(()=>import("./layers/GeoJSONLayerView2D.js")),graphics:()=>r().then(()=>import("./layers/GraphicsLayerView2D.js")),group:()=>r().then(()=>import("./layers/GroupLayerView2D.js")),imagery:()=>r().then(()=>import("./layers/ImageryLayerView2D.js")),"imagery-tile":()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),kml:()=>r().then(()=>import("./layers/KMLLayerView2D.js")),"knowledge-graph":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"link-chart":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"knowledge-graph-sublayer":()=>r().then(()=>import("./layers/KnowledgeGraphSublayerView2D.js")),"map-image":()=>r().then(()=>import("./layers/MapImageLayerView2D.js")),"map-notes":()=>r().then(()=>import("./layers/MapNotesLayerView2D.js")),media:()=>r().then(()=>import("./layers/MediaLayerView2D.js")),"ogc-feature":()=>r().then(()=>import("./layers/OGCFeatureLayerView2D.js")),"open-street-map":a,"oriented-imagery":()=>r().then(()=>import("./layers/OrientedImageryLayerView2D.js")),parquet:()=>r().then(()=>import("./layers/ParquetLayerView2D.js")),route:()=>r().then(()=>import("./layers/RouteLayerView2D.js")),stream:()=>r().then(()=>import("./layers/StreamLayerView2D.js")),"subtype-group":()=>r().then(()=>import("./layers/SubtypeGroupLayerView2D.js")),tile:a,"vector-tile":()=>r().then(()=>import("./layers/VectorTileLayerView2D.js")),video:()=>r().then(()=>import("./layers/VideoLayerView2D.js")),wcs:()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),"web-tile":a,wfs:()=>r().then(()=>import("./layers/WFSLayerView2D.js")),wms:()=>r().then(()=>import("./layers/WMSLayerView2D.js")),wmts:()=>r().then(()=>import("./layers/WMTSLayerView2D.js")),"base-elevation":null,"building-scene":null,dimension:null,elevation:null,"gaussian-splat":null,"integrated-mesh-3dtiles":null,"integrated-mesh":null,"line-of-sight":null,"point-cloud":null,scene:null,unknown:null,unsupported:null,viewshed:null,voxel:null};function i(r){const a=r.declaredClass?r.declaredClass.slice(r.declaredClass.lastIndexOf(".")+1):"Unknown",t=a.replaceAll(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return new e(`${t}:view-not-supported`,`${a} is not supported in 2D`)}const s={hasLayerViewModule:e=>null!=t[e.type],importLayerView:e=>{const r=t[e.type];if(null==r)throw i(e);return r(e)}};export{s as layerView2DImporter};