Thread
:
App for vector renderer maps, using OpenGL ES 2.0
View Single Post
rinigus
2017-10-07 , 16:09
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#
108
MartinK and otsaloma: thank you for the feedback! We can surely write up a universal gesture area and make it similar (in some extent) to the one used by QtLocation.
As for the area, yes, it will be somewhat Mapbox GL specific due to use of pan and zoom functions.
In practice, I was thinking to have internal processing of pan, zoom (pinch and wheel) and expose
onClicked
onDoubleClicked
onPressAndHold
These signals will return pixel position, aka regular mouse area signals. If user wishes, all of them can be resolved into geocoordinates as specified by acceptedGestures(?) and would return geocoordinate as well as its sensitivity (lat/lon degrees per pixel):
onClickedGeo
onDoubleClickedGeo
onPressAndHoldGeo
Resolving coordinates takes time (signal to and back from mapboxgl) and is not always required.
I presume that such widget should satisfy our needs. When needed, we can always extend. Or am I forgetting about some signal?
Quote & Reply
|
The Following User Says Thank You to rinigus For This Useful Post:
Zeta
rinigus
View Public Profile
Send a private message to rinigus
Find all posts by rinigus