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

showAccumulativeLength set to false breaks event listeners #117

Open
mattrosenblatt opened this issue Apr 13, 2023 · 2 comments
Open

showAccumulativeLength set to false breaks event listeners #117

mattrosenblatt opened this issue Apr 13, 2023 · 2 comments

Comments

@mattrosenblatt
Copy link

measuretool-googlemaps-v3:1 Uncaught TypeError: Cannot read properties of undefined (reading 'select')
    at t.value (measuretool-googlemaps-v3:1:55245)
    at t.value (measuretool-googlemaps-v3:1:39646)
    at SVGCircleElement.<anonymous> (measuretool-googlemaps-v3:1:49751)
    at p.call (measuretool-googlemaps-v3:1:3782)
    at Object.n (measuretool-googlemaps-v3:1:19049)
    at d (measuretool-googlemaps-v3:1:18219)
    at measuretool-googlemaps-v3:1:8686
value @ measuretool-googlemaps-v3:1
value @ measuretool-googlemaps-v3:1
(anonymous) @ measuretool-googlemaps-v3:1
call @ measuretool-googlemaps-v3:1
n @ measuretool-googlemaps-v3:1
d @ measuretool-googlemaps-v3:1
(anonymous) @ measuretool-googlemaps-v3:1

When showAccumulativeLength is set to false, it breaks event listeners and causes them to stop responding appropriately.

@mattrosenblatt
Copy link
Author

Since I'm using this to measure the roofs of buildings, it's important for me to be able to shut off the accumulative length measurements on the ticks. The screen becomes very cluttered very quickly. As a result, I'm trying to capture the event for measure_change, but it throws errors in the console as a result of showAccumulativeLength being set to false.

@mattrosenblatt
Copy link
Author

It should be noted that measure_end also fails when showAccumulativeLength is set to false.

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