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

GPX: Invoke _handleLayerMouseOver on the correct layer #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adg29
Copy link

@adg29 adg29 commented Jul 21, 2016

Added the conditional typeof layer==='undefined'. This ensures that layer is correctly assigned to the line object that is made available by the addLine callback in the GPX use-case. Previously there was only a check for null, which prevented the correct assignment to the layer that is assigned the mouseover.

With the correct assignment, mouseover is now triggered on the line and the corresponding point in the elevation diagram is indicated.

Tested on a GPX file @ http://codepen.io/adg29/full/jAzpRo/

… a check for undefined layer to correctly assign the layer which triggers mouseover
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.

1 participant