bryceco / GoMap

OpenStreetMap editor for iPhone/iPad
ISC License
324 stars 41 forks source link

Nodes with long name are hard to move #129

Closed nicolashohm closed 6 years ago

nicolashohm commented 6 years ago

I'm very happy to see the german translation in GoMap! now. But unfortunately some type's has very long names like charging_stations. But also if the tag name is filled with a very long name you see the same result on the map.

Steps to reproduce - name tag

Steps to reproduce - preset name

Actual result

Sometimes if you try to move the node the map will jump and the node will not really move or even worse it will move in the opposite direction. If you lucky you can move the node a little bit, then you have to reposition the map and move it again a small step.

Expected result

It's easy to move the node in every direction, even if the name in the preset or the tag name is extremely long.

Additional details

screenshot

bryceco commented 6 years ago

I'm not sure why, but when using very long names or the German language charging station preset I'm not able to reproduce this behavior. Everything is very smooth. I'm testing with iPhone X and OS 11.3.1 as well.

dieterdreist commented 6 years ago

I confirm very smooth on iphone 6. For very long names you have to move the screen though to reach the move-icon, maybe the labels could be multiline if very long.

nicolashohm commented 6 years ago

maybe this video can help to clarify that ScreenRecording_05-18-2018 11-53-00.MP4.zip

My suggestion would be to cut off the title on the map, imho it's not important to see the entire title on the map. But multiline sounds good too

bryceco commented 6 years ago

Oh I see. It is a problem when the pin center is off-screen to the left. This activates the code that is responsible for scrolling the window to try to keep the pin on-screen. You shouldn't see this behavior if the pin/node is in view when you try to move it.

nicolashohm commented 6 years ago

OK guys I tell you something funny: I always try to move the node with the move symbol on the right and I didn’t figure it out that I can also move the node by simply tapping on the label some there else :facepalm:

bryceco commented 6 years ago

I went ahead and added a maximum size to the pushpin label for good measure.