# 地理空间综合展示系统框架
## 使用说明
### 1、打开窗口
###### type: left 左边窗口,尺寸300*900, center 居中窗口,尺寸860*1200
###### title: 标题
###### url: 路径,默认是views目录下,可以是javascript文件,需要以.js结尾,包含setup方法作为执行入口。也可以是外部链接,例如:http://www.baidu.com
###### replace: 是否替换当前窗口的页面,默认false。不替换可以回退。
###### success: 窗口打开回调
###### cancel: 窗口关闭回调
```
this.$window.open({
type: 'left',
title: '窗口标题',
url: 'Test',
replace: false,
success: () => {},
cancel: () => {}
})
```
### 2、地图相关操作接口
###### 全局获取viewer: this.$viewer
* 事件处理:viewer.eventHandler
```
eventType = leftClick,rightClick,mouseMove,leftDoubleClick,...
handler = {
id,
index,
handler(){},
}
```
1. on(eventType, handler)
2. onLeftClick(handler)
3. onRightClick(handler)
...
* 地图相关操作接口: viewer.maps
1. setMapLayer(layerType)
* 坐标转换: viewer.coords
* 图上标绘
```
import map from "map";
const entityUtils = new map.utils.EntityUtils({
viewer,
config: {
type: 'billboard',
tooltip: '图标',
description: '',
style: {
image: '/images/markers/thunder-marker.png',
scale: 0.8,
clampToGround: true
}
},
hasEdit: true
});
//创建实体
const entity = entityUtils.create(config, noEdit?);
//开始编辑
entityUtils.startEdit();
//停止编辑
entityUtils.stopEdit();
//保存为geojson
const geojson = entityUtils.saveEdit();
//将geojson格式文件转换为实体集合,autoDraw表示自动绘制,默认不绘制
const entities = entityUtils.fromGeoJson(geojson, autoDraw);
//在地图上绘制实体
entityUtils.drawEntities(entities)
//移除所有标记
entityUtils.removeAll();
//销毁
entityUtils.destroy();
```
##### config配置说明
|配置项|默认|说明|
|:--:|:--:|:--|
|type|无|'billboard': 图标<br>'polyline': 线<br>'polygon': 面<br>暂时只完成这几个|
|id|无|id|
|tooltip|无|鼠标移入时的提示信息|
|description|无|描述信息|
|style|无|样式配置,详见 style配置|
##### style配置说明
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
没有合适的资源?快使用搜索试试~ 我知道了~
基于Vue+cesium的三维地理综合展示框架源码+使用说明.zip
共74个文件
js:39个
vue:10个
jpg:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 201 浏览量
2024-03-10
10:11:31
上传
评论
收藏 5.06MB ZIP 举报
温馨提示
基于Vue+cesium的三维地理综合展示框架源码+使用说明.zip<项目介绍> 地理空间综合展示系统框架 使用说明 1、打开窗口 type: left 左边窗口,尺寸300900, center 居中窗口,尺寸8601200 title: 标题 url: 路径,默认是views目录下,可以是javascript文件,需要以.js结尾,包含setup方法作为执行入口。也可以是外部链接,例如:http://www.baidu.com - 基于Vue+cesium的三维地理综合展示框架源码+使用说明.zip<项目介绍> 地理空间综合展示系统框架 使用说明 1、打开窗口 type: left 左边窗口,尺寸300900, center 居中窗口,尺寸8601200 title: 标题 url: 路径,默认是views目录下,可以是javascript文件,需要以.js结尾,包含setup方法作为执行入口。也可以是外部链接,例如:http://www.baidu.com - 基于Vue+cesium的三维地理综合展示框架源码+使用说明.zip<项目介绍> 地理空间综合展示系统框架 使用说明
资源推荐
资源详情
资源评论
收起资源包目录
基于Vue+cesium的三维地理综合展示框架.zip (74个子文件)
Vue+cesium的三维地理综合展示框架
babel.config.js 73B
src
pages
Index.vue 5KB
App.vue 351B
store
index.js 100B
assets
logo.png 7KB
style
lib
color.less 243B
button.less 511B
app.less 152B
index.less 40B
images
map
tianditu_c.jpg 1.12MB
google.jpg 1.12MB
gaode_s.jpg 345KB
osm.jpg 218KB
arcGIS.jpg 700KB
gaode_c.jpg 1012KB
tianditu_s.jpg 200KB
map.jpg 192KB
marker
warning.gif 54KB
warning1.png 2KB
mark-thunder.png 2KB
main.js 1KB
utils
AC.js 2KB
layers
CustomLayer.js 2KB
IssueLayer.js 1KB
AreaLayer.js 731B
data
issues.json 46KB
RoadLayer.js 1KB
map
src
map.js 4KB
entity
PolygonEntity.js 4KB
BillboardEntity.js 2KB
BaseEntity.js 2KB
PolylineEntity.js 3KB
util
EntityUtils.js 8KB
Coords.js 1KB
commonUtils.js 2KB
EventHandler.js 3KB
Maps.js 4KB
layer
JsonDataLayer.js 505B
GeoJsonLayer.js 2KB
BaseLayer.js 3KB
index.js 690B
components
window
Window.vue 4KB
index.js 2KB
form
FormField.vue 1KB
cesium
Cesium.vue 611B
index.js 650B
router
routes.js 164B
index.js 190B
views
Test.vue 4KB
tools
plot
EditPolyline.vue 1KB
EditPolygon.vue 1KB
Index.vue 3KB
EditBillboard.vue 1KB
data
edit.json 5KB
map
tianditu_c.js 90B
tianditu_s.js 90B
google.js 86B
osm.js 129B
gaode_s.js 87B
ArcGIS.js 85B
baidu.js 85B
gaode_c.js 87B
config
env.dev.js 0B
menus.js 2KB
env.pro.js 0B
index.js 224B
package.json 1KB
public
assets
images
mark-thunder.png 2KB
favicon.ico 4KB
index.html 613B
package-lock.json 504KB
vue.config.js 1KB
.gitignore 214B
README.md 3KB
共 74 条
- 1
资源评论
盈梓的博客
- 粉丝: 6837
- 资源: 1245
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功