Kingjuli / osmdroid

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

hitTest() #430

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
the following code regarding hitTest() is working on version 3.0.8,
however it stopped to work on 3.0.10.

is it bug or something is changed ? if it is how on 3.0.10 perform hitTest() or
analog?  

drawable.setBounds(0, 0, 
drawable.getIntrinsicWidth(),drawable.getIntrinsicHeight());

....

Projection pj = mapView.getProjection();

Point t=new Point(0,0);
Point p=new Point(0,0);

for (OverlayItem item : mapOverlays) {

pj.fromMapPixels(x, y, t);
pj.toPixels(item.getPoint(), p);

if (hitTest(item, marker, t.x - p.x, t.y - p.y)  ......    

Original issue reported on code.google.com by bind...@gmail.com on 21 May 2013 at 4:59