Skip to content

Commit

Permalink
Fix: Incorrect query features result on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
orca-adria committed May 10, 2024
1 parent 19ce671 commit 86ee0b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,8 @@ open class RNMBXMapView(private val mContext: Context, var mManager: RNMBXMapVie
fun queryRenderedFeaturesInRect(rect: RectF?, filter: Expression?, layerIDs: List<String>?, response: CommandResponse) {
val size = mMap!!.getMapOptions().size
val screenBox = if (rect == null) ScreenBox(ScreenCoordinate(0.0, 0.0), ScreenCoordinate(size?.width!!.toDouble(), size?.height!!.toDouble())) else ScreenBox(
ScreenCoordinate(rect.right.toDouble(), rect.bottom.toDouble() ),
ScreenCoordinate(rect.left.toDouble(), rect.top.toDouble()),
ScreenCoordinate(rect.right.toDouble(), rect.bottom.toDouble() ),
)
mMap.queryRenderedFeatures(
RenderedQueryGeometry(screenBox),
Expand Down

0 comments on commit 86ee0b4

Please sign in to comment.