麻辣GIS微信平台

更多 GIS 干货

微信关注不错过

Cesium API - viewerDragDropMixin 中文文档

本文介绍下Cesium中 viewerDragDropMixin API的详细使用说明。

viewerDragDropMixin API 调用方法

A mixin which adds default drag and drop support for CZML files to the Viewer widget. Rather than being called directly, this function is normally passed as a parameter to Viewer#extend, as shown in the example below.
示例:
// Add basic drag and drop support and pop up an alert window on error.
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerDragDropMixin);
viewer.dropError.addEventListener(function(viewerArg, source, error) {
    window.alert('Error processing ' + source + ':' + error);
});

成员变量

Gets or sets a value indicating if the datasources should be clamped to the ground
Gets or sets a value indicating if existing data sources should be cleared before adding the newly dropped sources.
Gets or sets a value indicating if drag and drop support is enabled.
Gets the event that will be raised when an error is encountered during drop processing.
Gets or sets the element to serve as the drop target.
Gets or sets a value indicating if the camera should fly to the data source after it is loaded.
Gets or sets the proxy to be used for KML.

其他API

Cesium中文API文档手册(v1.63.1版本)参考:《Cesium中文API文档手册(v1.63.1版本)

相关阅读

麻辣GIS-Sailor

作者:

GIS爱好者,学GIS,更爱玩GIS。

声明

1.本文所分享的所有需要用户下载使用的内容(包括但不限于软件、数据、图片)来自于网络或者麻辣GIS粉丝自行分享,版权归该下载资源的合法拥有者所有,如有侵权请第一时间联系本站删除。

2.下载内容仅限个人学习使用,请切勿用作商用等其他用途,否则后果自负。

手机阅读
公众号关注
知识星球
手机阅读
麻辣GIS微信公众号关注
最新GIS干货
关注麻辣GIS知识星球
私享圈子

留言板(小编看到第一时间回复)