summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView.mm
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] MGLMapView logging improvements. (#13776)Fabian Guerra Soto2019-01-221-1/+3
| | | | | Added NSEdgeInsets to NSString function to improve the debugging on macOS. Added debug logs to MGLMapView.
* [ios] Partially offscreen annotations (without callouts) are no longer moved ↵Julian Rex2019-01-221-25/+44
| | | | on-screen (#13727)
* [macos] Fixes MGLMapView.visibleAnnotations (#13745)Julian Rex2019-01-161-1/+1
|
* [ios, macos] Fixes a bug where the animated parameter of -[MGLMapView ↵Julian Rex2019-01-091-14/+14
| | | | selectAnnotation:animated:] was ignored. (#13689)
* [ios, macos] Added missing mapViewDidBecomeIdle for iOS. Fixed typo. (#13666)Julian Rex2019-01-041-1/+1
|
* [docs] EnterIdle -> BecomeIdleChris Loer2018-12-111-5/+5
|
* [core, darwin, android] Add onDidEnterIdle to MapObserver.Chris Loer2018-12-111-0/+14
| | | | didEnterIdle fires whenever render completes and no repaint is scheduled.
* [ios, macos] Harmonize bundle identifiersMinh Nguyễn2018-11-151-3/+2
| | | | For consistency with each other and with their product name and module name, the iOS and macOS map SDKs now have a bundle identifier of com.mapbox.Mapbox, whether in the form of a static or dynamic framework. The logging subsystem identifier has also been changed to match.
* [ios, macos] Logging. (#13235)Fabian Guerra Soto2018-11-141-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Update the logging subsystem to platform agnostic. * [ios, macos] Add coordinate to string function. * [ios, macos] Add BOOL to string function. * [ios, macos] Add tracing logs. * [ios, macos] Add tracing logs to generated style classes. * [ios, macos] Split logging categories accordingly to MGLLoggingLevel. * [ios, macos] Log network requests. * [ios, macos] Migrate NSAssert to MGLAssert. * [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt. * [ios, macos] Fix logger string specifier for the line parameter. * [ios, macos] Add logs to shapes classes. * [ios, macos] Add logs to offline classes. * [ios, macos] Add logs to annotation classes. * [ios, macos] Add logs to foundation classes. * [ios, macos] Fix snapshotter size logging. * [macos] Add logs to map view. * [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert. * Log size test * [ios, macos] Add logging conditional compilation flag. * [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition. * [ios, macos] Remove verbose logging for release builds. * [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D. * [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods. * [ios, macos] Fix logging grammar, format, function names. * [ios, macos] Remove compilation flag, rename flags.
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-4/+4
|
* [macos] Removed redundant sign flipMinh Nguyễn2018-10-301-1/+1
| | | | Fixed an issue where the mbgl::CameraOptions’ heading was misinterpreted as going counterclockwise instead of clockwise.
* [ios, macos] Removed extraneous radian-degree conversionsMinh Nguyễn2018-10-261-4/+4
|
* Add a custom logging for the Mapbox Maps SDK for iOS.Fabian Guerra2018-10-261-0/+3
|
* [ios, macos] Distinguish between viewing distance and altitudeMinh Nguyễn2018-10-011-1/+1
| | | | +[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
* [ios, macos] Add crossSourceCollissions property. (#12941)Fabian Guerra Soto2018-09-261-1/+2
| | | | | | | | * [ios, macos] Add crossSourceCollissions property. * [ios, macos] Add perSourceCollisions property. * [ios, macos] Update changelogs.
* [ios, macos] Allow -convertCoordinateBounds to span antimeridianNadia Barbosa2018-09-041-5/+21
|
* Add enabled property to MGLShape (#12352)Jordan Kiley2018-08-201-1/+5
| | | | | | | | | | | | | | * [ios, macos] Add -[MGLMapViewDelegate mapView:canSelectAnnotation:] method. * [ios, macos] Update changelogs. * [ios, macos] Add mapView:canSelect: integration tests. * [ios, macos] Change semantics to shape annotations. * [ios, macos] Update changelogs. * [ios, macos] Update shapeAnnotationIsEnabled documentation, improve code readability.
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-0/+26
|
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-171-2/+12
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mapbox-gl-js # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/gradle/dependencies.gradle # platform/darwin/src/MGLVectorTileSource.mm # platform/darwin/src/MGLVectorTileSource_Private.h # platform/ios/CHANGELOG.md # src/mbgl/style/expression/compound_expression.cpp
| * [ios, macos] Make NSPredicate+MGLAdditions public. (#11810)android-v6.1.0Fabian Guerra Soto2018-05-041-1/+1
| |
| * [ios, macos] Fix for camera movement when selecting visible annotations (#11731)Julian Rex2018-04-241-1/+11
| |
* | [ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 (#11776)Jason Wray2018-04-271-25/+25
|/ | | | | | | | | | | | | | | | | | | * [ios] Remove iOS 8 conditionals * [ios, macos] Bump pod deployment targets * [ios, macos] Add changelog entries * [ios, macos] Update docs * Remove unnecessary selector-based version checks * Update SQLite note * [ios, macos] Replace lightweight generics macros with direct use Lightweight generics for Foundation collections are available everywhere with the bump to iOS 9 and macOS 10.11. * Update deprecated macOS method
* [ios,macos] Selecting offscreen annotation pans map to fit annotation & ↵Julian Rex2018-03-211-6/+93
| | | | callout view (#3249, #9790)
* [ios, macos] Fix an issue where a wrong annotation may selected if ↵Lloyd Sheng2018-03-131-25/+22
| | | | | | | | | | | | annotations were set close together (#11438) * [ios] Fix an issue where wrong annotation may selected when annotations very close #10734 * [macos] Fix an issue where a wrong annotation may selected if annotations were set close together * update the iOS change log and the macOS change log * Fix an issue where the comment referenced to the wrong variable name
* [ios, macos] Unwrap coordinate boundsMinh Nguyễn2018-02-211-26/+18
| | | | Updated coordinate bounds conversion methods to use the beyond-±180 method to indicate that the bounds extends beyond the antimeridian. Also copyedited conversion documentation.
* Merge branch 'release-agua' into masterupstream/fabian-merge-release-aguaFabian Guerra2018-01-041-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # cmake/core-files.cmake # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/text/LocalGlyphRasterizer.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/LocalGlyphActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationTintActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_local_glyph.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml # platform/darwin/src/MGLMapSnapshotter.mm # platform/darwin/src/MGLRendererConfiguration.h # platform/ios/CHANGELOG.md # platform/ios/DEVELOPING.md # platform/ios/INSTALL.md # platform/ios/README.md # platform/ios/resources/bg.lproj/Localizable.strings # platform/ios/resources/es.lproj/Localizable.strings # platform/ios/resources/vi.lproj/Localizable.strings # platform/ios/src/MGLMapView.mm # platform/macos/macos.xcodeproj/project.pbxproj # src/mbgl/text/glyph_manager.cpp
| * [darwin, macos] Rename Info.plist key for consistencyAndrew Kitchen2018-01-031-8/+0
| | | | | | | | Also removes related dead code in macos MGLMapView.mm
| * [darwin, ios, macos] Introduces an MGLRendererConfiguration classAndrew Kitchen2018-01-031-4/+4
| | | | | | | | | | | | Instructions for enabling client-side rendering of CJK glyphs live in this header, and this class provides the rest of the values needed for instantiating the renderer on iOS and macOS.
| * [ios, macos] Adds support for specifying an ideographic font family nameAndrew Kitchen2018-01-031-6/+14
| | | | | | | | | | Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist will result in CJK glyphs being rasterized on demand (#10522)
| * [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2018-01-031-5/+5
| | | | | | | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
| * [macos] Fixed logo view distortion on macOS High SierraMinh Nguyễn2017-11-301-1/+1
| | | | | | | | Only the logo view’s baseline is aligned to the attribution view’s baseline; the X-height doesn’t need to be aligned. Previously, macOS ignored the X-height constraint inferred from the alignment rect, but now it honors it in addition to the baseline.
| * [ios, macos] Fix an issue that triggers didSelectAnnotations for ↵Fabian Guerra2017-11-301-1/+1
| | | | | | | | MGLAnnotationImage based annotations.
* | [darwin, macos] Rename Info.plist key for consistencyAndrew Kitchen2017-12-111-8/+0
| | | | | | | | Also removes related dead code in macos MGLMapView.mm
* | [darwin, ios, macos] Introduces an MGLRendererConfiguration classAndrew Kitchen2017-12-111-4/+4
| | | | | | | | | | | | Instructions for enabling client-side rendering of CJK glyphs live in this header, and this class provides the rest of the values needed for instantiating the renderer on iOS and macOS.
* | [ios, macos] Adds support for specifying an ideographic font family nameAndrew Kitchen2017-12-111-6/+14
| | | | | | | | | | Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist will result in CJK glyphs being rasterized on demand (#10522)
* | [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2017-12-111-5/+5
| | | | | | | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
* | [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-291-1/+1
|/
* [ios, macos] Center shape annotation's callout when offscreen. (#10255)Fabian Guerra Soto2017-11-011-7/+7
| | | | | | * [ios, macos] Center annotation's anchor to tap point when coordinate center is offscreen. * [ios, macos] Update changelogs.
* [ios, macos] Iterate over point and shape annotations. (#10262)Fabian Guerra Soto2017-10-271-28/+30
|
* [ios, macos] Add selection support to MGLMultiPoint annotations. (#9984)Fabian Guerra Soto2017-10-181-23/+52
| | | | | | * [ios, macos] Add selection support to MGLMultiPoint annotations. * [ios, macos] Update changelogs.
* [android][ios][macOS] Implement bindings for `Map::cameraForGeometry`. On ↵Asheem Mamoowala2017-10-091-4/+18
| | | | macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
* Preserve depth buffer between 3D layers + optimize render order (#9931)Lauren Budorick2017-09-211-0/+4
| | | Port of https://github.com/mapbox/mapbox-gl-js/pull/5101: adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-261-3/+2
|
* [ios][macos] manage backendscope in renderer frontendIvo van Dongen2017-07-251-5/+1
|
* [android][glfw][ios][macos][node][qt] rename backend to renderer backendIvo van Dongen2017-07-181-3/+3
|
* [ios][macos] rendering interface changesIvo van Dongen2017-07-181-15/+21
|
* [android][glfw][ios][macos][node][qt] split backend from mapobserverIvo van Dongen2017-07-181-2/+2
|
* Merge branch 'release-ios-v3.6.0-android-v5.1.0'Tobrun2017-07-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # .travis.yml # circle.yml # cmake/core-files.cmake # include/mbgl/style/function/composite_function.hpp # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/constants/MyBearingTracking.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/constants/MyLocationTracking.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationSource.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/TrackingSettings.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/Light.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/Position.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/light.java.ejs # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/LightTest.java # platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/light.junit.ejs # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MockLocationEngine.java # platform/android/dependencies.gradle # platform/android/src/native_map_view.cpp # platform/darwin/scripts/generate-style-code.js # platform/darwin/src/MGLGeometry_Private.h # platform/darwin/src/MGLLight.h # platform/darwin/src/MGLLight.mm # platform/darwin/src/MGLSource.h # platform/darwin/src/MGLStyle.h # platform/darwin/src/MGLStyle.mm # platform/darwin/test/MGLLightTest.mm # platform/default/default_file_source.cpp # platform/ios/CHANGELOG.md # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/resources/Images.xcassets/default_marker.imageset/default_marker.pdf # platform/macos/CHANGELOG.md # scripts/generate-shaders.js # src/mbgl/layout/symbol_layout.cpp # src/mbgl/programs/program.hpp # src/mbgl/programs/symbol_program.hpp # src/mbgl/programs/uniforms.hpp # src/mbgl/renderer/frame_history.cpp # src/mbgl/renderer/paint_property_binder.hpp # src/mbgl/shaders/line.cpp # src/mbgl/shaders/line_pattern.cpp # src/mbgl/shaders/line_sdf.cpp # src/mbgl/sprite/sprite_atlas.hpp # src/mbgl/style/layers/line_layer_properties.hpp # src/mbgl/style/sources/geojson_source.cpp # src/mbgl/style/style.cpp # src/mbgl/text/glyph_atlas.hpp # src/mbgl/tile/geometry_tile.cpp # src/mbgl/tile/geometry_tile.hpp # test/style/style.test.cpp
| * [macos] Fixed cursor shifting after drag gestureMinh Nguyễn2017-06-291-1/+1
| | | | | | | | | | | | When redisplaying the mouse cursor after a modified drag gesture, incorporate the conversion from view coordinates to window coordinates. Previously, this code performed the conversion but threw away the results. Fixes #8670.
| * Migrate to GL JS–powered feedback form (#9078)Minh Nguyễn2017-05-301-5/+10
| | | | | | | | | | | | | | | | | | | | * [ios, macos] Updated feedback URL * [ios, macos] Add referrer, heading, pitch to feedback URL * [ios, macos] Updated changelogs for feedback changes * [ios] Vary referrer by platform