Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental drag and drop of file on the map container #1370

Merged
merged 3 commits into from Oct 18, 2023

Conversation

yohanboniface
Copy link
Member

Screencast.from.2023-10-13.11-42-04.webm

fix #231

Very basic. Should we yet introduce https://github.com/placemark/flat-drop-files helper ?

@davidbgk
Copy link
Contributor

Not sure flat-drop-file is necessary but I would provide an affordance on dragover like a fullscreen SVG:

Capture d’écran, le 2023-10-13 à 09 34 27

(from https://iconsvg.xyz/ )

@almet
Copy link
Member

almet commented Oct 17, 2023

Following discussion with @yohanboniface where it seems that the dragndrop was failing on chromium and chrome, I can say that it's working well for me on chrome and firefox with this branch.

uname -a
22.6.0 Darwin Kernel

Versions :

  • Chromium Version 120.0.6074.0 (Build de développement) (arm64)
  • Chrome Version 118.0.5993.70 (Build officiel) (arm64)
  • Firefox 118.0.2

@almet
Copy link
Member

almet commented Oct 17, 2023

Also installed umap on an Arch machine and tried this there, and it was working as intended (with Firefox and Chromium, same versions)

I've been using regions.geojson (as I've seen that's what you used), that I got from here. Maybe something fishy going on with your cache, or extensions ?

@yohanboniface yohanboniface merged commit 412a159 into master Oct 18, 2023
@yohanboniface yohanboniface deleted the drag-n-drop branch October 18, 2023 07:12
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.

Support file drag-and-drop
3 participants