diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index cd7740a5bb..1d728abed9 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -18,6 +18,7 @@ A number of internal types have been renamed. This will not affect those who us * rename `ol.control.MousePositionProperty` to `ol.control.MousePosition.Property` * rename `ol.format.IGCZ` to `ol.format.IGC.Z` * rename `ol.interaction.DragAndDropEvent` to `ol.interaction.DragAndDrop.Event` + * rename `ol.interaction.DragAndDropEventType` to `ol.interaction.DragAndDrop.EventType` * rename `ol.layer.GroupProperty` to `ol.layer.Group.Property` * rename `ol.layer.HeatmapLayerProperty` to `ol.layer.Heatmap.Property` * rename `ol.layer.VectorTileRenderType` to `ol.layer.VectorTile.RenderType` diff --git a/src/ol/interaction/draganddrop.js b/src/ol/interaction/draganddrop.js index b32015b796..0ac9fdb4c4 100644 --- a/src/ol/interaction/draganddrop.js +++ b/src/ol/interaction/draganddrop.js @@ -118,7 +118,7 @@ ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, event) { } this.dispatchEvent( new ol.interaction.DragAndDrop.Event( - ol.interaction.DragAndDropEventType.ADD_FEATURES, file, + ol.interaction.DragAndDrop.EventType.ADD_FEATURES, file, features, projection)); }; @@ -178,7 +178,7 @@ ol.interaction.DragAndDrop.prototype.tryReadFeatures_ = function(format, text, o /** * @enum {string} */ -ol.interaction.DragAndDropEventType = { +ol.interaction.DragAndDrop.EventType = { /** * Triggered when features are added * @event ol.interaction.DragAndDrop.Event#addfeatures @@ -196,7 +196,7 @@ ol.interaction.DragAndDropEventType = { * @constructor * @extends {ol.events.Event} * @implements {oli.interaction.DragAndDropEvent} - * @param {ol.interaction.DragAndDropEventType} type Type. + * @param {ol.interaction.DragAndDrop.EventType} type Type. * @param {File} file File. * @param {Array.=} opt_features Features. * @param {ol.proj.Projection=} opt_projection Projection.