Can't press ShapeSource on top of UserLocation
See original GitHub issueHello,
I have a SymbolLayer
located underneath the UserLocation
, and I wish the SymbolLayer
to be pressable.
But it seems it can’t be done: when I press the icon, it is actually the UserLocation
which is pressed, and the UserLocation
onPress
event doesn’t have any argument and doesn’t have a pointerEvents
prop or equivalent.
Is there a way to get to the SymbolLayer
?
Again, great repo, and greater to become, thanks all for the work done !
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
How to use user press as Feature for MapboxGL ShapeSource?
I created a React Native functional component and try to create a new point at the position where the user presses:
Read more >rnmapbox/Lobby - Gitter
Right now I'm using a ShapeSource that has a child CircleLayer . The ShapeSource has a geometry created by using the point function...
Read more >mapbox - Bountysource
This will enable users to place custom views on top of the map with some built ... to ShapeSource with specific icon and...
Read more >Namespace Telerik.Windows.Controls.Map - API Reference
2-way binding can't be specified. ExtendedDataProvider ... Determines where to place Label on top of the element or between two of them. LabelLocationMode....
Read more >expo you may need an appropriate loader to handle this file ...
Top Answer. Next. Answered on Oct 25, 2019. The issue is webpack doesn't understand React's JSX syntax so it's unable to handle this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright, with a proper utilisation of
belowLayerID
andaboveLayerId
, I got this working. SUppose yourSymbolLayer
within yourShapeSource
has anid
ofmarkersSymbol
, here is the code I used for theUserLocation
@kristfal I don’t think this is a narrow usecase… If anyone has custom markers rendered (think of the earthquake example) which are clickable, none can be clicked if they are within a 1inch by 1inch square of UserLocation…