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

Heatmap canvas obscures the SVG shapes #73

Closed
explorer14 opened this issue Oct 5, 2016 · 1 comment
Closed

Heatmap canvas obscures the SVG shapes #73

explorer14 opened this issue Oct 5, 2016 · 1 comment

Comments

@explorer14
Copy link

Hi,

My use case is as follows, I draw a shape (using the leaflet-draw plugin for shape drawing and editing) on the map to query some locations from a database in an area covered by that shape and show them on a map. I am also attaching a hover over label to the shape to show what data the locations represent. See screenshot below:

image

The problem is when I do a similar thing but with heatmap instead of markers, I lose the connection with the shape because the heatmap canvas gets placed on top of the svg shapes and I can't see the label anymore. Not only that I can't even remove the shape anymore because of this.

image

Is there a way to get around this problem in the current implementation of the leaflet-heat?

Thanks a bunch
Aman

@explorer14
Copy link
Author

Ok I think I might have found a way around this. I will see if I can submit a pull request with the change because I think it could be useful for others as well.

Cheers
Aman

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

1 participant