We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapbox
default
Android
@rnmapbox/maps
10.1.0-beta.20
import React from 'react'; import { MapView, ShapeSource, LineLayer, Camera, UserLocation } from '@rnmapbox/maps'; const getBBox = ( screenPointX: number, screenPointY: number, tapMargin: number, ) => [ screenPointY + tapMargin, screenPointX + tapMargin, screenPointY - tapMargin, screenPointX - tapMargin, ]; class BugReportExample extends React.Component { render() { const mapRef = React.useRef<MapView>(null); return ( <> <MapView style={{flex: 1}} ref={mapRef} onPress={async (event: any) => { console.log('Map.onPress', event); const {screenPointX, screenPointY} = event.properties as any; const bbox = getBBox(screenPointX, screenPointY, 1); const filter = ['==', 'type', 'Point']; const featureCollection = await mapRef.current?.queryRenderedFeaturesInRect( bbox as [], filter, ); console.log('Features found: ', featureCollection?.features.length); }}> <UserLocation visible showsUserHeadingIndicator /> </MapView> </> ); } }
On pressing on the map and queryRenderedFeaturesInRect is used to query features without the optional param layerIDs triggers a crash on android.
queryRenderedFeaturesInRect
layerIDs
The method should work without passing the optional param.
No response
The text was updated successfully, but these errors were encountered:
Anyone else experiencing this issue?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
Android
@rnmapbox/maps
version10.1.0-beta.20
Standalone component to reproduce
Observed behavior and steps to reproduce
On pressing on the map and
queryRenderedFeaturesInRect
is used to query features without the optional paramlayerIDs
triggers a crash on android.Expected behavior
The method should work without passing the optional param.
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: