adam-lynch / back-of-your-hand

How well do you know your area? Test your knowledge by locating streets with this game.
https://backofyourhand.com
Mozilla Public License 2.0
79 stars 9 forks source link

Dashed line goes off left of map #26

Closed adam-lynch closed 2 years ago

adam-lynch commented 2 years ago

[...] In the two Japanese cities, after I entered my choice, the map highlighted the correct location with a dotted line leading to it; I assume that was the intended behavior. When I tried it for Pasadena, California, where I grew up, and Manhattan, though, that highlighting did not appear and the dotted line just went off to the left side of the screen. I used Safari on MacOS. See the following screenshots:

http://gally.net/temp/yokohama.jpg

http://gally.net/temp/pasadena-california.jpg

http://gally.net/temp/newyorkcity.jpg [...]

- tkgally, https://news.ycombinator.com/item?id=30739571

adam-lynch commented 2 years ago

I tried, I really tried, but I just can't reproduce this. I'm going to close until someone else reports it.

adam-lynch commented 2 years ago

I found it. It happened if you panned around the world such that the longitude was less than -180 or above 180. Fix included in https://github.com/adam-lynch/back-of-your-hand/commit/dc19eac42792ea9a33d6b9c67a54f592dfb79852.