cc35f5a2a7f78cabdb75f75966fb72fa5f447c62
Corrected annotation image alignment rects used in positioning the popover and hit testing for selection. The alignment rects were flipped in a couple places and we were getting lucky until now. Query for any point annotation within a slop area that extends by the maximum image dimensions in each direction, then filter by annotations whose images actually hit-test. (So to select an annotation that has a doughnut image, you have to click on the actual doughnut, not its hole.) It’s a fuzzy hit test with a four-pixel-radius slop area, so there shouldn’t be any clicking precision issues. Clicking on an annotation while a callout is open merely closes the callout popover, so it isn’t possible to go immediately from one callout to another. Since we still want to cycle through coincident annotations, keep track of the last selected annotation ID. Clicking on a visible point annotation whose center is out of the visible bounds now selects the annotation. Ported the callout-positioning portion of these changes to iOS. Also refactored some geometry conversion methods and removed a redundant constant.
Mapbox GL Native
An OpenGL-based renderer for Mapbox Vector Tiles, consisting of a C++ library for OS X and Linux and SDK bindings for iOS, Android and Node.js.
This repository is for development on Mapbox GL Native itself.
If you want to use products based on Mapbox GL, check out:
- Mapbox Mobile — iOS and Android native development libraries
mapbox-gl-native- Node.js native modulereact-native-mapbox-gl— React Native libraryqmapboxgl— Qt libraryMapbox Cordova Plugin- Telerik's Apache Cordova plugin
--
Targets
- Ubuntu Linux
- OS X 10.10+
- iOS 7.0+
- iPhone 4S and above (5, 5c, 5s, 6, 6 Plus)
- iPad 2 and above (3, 4, Mini, Air, Mini 2, Air 2)
- iPod touch 5th gen and above
- Android 4.0.3+ (API level 15+)
See INSTALL.md for development setup and install instructions, including dependencies.
Description
Languages
C++
54%
Kotlin
11.8%
Java
11%
Objective-C++
9.7%
Objective-C
5.8%
Other
7.5%