UNPKG

vue-cesium

Version:
1 lines 7.32 kB
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/providers/index.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-10-27 15:54:11\n * @LastEditTime: 2022-03-31 15:12:05\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\providers\\index.ts\n */\nimport { App } from 'vue'\nimport ImageryProviderAmap from './amap'\nimport ImageryProviderArcgis from './arcgis/imagery'\nimport ImageryProviderBaidu from './baidu'\nimport ImageryProviderBing from './bingmaps'\nimport ImageryProviderGoogle from './google-earth'\nimport ImageryProviderGrid from './grid'\nimport ImageryProviderIon from './ion'\nimport ImageryProviderMapbox from './mapbox-style'\nimport ImageryProviderOsm from './osm'\nimport ImageryProviderSingletile from './single-tile'\nimport ImageryProviderSupermap from './supermap'\nimport ImageryProviderTencent from './tencent'\nimport ImageryProviderTianditu from './tianditu/imagery'\nimport ImageryProviderTileCoordinates from './tile-coordinates'\nimport ImageryProviderTms from './tile-map-service'\nimport ImageryProviderTiledcache from './tiled-cache'\nimport ImageryProviderUrltemplate from './url-template'\nimport ImageryProviderWms from './wms'\nimport ImageryProviderWmts from './wmts'\n\nimport TerrainProviderCesium from './cesium-terrain'\nimport TerrainProviderArcgis from './arcgis/terrain'\nimport TerrainProviderVrTheworld from './vr-theworld'\nimport TerrainProviderTianditu from './tianditu/terrain'\nimport { SFCWithInstall } from '@vue-cesium/utils/types'\n\nconst components = [\n ImageryProviderAmap,\n ImageryProviderArcgis,\n ImageryProviderBaidu,\n ImageryProviderBing,\n ImageryProviderGoogle,\n ImageryProviderGrid,\n ImageryProviderIon,\n ImageryProviderMapbox,\n ImageryProviderOsm,\n ImageryProviderSingletile,\n ImageryProviderSupermap,\n ImageryProviderTencent,\n ImageryProviderTianditu,\n ImageryProviderTileCoordinates,\n ImageryProviderTms,\n ImageryProviderTiledcache,\n ImageryProviderUrltemplate,\n ImageryProviderWms,\n ImageryProviderWmts,\n\n TerrainProviderCesium,\n TerrainProviderArcgis,\n TerrainProviderVrTheworld,\n TerrainProviderTianditu\n]\n\nconst install = (app: App): void => {\n components.forEach(cmp => {\n app.component(cmp.name, cmp)\n })\n}\n\nexport default {\n install\n}\n\ncomponents.forEach(cmp => {\n cmp['install'] = (app: App): void => {\n app.component(cmp.name, cmp)\n }\n})\n\nexport const VcImageryProviderAmap = ImageryProviderAmap as SFCWithInstall<typeof ImageryProviderAmap>\nexport const VcImageryProviderArcgis = ImageryProviderArcgis as SFCWithInstall<typeof ImageryProviderArcgis>\nexport const VcImageryProviderBaidu = ImageryProviderBaidu as SFCWithInstall<typeof ImageryProviderBaidu>\nexport const VcImageryProviderBing = ImageryProviderBing as SFCWithInstall<typeof ImageryProviderBing>\nexport const VcImageryProviderGoogle = ImageryProviderGoogle as SFCWithInstall<typeof ImageryProviderGoogle>\nexport const VcImageryProviderGrid = ImageryProviderGrid as SFCWithInstall<typeof ImageryProviderGrid>\nexport const VcImageryProviderIon = ImageryProviderIon as SFCWithInstall<typeof ImageryProviderIon>\nexport const VcImageryProviderMapbox = ImageryProviderMapbox as SFCWithInstall<typeof ImageryProviderMapbox>\nexport const VcImageryProviderOsm = ImageryProviderOsm as SFCWithInstall<typeof ImageryProviderOsm>\nexport const VcImageryProviderSingletile = ImageryProviderSingletile as SFCWithInstall<typeof ImageryProviderSingletile>\nexport const VcImageryProviderSupermap = ImageryProviderSupermap as SFCWithInstall<typeof ImageryProviderSupermap>\nexport const VcImageryProviderTencent = ImageryProviderTencent as SFCWithInstall<typeof ImageryProviderTencent>\nexport const VcImageryProviderTianditu = ImageryProviderTianditu as SFCWithInstall<typeof ImageryProviderTianditu>\nexport const VcImageryProviderTileCoordinates = ImageryProviderTileCoordinates as SFCWithInstall<typeof ImageryProviderTileCoordinates>\nexport const VcImageryProviderTms = ImageryProviderTms as SFCWithInstall<typeof ImageryProviderTms>\nexport const VcImageryProviderTiledcache = ImageryProviderTiledcache as SFCWithInstall<typeof ImageryProviderTiledcache>\nexport const VcImageryProviderUrltemplate = ImageryProviderUrltemplate as SFCWithInstall<typeof ImageryProviderUrltemplate>\nexport const VcImageryProviderWms = ImageryProviderWms as SFCWithInstall<typeof ImageryProviderWms>\nexport const VcImageryProviderWmts = ImageryProviderWmts as SFCWithInstall<typeof ImageryProviderWmts>\n\nexport const VcTerrainProviderCesium = TerrainProviderCesium as SFCWithInstall<typeof TerrainProviderCesium>\nexport const VcTerrainProviderArcgis = TerrainProviderArcgis as SFCWithInstall<typeof TerrainProviderArcgis>\nexport const VcTerrainProviderVrTheworld = TerrainProviderVrTheworld as SFCWithInstall<typeof TerrainProviderVrTheworld>\nexport const VcTerrainProviderTianditu = TerrainProviderTianditu as SFCWithInstall<typeof TerrainProviderTianditu>\n\nexport * from './amap'\nexport * from './arcgis/imagery'\nexport * from './arcgis/terrain'\nexport * from './baidu'\nexport * from './bingmaps'\nexport * from './cesium-terrain'\nexport * from './google-earth'\nexport * from './grid'\nexport * from './ion'\nexport * from './mapbox-style'\nexport * from './osm'\nexport * from './single-tile'\nexport * from './supermap'\nexport * from './tencent'\nexport * from './tianditu/imagery'\nexport * from './tianditu/terrain'\nexport * from './tile-coordinates'\nexport * from './tile-map-service'\nexport * from './tiled-cache'\nexport * from './url-template'\nexport * from './vr-theworld'\nexport * from './wms'\nexport * from './wmts'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,UAAa,GAAA;AAAA,EACjB,mBAAA;AAAA,EACA,qBAAA;AAAA,EACA,oBAAA;AAAA,EACA,mBAAA;AAAA,EACA,qBAAA;AAAA,EACA,mBAAA;AAAA,EACA,kBAAA;AAAA,EACA,qBAAA;AAAA,EACA,kBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,sBAAA;AAAA,EACA,uBAAA;AAAA,EACA,8BAAA;AAAA,EACA,kBAAA;AAAA,EACA,yBAAA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