You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Source/Widgets/Viewer/viewerDragDropMixin.js
+24-1
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ define([
33
33
* @param {Object} [options] Object with the following properties:
34
34
* @param {Element|String} [options.dropTarget=viewer.container] The DOM element which will serve as the drop target.
35
35
* @param {Boolean} [options.clearOnDrop=true] When true, dropping files will clear all existing data sources first, when false, new data sources will be loaded after the existing ones.
36
+
* @param {Boolean} [options.flyToOnDrop=true] When true, dropping files will fly to the data source once it is loaded.
36
37
* @param {DefaultProxy} [options.proxy] The proxy to be used for KML network links.
37
38
*
38
39
* @exception {DeveloperError} Element with id <options.dropTarget> does not exist in the document.
@@ -66,12 +67,16 @@ define([
66
67
if(viewer.hasOwnProperty('clearOnDrop')){
67
68
thrownewDeveloperError('clearOnDrop is already defined by another mixin.');
68
69
}
70
+
if(viewer.hasOwnProperty('flyToOnDrop')){
71
+
thrownewDeveloperError('flyToOnDrop is already defined by another mixin.');
0 commit comments