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

Overlapping icons #7

Open
SFSailor opened this issue Nov 13, 2017 · 6 comments
Open

Overlapping icons #7

SFSailor opened this issue Nov 13, 2017 · 6 comments

Comments

@SFSailor
Copy link

WOW, I love this.

Except.... I want to use this to track yacht races, where multiple boats are near each other. It seems that the image is a large png with a little boat in the middle. Unfortunately, this means that they often overlap, so that an attempt to click on any will only trigger the top boat.

Any thoughts?

@thomasbrueggemann
Copy link
Owner

Hi, the boat is actually not a PNG but a HTML5 Canvas, that I draw the boat on.
I am sure that you can resize the canvas and the drawn paths to your needs. Start here: https://github.com/thomasbrueggemann/leaflet.boatmarker/blob/master/leaflet.boatmarker.js#L36

@SFSailor
Copy link
Author

SFSailor commented Nov 14, 2017 via email

@thomasbrueggemann
Copy link
Owner

Awesome! You could make a "scaling" parameter available for every user to configure and open up a pull-request, if you'd like!

@SFSailor
Copy link
Author

SFSailor commented Nov 15, 2017 via email

@samkarp
Copy link

samkarp commented Jan 12, 2018

Any chance you could post the code you used to do this? I'm running into the same issue.

@paesedombre
Copy link

Thank you for sharing the code.

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

4 participants