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

Leaflet tiles flashes and being selected while drawing to select #10

Closed
mickeyjohn opened this issue Apr 22, 2019 · 2 comments
Closed

Comments

@mickeyjohn
Copy link

Hi,
Thanks for sharing the plugin. I found that drawing to select does not work properly in IE 11. I did not test with lower versions of IE yet. It will flash and also select the tiles while drawing arounds layers to select.
How to reproduce:

  1. Load the example page on IE 11
    URL: https://sandropibia.github.io/Leaflet.SelectAreaFeature/examples/index.html
  2. Click on Enable button.
  3. Draw around some layers on the map.

Anyone has any ideas how to resolve this?

Thanks a lot.

@mickeyjohn
Copy link
Author

I think I found a workaround for this according to here: Leaflet/Leaflet#1821
addHooks: function () {
// add these two lines
L.DomUtil.disableImageDrag();
L.DomUtil.disableTextSelection();
....
}

Thanks.

@sandropibia
Copy link
Owner

tested in ms Edge, no issue at all

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

No branches or pull requests

2 participants