-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
203 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
|
||
import CesiumFlood from './VcFlood.vue' | ||
import VcFlood from './VcFlood.vue' | ||
// 按需引入该组件时自动引入下面组件才能正常工作 | ||
import * as ClassificationPrimitive from '../../primitive/classification' | ||
import * as GeometryInstance from '../../geometryInstance' | ||
import * as PolygonGeometry from '../../geometryInstance/polygon' | ||
|
||
function plugin (Vue, options = {}) { | ||
if (plugin.installed) { | ||
return | ||
} | ||
plugin.installed = true | ||
Vue.component(CesiumFlood.name, CesiumFlood) | ||
|
||
Vue.use(ClassificationPrimitive) | ||
Vue.use(GeometryInstance) | ||
Vue.use(PolygonGeometry) | ||
|
||
Vue.component(VcFlood.name, VcFlood) | ||
} | ||
|
||
export default plugin | ||
|
||
export { | ||
CesiumFlood, | ||
VcFlood, | ||
plugin as install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
|
||
import CesiumHeatMap from './VcHeatMap.vue' | ||
import VcHeatMap from './VcHeatMap.vue' | ||
// 按需引入该组件时自动引入下面组件才能正常工作 | ||
import * as Entity from '../../entity' | ||
import * as RectangleGraphics from '../../entity/rectangle' | ||
import * as GroundPrimitive from '../../primitive/ground' | ||
import * as GeometryInstance from '../../geometryInstance' | ||
import * as RectangleGeometry from '../../geometryInstance/rectangle' | ||
import * as ImageryLayer from '../../imageryLayer' | ||
import * as SingleTileImageryProvider from '../../imageryLayer/singleTile' | ||
|
||
function plugin (Vue, options = {}) { | ||
if (plugin.installed) { | ||
return | ||
} | ||
|
||
Vue.use(Entity) | ||
Vue.use(RectangleGraphics) | ||
Vue.use(GroundPrimitive) | ||
Vue.use(GeometryInstance) | ||
Vue.use(RectangleGeometry) | ||
Vue.use(ImageryLayer) | ||
Vue.use(SingleTileImageryProvider) | ||
|
||
plugin.installed = true | ||
Vue.component(CesiumHeatMap.name, CesiumHeatMap) | ||
Vue.component(VcHeatMap.name, VcHeatMap) | ||
} | ||
|
||
export default plugin | ||
|
||
export { | ||
CesiumHeatMap, | ||
VcHeatMap, | ||
plugin as install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import CesiumWindMap from './VcWindMap.vue' | ||
import VcWindMap from './VcWindMap.vue' | ||
|
||
function plugin (Vue, options = {}) { | ||
if (plugin.installed) { | ||
return | ||
} | ||
plugin.installed = true | ||
Vue.component(CesiumWindMap.name, CesiumWindMap) | ||
Vue.component(VcWindMap.name, VcWindMap) | ||
} | ||
|
||
export default plugin | ||
|
||
export { | ||
CesiumWindMap, | ||
VcWindMap, | ||
plugin as install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.