ChuyingHe / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

ItemizedOverlay : margin of error for activate an item #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It could be useful if we can indicate a margin of error for activating items in 
an ItemizedOverlay.

For example, if an item of 12x12 pixels is displayed, it is a little difficult 
to select it. It would be nice if a touch event catched near this item could 
activate it.

Original issue reported on code.google.com by o.bou...@gmail.com on 3 Dec 2010 at 7:46

GoogleCodeExporter commented 9 years ago
Related to issue 141. If icons were scaled according to screen density, this 
would be less of a problem.

Users could then create icons with large enough transparent borders that would 
accommodate a finger press, and the icon would scale properly regardless of 
screen size.

Original comment by kurtzm...@gmail.com on 30 Jan 2011 at 3:14

GoogleCodeExporter commented 9 years ago
Another approach is to translate the object and the click point to screen 
coordinates and then do a simple distance test. If it is within a configurable 
distance, then it is considered a click. Maybe this should be settable on a 
per-item basis?

Original comment by kurtzm...@gmail.com on 27 Feb 2011 at 4:58