Comments (2)
Hey @marcoboerner did you try to set GestureManagerDelegate
and listen to pan gesture begin/end events?
You may do it like this
mapView.gestures.delegate = self
func gestureManager(_ gestureManager: GestureManager, didBegin gestureType: GestureType) {
switch gestureType {
case .pan:
print("start drag")
default:
break
}
}
func gestureManager(_ gestureManager: GestureManager, didEnd gestureType: GestureType, willAnimate: Bool) {
switch gestureType {
case .pan:
print("end drag")
default:
break
}
}
func gestureManager(_ gestureManager: GestureManager, didEndAnimatingFor gestureType: GestureType) {}
Please, let us know whether is solves your use case or not
UPD
Seems like I misunderstood the question and the right option is to call beginGesture()
and endGesture()
which is more generic implementation of previous 2 drag methods
from mapbox-maps-ios.
@aleksproger thanks for the info, that seems to work! 👍
from mapbox-maps-ios.
Related Issues (20)
- Jerky Movement of ViewAnnotation HOT 4
- Adding system UIImages to map gives `mismatched image size` HOT 1
- MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding HOT 3
- Pure SwiftUI Map Snapshot Capabilities HOT 3
- Mapbox Maps SDK crashes with Symbol layer! HOT 1
- Crash when loading glb model files via addStyleModel HOT 5
- App freezes when clicking the attributionButton on iOS 17.4.1 HOT 1
- iOS: camera.zoom calculates smaller zoom for camera(for:) initially HOT 4
- FollowPuckViewportState suffers a visual delay when target zoom level is equal to the current zoom level of the map HOT 1
- SDK Crash : DefaultLocationProvider.swift - Attempted to read an unowned reference but object was already deallocated HOT 2
- MTLTextureDescriptorInternal validateWithDevice: crash HOT 1
- Crash in mapbox::common::CleanupManager::cleanup() HOT 1
- Polyline "Cannot assign value of type 'String.UnicodeScalarView.SubSequence'" HOT 6
- Model Position Incorrectly Changed from Centre for some Coordinates HOT 6
- ITMS-91056: Invalid privacy manifest HOT 5
- Create CircleLayers with a Physical Unit Radius HOT 1
- No way to customize font on SwiftUI PointAnnotation HOT 1
- Position of layers in PointAnnotationManager and Cluster code does not affect the order on the screen HOT 2
- ITMS-91056 HOT 1
- I need the initial center latitude and longitude for the map view after loading markers in swiftUI. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-maps-ios.