Skip to content

Conversation

@tsauerwein
Copy link
Member

This PR proposes to add a target property to the drag&drop interaction. Currently the drop-zone of the interaction is always the viewport element, which makes it a bit difficult to style the drop-zone The proposed target property would make the interaction more flexible. E.g. the drop-zone could be outside the map, the whole document, ...

@ahocevar
Copy link
Member

I like it, and it looks good. Please merge.

externs/olx.js Outdated
/**
* @typedef {{formatConstructors: (Array.<function(new: ol.format.Feature)>|undefined),
* projection: ol.proj.ProjectionLike}}
* projection: ol.proj.ProjectionLike, target: (Element|undefined)}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be in a new line

@fredj
Copy link
Member

fredj commented Feb 22, 2016

+1

tsauerwein pushed a commit that referenced this pull request Feb 22, 2016
Add `target` property to Drag&Drop interaction
@tsauerwein tsauerwein merged commit 12b8624 into openlayers:master Feb 22, 2016
@tsauerwein tsauerwein deleted the drag-n-drop-target branch February 22, 2016 08:36
@tsauerwein
Copy link
Member Author

Thanks for the reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants