How to detect the single tap on the map view, I did not find any function for this in MGLMapViewDelegate.
How to detect the single tap on the map view mapbox iOS SDK
589 Views Asked by RockyAo At
1
There are 1 best solutions below
Related Questions in MAPBOX
- Mapbox.js - click item on list and pan to the marker and show popup
- mapbox/leaflet: block zoom if tiles are not available
- How to Stop getting the users location in MapBox
- Color transition effect in Leaflet.js?
- How can I get the position of a specific marker on mapbox?
- Mapbox filters and tabbed tooltips not working together
- How to disable default popup for L.mapbox.featureLayer?
- Exporting mapbox maps into pdf using phantomjs doesnt load featurelayer and geoJson layer
- Rebind Mapbox popups after filtering
- Prevent plotting scaled point with zero value, Mapbox, leaflet
- resulting HTML from $compile(custom-directive) doesn't bind {{values}}
- Customizing Mapbox Callout with HTML on iOS
- In leaflet/mapbox, why can't I set the duration of `map.fitBounds`?
- GeoJson data not working while add KML coordinates?
- Load GeoJSON into layer from a URL?
Related Questions in MAPBOX-IOS
- Problem with MapBox PointAnnotations with data from Alamofire
- How to make MGLSymbolStyleLayer dynamic
- mapbox geocoding api used in Unity bug on iOS
- Mapbox (iOS) user annotations covering/preventing touch events from other annotations - use User annotations hit test
- Converting GPS coordinates to Metal Layer coordinates for Mapbox Maps
- How can I use the LayerPosition.at() method effectively in Mapbox iOS SDK?
- How do I use lineSortKey in Mapbox iOS SDK?
- Building an expression dynamically using Mapbox Maps iOS SDK v10?
- How can I retrieve the features a given coordinate point sits in?
- Update Mapbox Studio defined features' properties from iOS SDK?
- MGLSymbolStyleLayer has text can't show when offline
- Is there a way to have a single icon along a way?
- Custom SVG not shipping with Mapbox style, unable to add pattern to MGLBackgroundStyleLayer
- Allow users to draw their own route
- Mapbox MGLAnnotations not rendering on MapView for Mapbox iOS
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)
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?
Finally, I found a way to detect it. I write a subclass of the MGLMapView and override the touchEnded function. When you tap on the annotations it only called the touchBegin function. when touching on the map view it called both touchBegin and touchEnded. When touching on the polyline or polygon, it will call the delegate function didSelectAnnotations.