summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* Bump gl-js pin: ignore line-gradient properties + shaders, use new ↵upstream/expression-specLauren Budorick2018-04-165-11/+22
| | | | expression style-spec taxonomy
* [core] Add expression filter support (#11251)Lucas Wojciechowski2018-03-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Remove Filter::operator()(const Feature&) * WIP * WIP * WIP * WIP * Hook up expression filter evaluator * Replace `shared_ptr` with &reference * Fill in implementation of `void operator()(const ExpressionFilter&)` * Fix failing tests * Switch back to a shared_ptr per chat with @anandthakker * Fix benchmark compilation * Shot in the dark to fix CI * Shot in the dark to fix CI (part 2) * Shot in the dark to fix CI (part 3) * In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in Converter<Filter>::operator() whether to parse the incoming JSON as an ExpressionFilter or one of the legacy filter types * Remove bool Filter::operator()(const GeometryTileFeature&) const * Ensure the map zoom is passed into filtering operations wherever applicable * Add expression filter tests * Addressed PR feedback * Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)` * Fix formatting& nit
* [ios, macos] add tileset encoding option to darwin sources (#11274)Molly Lloyd2018-02-264-0/+66
| | | | | | | | | | * add tileset encoding option to darwin sources * correct style guide * link out to dem encoding docs * markdownify comments
* [ios] Disable -[MGLExpressionTests testConditionalExpressionObject] on iOS 8upstream/fb-ios-test-and-warning-fixesJason Wray2018-02-151-17/+21
| | | | Temporarily disable this test until iOS 8 compatibility is added.
* [ios] Bump testMGLMapSnapshotter timeout to 5sJason Wray2018-02-151-1/+1
| | | | | | | | Timing based tests are inherently flakey and prone to failure on slow CI: > Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone X' (3.375 seconds) > Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone 8' (3.413 seconds) > Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone 7' (2.944 seconds)
* [ios] Fix iOS 8's broken pluralization in MGLCoordinateFormatterTestsJason Wray2018-02-151-3/+18
|
* [ios] Fix type conversion warnings in MGLFeatureTestsJason Wray2018-02-151-10/+17
| | | | Fixes: object of type 'MGLPointAnnotation/MGLPolyline *' is not compatible with array element type 'MGLShape<MGLFeature> *' [-Wobjc-literal-conversion]
* [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-1512-12/+837
| | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* [core] Rename "onLowMemory" to "reduceMemoryUse".Chris Loer2018-02-141-2/+2
| | | | | Android still calls "reduceMemoryUse" only while handling a low memory event. iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
* Merge tag 'ios-v3.7.4' into masterFabian Guerra2018-02-131-164/+175
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # include/mbgl/style/conversion/tileset.hpp # include/mbgl/util/tileset.hpp # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/ios/CHANGELOG.md # platform/ios/ios.xcodeproj/project.pbxproj # platform/macos/CHANGELOG.md # src/mbgl/layout/symbol_projection.cpp # src/mbgl/renderer/tile_pyramid.cpp # src/mbgl/style/conversion/tileset.cpp
| * [ios, macos] Fix memory leaks in MGLMapSnapshotter. (#11133)Fabian Guerra Soto2018-02-121-164/+175
| |
| * [ios, macos] Added option to restrict tile source to boundsMinh Nguyễn2018-02-084-0/+42
| | | | | | | | Cherry-picked from c3bf7c55a1f648e57c3853d555ff5f63c989f8c4.
* | [ios, macos] Added option to restrict tile source to boundsMinh Nguyễn2018-02-084-0/+42
| |
* | [ios, macos] Copyedited computed source wrapping optionsupstream/1ec5-custom-wrap-docsMinh Nguyễn2018-02-072-18/+25
| | | | | | | | Renamed MGLShapeSourceOptionWrapCoordinates to MGLShapeSourceOptionWrapsCoordinates and MGLShapeSourceOptionClipCoordinates to MGLShapeSourceOptionClipsCoordinates. Copyedited their documentation comments.
* | Add options for Custom Geometry Source types to enable clipping and wrapping ↵Asheem Mamoowala2018-02-072-0/+37
| | | | | | | | geometry (#11041)
* | [core] factor out RunLoop::wake()Konstantin Käfer2018-02-061-5/+2
| |
* | Merge branch 'release-agua' into masterupstream/fabian-release-agua-masterFabian Guerra2018-01-251-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # include/mbgl/style/conversion/layer.hpp # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
| * [ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point.Fabian Guerra2018-01-251-1/+1
| |
* | [ios, macos] Hook up hillshade style layers, raster DEM sources to iOS/macOS ↵Minh Nguyễn2018-01-2514-62/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11036) * [ios, macos] Finished implementing MGLHillshadeStyleLayer * [macos] Added icon for hillshade layer Also set the background layer icon to mirror in right-to-left locales. * [ios, macos] Implemented raster DEM source * [macos] Added Enhance Terrain debugging command * [ios, macos] Simplified raster DEM source example
* | [ios, macos] Raster style layers are used with image sources tooMinh Nguyễn2018-01-242-5/+12
| |
* | [core] update mapbox-gl-js submodule pinKonstantin Käfer2018-01-243-34/+0
| | | | | | | | | | * disables transition render test (transitions are not supported with Still image rendering in Node.js) * removes support for hillshade-illumniation-direction-transition
* | [ios, macos] Removed heatmap layer suppression from Darwin code generatorMinh Nguyễn2018-01-241-3/+0
| |
* | [build] Write out a list of files generated by our code generator scriptsKonstantin Käfer2018-01-241-0/+3
| | | | | | | | This will help us tracking deleted/modified/added files
* | [build] Always use style-code's writeIfModified to unify file updatesKonstantin Käfer2018-01-242-20/+17
| |
* | [build] Add temporary modifications to style spec + shadersKonstantin Käfer2018-01-241-1/+1
| | | | | | | | This ensures that the generated code matches what is checked in. Remove those temporary modifications once we add the features to master.
* | Reimplement style values atop NSExpression (#10726)Minh Nguyễn2018-01-2464-6915/+7197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Import headers, not implementation files * [core] Added accessors for various expression parameters Added missing parameter accessors to various expression operator classes, as well as a method on InterpolatorBase and Step that enumerates the stops and their values. * [ios, macos] Silenced warning in test of error condition * [ios, macos] Made MGLSphericalPosition boxable * [ios, macos] Implemented array enumeration during conversion * [ios, macos] Temporarily ignore heatmap layer type * [ios, macos] Migrated MGLSymbolStyleLayer.text to NSExpression MGLSymbolStyleLayer.text is now of type NSExpression instead of MGLStyleValue, as a first step toward migrating the entire layer API from style values to expressions. Implemented conversions from NSExpression to JSON arrays and vice versa. The most common NSExpression functions are now converted into style expressions, but not all of the most common style expression operators are supported yet. * [ios, macos] Implemented string coercion * [ios, macos] Color literals * [ios, macos] Null constant expressions * [ios, macos] Convert dictionary literals * [ios, macos] Interpolation expressions * [ios, macos] to-boolean, to-number, get from object * [ios, macos] Variable expressions Implemented custom expression functions for assigning and referring to variables within the context of an expression. Variables are assigned via a “context dictionary” and applied to an subexpression that is given as another argument to the same expression. Also implemented built-in variable expressions for zoom level and heatmap density. * [ios, macos] Convert colors, offsets, padding in expressions to JSON objects * [ios, macos] Expression-based style property getters Implemented a conversion from mbgl::style::PropertyValues to Objective-C JSON objects, which are then converted to NSExpressions. * [ios, macos] Consolidated property value–expression conversion in MGLStyleValueTransformer * [ios, macos] Predicate and expression guide Extracted documentation about predicates from a documentation comment in MGLVectorStyleLayer.h to a new jazzy guide. Added details about NSExpression support as well. Began updating the “For Style Authors” guide to reflect the transition from style values to expressions. * [ios, macos] Updated style authoring guide Updated the Information for Style Authors guide to discuss expressions instead of style functions. Included a table mapping style specification expression operators to NSExpression syntaxes. * [ios, macos] Migrated codegen templates to expressions * [ios, macos] Applied expression changes via codegen Ran make darwin-style-code. * [macos] Migrated macosapp to expressions * [ios, macos] Updated style function guide This guide needs to be thoroughly rewritten, but for now the example code has been migrated to expressions. * [ios, macos] Eviscerated style function tests * [ios, macos] Updated changelogs * [ios] Migrated iosapp to expressions * [ios, macos] Exposed JSON conversion methods publicly * [ios, macos] Removed MGLStyleValue, MGLStyleFunction
* | [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-233-0/+907
| |
* | [ios, macos] Converted strings files to UTF-8Minh Nguyễn2018-01-1911-0/+0
| |
* | Restores fix to MGLOpenGLStyleLayer memory-related crash (#10765)Andrew Kitchen2018-01-193-14/+2
| | | | | | | | Revert this commit to see integration test fail.
* | Adds an integration test harness to the iOS projectAndrew Kitchen2018-01-193-2/+14
| | | | | | | | | | This will allow us to write lightweight integration tests between MGLMapView and the core renderer. Also includes a test for the recent custom layer memory fix, reverting the fix in order to demonstrate the failing test.
* | [android, ios, macos] Added Hebrew localizationMinh Nguyễn2018-01-191-0/+297
| |
* | [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-103-11/+16
| |
* | [ios] Fix and expand accessibility feature transliterationJason Wray2018-01-104-0/+69
| | | | | | | | | | - Fixed pre-iOS 11 compatibility. - Expanded transliteration to all supported languages.
* | [ios, macos, android] Commit accumulated `make style-code` updatesJohn Firebaugh2018-01-108-61/+34
| | | | | | | | Manually ignoring all heatmap and hillshade related changes.
* | [ios, macos] Add documentation overrides for icon-image and text-fieldJohn Firebaugh2018-01-101-0/+6
| |
* | [build] Special case heatmap-color so it doesn't crash `make style-code`John Firebaugh2018-01-101-1/+5
| |
* | [ios, macos] Fixed inconsistent indentationMinh Nguyễn2018-01-101-11/+11
| |
* | [ios, macos] Qualify references to properties in enum docsMinh Nguyễn2018-01-101-0/+7
| | | | | | | | jazzy requires these property references to be qualified by class names in order to auto link them.
* | [ios, macos] Update cross-refs to properties in doc commentsMinh Nguyễn2018-01-101-4/+6
| |
* | [ios, macos] Removed redundant typedefMinh Nguyễn2018-01-081-5/+0
| | | | | | Fixed a jazzy warning.
* | Merge branch 'release-agua' into masterupstream/fabian-merge-release-aguaFabian Guerra2018-01-0425-200/+396
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * [ios, macos] Update mode.hpp file pathFabian Guerra2018-01-031-1/+1
| |
| * [ios,macos] Revert ideographic->ideograph name change.Chris Loer2018-01-032-2/+2
| | | | | | | | Original GL JS name was meant to represent "font family to use for locally generating ideographs", but "ideographic font family" communicates a similar intent more concisely.
| * [ios,macos] Update docs to use Apple-friendly "PingFang" font example.Chris Loer2018-01-031-1/+1
| |
| * [ios,macos] Remove dead/non-functioning font-weight and glyph metric code.Chris Loer2018-01-031-79/+21
| | | | | | | | Add local font family to default iosapp configuration.
| * [darwin, macos] Rename Info.plist key for consistencyAndrew Kitchen2018-01-032-3/+3
| | | | | | | | Also removes related dead code in macos MGLMapView.mm
| * [darwin, ios, macos] Introduces an MGLRendererConfiguration classAndrew Kitchen2018-01-032-0/+83
| | | | | | | | | | | | 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] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2018-01-033-13/+265
| | | | | | | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
| * [ios, macos] Updated MGLImageSource exampleMinh Nguyễn2017-12-211-4/+1
| | | | | | | | Ran make darwin-update-examples to ensure that headers reflect the tested example code.
| * [ios, macos] Fixed MGLMapSnapshotter test crashMinh Nguyễn2017-12-212-10/+33
| | | | | | | | Fixed a crash in MGLDocumentationExampleTests caused by an asynchronous snapshot call that the test wasn’t waiting on, compounded by the use of a style that requires an access token (as opposed to the one-liner style that uses no remote resources. Employed some Swiftisms to fulfill expectations without making the example code look weird.