Is it possible to make an MGLPolyLine touchable/selectable/have user interaction? In my project, the user needs to touch the polyline. There was this question asked before but it is outdated by about 2 years. Have they (MapBox) updated this?
Is it possible to make MGLPolyLines selectable? - Swift, MapBox
404 views Asked by AudioBubble At
1
There are 1 answers
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in SWIFT4
- Nested Tableview inside CollectionView not loading from first index
- Face comparison of two images using Tensorflow Lite and Google ML Kit library
- Tried to implement the TLS/SSL connection from TCP connection in Swift 4 using Network library
- Is it possible to make 2 subviews with same z index?
- How to Make array of username clickable in UI Label each username should redirect to another page without using @, # , I want every username clickable
- How to check enum in same value using switch in swift
- Swift 5 very random and hardly identifiable crashes
- Crash in custom cell when leaving and re entering app
- Swift migration: 'Notification' is ambiguous for type lookup in this context' in some places
- UIApplication.keywindow ,must be used from main thread only warning
- Replace Gradient colors with ThemeSwift library (Library used for App Theme management)
- iOS 15 - UICollectionView disappear while scrolling only in iOS 15
- Create Long length Haptic in iWatch swift
- How to allow only single UIViewController to rotate upside down with Xcode?
- How can I use old binary library TinyCrayon on latest iOS project?
Related Questions in MAPBOX
- How can i show the layer like polygon cover all marker in mapbox
- How to apply mask (transparent area) in mapboxGL?
- map distance in pixels to meters
- Accessibility checker issue with mapbox (mapboxgl-ctrl-attrib-inner)
- Efficient way to import a few hundred images
- Viewing Mapbox studio map on mobile interface
- Im using mapbox sdk navigation v2 and have a problem with the cycling view
- Popup not attached to marker in Nuxt3
- Mapbox GL JS - My icon and text disappear from the liner at zoom 14 and greater. How to show until max zoom?
- Direction waypoints are not following streets properly
- How do you extract 'miles' from a Mapbox directions container and create separate container with miles?
- Flutter Mapbox - Execution failed for task ':app:checkDebugAarMetadata'. How to resolve?
- Chose what Places of Interest should show up on my map
- Styling a mapbox 3d buildings layer with external GeoJSON file
- Mapbox GL js: How to enumerate all textfield properties to display a sub element
Related Questions in POLYLINE
- leaflet polyline, how to add a property to the point?
- SwiftUI Gradient Polyline on Map View
- Leaflet map turns white when adding coordinates for Polyline
- Curvature and traffic light data from a polyline in heremaps
- Generate polyline in paraview by loading data from .csv files
- Is it possible to export the results of the ELevation Profile tool as a CSV file?
- How to calculate the similarity(0%-99%) of two polylines in Python
- How to create a rectangle of polylines using Autodesk FBX SDK
- PolyLine Not showing With ReactLeaflet
- How to achieve color gradient across polyline in R
- Feature to polygon does not retain field from polyline
- Difference between polylines and MultiLineString geometry in QGIS?
- Leaflet redraw polyline performance
- Devextreme JS - How to draw a line between 2 markers?
- Plotting a track from a GPX file without a map using JavaScript
Related Questions in MGLMAPVIEW
- How to add blur effect around the circle on the map Mapbox Maplibre GL Native
- How to zoom in and out with buttons on MGLMapView using Swift?
- Centering a map annotation to the top quarter of the screen
- iOS Mapbox MGLMapView: fit an image to a MGLMapView
- Dealing with multiple annotations at the same address in an MGLMapView using SwiftUI and Mapbox
- How do I hide the logoView in the NavigationMapView for a NavigationViewController?
- How to disable user interaction for MGLAnnotation?
- How do I extract an Int value from NSExpression?
- When are swift functions called in programs where no function call is visible?
- MapBox: MGLineStyleLayer drawn over Annotations
- How can I detect a change in zoom level in mapbox map?
- MGLPolyLine color change does not work - Swift 4, Mapbox
- Is it possible to make MGLPolyLines selectable? - Swift, MapBox
- How to change the color of a MGLPolyline?
- How to bring UIButton to front of Mapbox view
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I've just checked back and it looks like this has been implemented though I'm not sure which Mapbox release rolled this out.
If you take a look at the simple Mapbox example, Annotation Models, that demos an MGLPolyline and interspaced circular annotations, you can make a simple mod to the supplied code and see for yourself. The demo looks like this:
If you look into the viewController code, add a couple of lines below the polyline creation:
Now you can tap and see a basic callout:
This example subclasses MGLPolyline (CustomPolyline) so that its appearance can be altered slightly but that doesn't change anything with regards to the tappability.