我在内部调用方法总是出问题呢
#198
Replies: 3 comments 5 replies
-
这似乎与vue-cesium无关吧 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
wanfengok
-
找了一段代码 不知道能不能用到这个点和字体的显示 5## 根据坐标获取 terrain 高程,精度为 m var terrainData = new Cesium.CesiumTerrainProvider({ url:this.server_url_outer+"terrain/" //输入 terrian 地形数据加载地址 }); var positions = [ Cesium.Cartographic.fromDegrees(lon,lat) //输入经纬度 ]; var promise = Cesium.sampleTerrain(terrainData,14,positions); //获取 14 级地形高程 Cesium.when(promise, function (updatedPositions) { var terrainHeight = updatedPositions[0].height; });`` |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
组件内部写函数总是找不到此方法。

Beta Was this translation helpful? Give feedback.
All reactions