kopia lustrzana https://github.com/ge0rg/aprsdroid
Improve ontap area
rodzic
8190bc32d9
commit
f49b49b543
|
@ -373,8 +373,8 @@ class StationOverlay(icons : Drawable, context : MapAct, db : StorageDatabase) e
|
|||
val p = proj.toPixels(gp, null)
|
||||
// ... to pixel area ... to geo area
|
||||
//Log.d(TAG, "coords: " + p)
|
||||
val botleft = proj.fromPixels(p.x - 16, p.y + 16)
|
||||
val topright = proj.fromPixels(p.x + 16, p.y - 16)
|
||||
val botleft = proj.fromPixels(p.x - 50, p.y + 50)
|
||||
val topright = proj.fromPixels(p.x + 50, p.y - 50)
|
||||
Log.d(TAG, "from " + botleft + " to " + topright)
|
||||
// fetch stations in the tap
|
||||
val list = stations.filter(_.inArea(botleft, topright)).map(_.call)
|
||||
|
|
Ładowanie…
Reference in New Issue