Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Sep 23, 2022
1 parent c8ee475 commit 3eb001e
Show file tree
Hide file tree
Showing 46 changed files with 370 additions and 325 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

### 3.1.0

_2022-09-XX_
_2022-09-24_

#### Bug 修复

- 修复热力图组件自定义数据字段不起作用的问题。
- 修复数据源组件加载海量数据速度慢的问题。
- 修复加载 dc-sdk 时引用 cdn 地址不能正常加载的问题。

#### 新特性

- `vc-layer-imagery` 组件增加 `vcId` 属性。
- `vc-selection-indicator` 增加 `includeImageryIds``excludeImageryIds` 属性,用于拾取影像要素时排除图层使用。

### 3.0.19

_2022-09-07_
Expand Down
2 changes: 1 addition & 1 deletion packages/components/providers/__test__/providers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const bingmapsApp = {
<vc-layer-imagery>
<vc-imagery-provider-bing
ref="provider"
bm-key="AgcbDCAOb9zMfquaT4Z-MdHX4AsHUNvs7xgdHefEA5myMHxZk87NTNgdLbG90IE-"
bm-key="AmGu3cvB_g1HbkQErEyvmLc9j0YIGWS7IdOqR7-hQbO8J92Fzrzkhy_bYKSsyoEx"
mapStyle="Aerial"
></vc-imagery-provider-bing>
</vc-layer-imagery>
Expand Down
6 changes: 3 additions & 3 deletions website/components/ad-sense.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2022-01-28 00:24:46
* @LastEditTime: 2022-09-22 13:03:21
* @LastEditTime: 2022-09-23 00:16:10
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\website\components\ad-sense.vue
Expand All @@ -19,9 +19,9 @@
:data-ad-layout="dataAdLayout"
></ins>
</div>
<app-link href="https://new.502502.xyz/#/register?code=jlz6Frzz">
<!-- <app-link href="https://new.502502.xyz/#/register?code=jlz6Frzz">
<span style="padding-left: 20px">{{ otherAd }}</span>
</app-link>
</app-link> -->
</div>
</template>

Expand Down
21 changes: 16 additions & 5 deletions website/components/right-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@
{{ item }}
</el-link>
</div>
<app-link href="https://new.502502.xyz/#/register?code=jlz6Frzz" style="position: absolute">
<span style="padding-left: 10px; line-height: 120px">{{ otherAd }}<el-tag effect="dark" type="success">jlz6Frzz</el-tag></span>
</app-link>
</el-scrollbar>

<ad-sense
adSlot="4608014562"
:adStyle="{ display: 'inline-block', width: '235px', height: '235px' }"
style="position: fixed; right: 10px; bottom: 10px; width: 230px; border-left: 1px solid rgb(220, 223, 230); height: auto; max-height: 300px"
style="position: fixed; right: 10px; bottom: 20px; width: 230px; border-left: 1px solid rgb(220, 223, 230); height: auto; max-height: 300px"
></ad-sense>
</template>

<script lang="ts">
import { defineComponent, nextTick, onBeforeUnmount, onMounted, ref, computed } from 'vue'
import ResizeObserver from 'resize-observer-polyfill'
import AdSense from './ad-sense.vue'
import { useRoute } from 'vue-router'
export default defineComponent({
components: {
Expand All @@ -41,6 +46,7 @@ export default defineComponent({
let scrollContainer
const active = ref('')
const navScroll = ref(null)
const $route = useRoute()
const handleAnchorClick = anchor => {
scrollContainer.scrollTop = map.get(anchor)
Expand All @@ -49,10 +55,14 @@ export default defineComponent({
let resizeObserver = null
// const adSlot = computed(() => {
// const cnHref = href.indexOf('vue-cesium.songluck.com') > -1
// return cnHref ? '7202599371' : '4608014562'
// })
const adSlot = computed(() => {
const cnHref = location.href.indexOf('vue-cesium.songluck.com') > -1
return cnHref ? '7202599371' : '4608014562'
})
const otherAd = computed(() => {
return $route.path.indexOf('/zh-CN/') !== -1 ? '高速稳定梯子推荐' : 'Stable VPN Recommendation'
})
// const adSenseShow = ref(false)
Expand Down Expand Up @@ -99,6 +109,7 @@ export default defineComponent({
navScroll,
anchors,
active,
otherAd,
handleAnchorClick
}
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/analyses/vc-analyses.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ The parameter configuration of each drawing result is too long to list here. If
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| clearAll | () => void | Clear all drawing results. |
| activate | () => void | End listening for the ScreenSpaceEventHandler events. |
Expand Down
22 changes: 11 additions & 11 deletions website/docs/en-US/analyses/vc-analysis-flood.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ Basic usage of VcAnalysisFlood component.

### Methods

| Name | Parameters | Description |
| ------------------ | --------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| start | (height?: number) => void | Start flood analysis. |
| pause | () => void | Pause/resume flood analysis. |
| stop | () => void | Stop flood analysis. |
| getCurrentHeight | () => number | Get the extrudedHeight value. |
| Name | Parameters | Description |
| ------------------ | ---------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| start | (height?: number) => void | Start flood analysis. |
| pause | () => void | Pause/resume flood analysis. |
| stop | () => void | Stop flood analysis. |
| getCurrentHeight | () => number | Get the extrudedHeight value. |
2 changes: 1 addition & 1 deletion website/docs/en-US/analyses/vc-drawings.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ The parameter configuration of each drawing result is too long to list here. If
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| clearAll | () => void | Clear all drawing results. |
| activate | () => void | End listening for the ScreenSpaceEventHandler events. |
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/analyses/vc-measurements.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ The parameter configuration of each drawing result is too long to list here. If
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| clearAll | () => void | Clear all drawing results. |
| activate | () => void | End listening for the ScreenSpaceEventHandler events. |
Expand Down
42 changes: 21 additions & 21 deletions website/docs/en-US/controls/vc-navigation-sm.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ Default parameters of `compassOpts`, `zoomOpts`:

### VcNavigationSm Methods

| Name | Parameters | Description |
| ------------------ | --------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| Name | Parameters | Description |
| ------------------ | ---------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |

### VcCompassSm

Expand Down Expand Up @@ -148,13 +148,13 @@ Compass components.

### VcCompassSm Methods

| Name | Parameters | Description |
| ------------------ | --------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| Name | Parameters | Description |
| ------------------ | ---------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |

### VcZoomControlSm

Expand All @@ -181,10 +181,10 @@ Zoom component.

### VcZoomControlSm Methods

| Name | Parameters | Description |
| ------------------ | --------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
| Name | Parameters | Description |
| ------------------ | ---------------------------------------- | ----------------------------------------------- |
| load | () => Promise\<false \| VcReadyObject\> | Load components manually. |
| reload | () => Promise\<false \| VcReadyObject\> | Reload components manually. |
| unload | () => Promise\<boolean\> | Destroy the loaded component manually. |
| getCreatingPromise | () => Promise\<boolean \| VcReadyObject> | Get the creatingPromise. |
| getCesiumObject | () => VcCesiumObject | Get the Cesium object loaded by this component. |
Loading

0 comments on commit 3eb001e

Please sign in to comment.