summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [ios][macos] Document that transitions using setStyleURL are not supported ↵Eric Wolfe2017-03-201-2/+2
| | | | (#8475)
* [ios] Guard against over calling pause or resumeJesse Bounds2017-03-181-0/+9
|
* [ios, macos] update iOS SDK guides (#8354)Jordan Kiley2017-03-174-6/+161
| | | | - Added DDS guide - Updated "For Style Authors" guide
* [ios, macos] Add more information to interpolation mode docs (#8425)Jordan Kiley2017-03-151-6/+13
| | | Addresses #8192 until #8354 lands.
* [ios, macos] Expanded feature querying documentationMinh Nguyễn2017-03-143-22/+62
| | | | Also fixed a couple incorrect Swift method names on macOS.
* [ios, macos] API doc revisions (#8396)Jordan Kiley2017-03-149-7/+16
| | | | | | | | - Changed `make style-code-darwin` to `make darwin-style-code` in relevant files - Added some doc clarifications: - `MGLInterpolationModeExponential` and `MGLInterpolationModeInterval` can be used with `MGLCameraStyleFunction` (I am not sure how to accurately reflect this in the documentation for `MGLCompositeStyleFunction`) - Do not add a style layer to the style property on a map view before the style has finished loading - Create individual style layers from a `MGLShapeCollectionFeature`
* [ios, macos] Fixed documentation parameter mismatchesMinh Nguyễn2017-03-133-6/+7
| | | | Also enabled compiler warnings about incorrect Doxygen commands.
* [ios, macos] Resolved unused variable warningsMinh Nguyễn2017-03-131-2/+2
| | | | Resolved unused variable warnings in Release configuration that occurred because they were only used within NSAssert() invocations, which are omitted from Release builds.
* [ios, macos] Corrected polyline equalityMinh Nguyễn2017-03-101-0/+4
| | | | | | | | Now that annotation classes override -isEqual:, it’s no longer appropriate to rely on -isEqual: or -containsObject: to check for the preexistence of an annotation. Those methods become deep equality tests, which have worse performance. Checking for identity allows the developer to add a polyline and polygon with identical coordinates, title, etc. to the map. Implemented a missing -[MGLPolyline isEqual:]. Removed outdated comments about -annotationTagForAnnotation: being expensive.
* Per-attribute transition properties on MGLStyleLayer (#8225)Fabian Guerra Soto2017-03-1026-38/+1575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties
* [macos, ios] query source featuresIvo van Dongen2017-03-106-0/+248
|
* [ios, macos] Fixed camera function exception messageMinh Nguyễn2017-03-101-3/+3
| | | | This exception message had a typo; developers would’ve been advised to use a method that doesn’t exist, due to case sensitivity. Moreover, the method has been renamed since this message was written.
* [darwin] Use explicit initialization rather than global static variables for ↵Konstantin Käfer2017-03-103-2/+7
| | | | | | | | the default RunLoop When linking Mapbox GL as a static library, the object file (MGLFoundation.o) containing the global static variable initialization was not linked into the resulting binary since it was not referenced. This resulted in the RunLoop not being initialized in the main thread. Reverts 03a14ff0003e976a4ded70d284bc80adf54bc6c9
* [ios, macos] Removed duplicated NSDate test files, improved duration ↵Fabian Guerra Soto2017-03-082-4/+15
| | | | converstion for NSDate+MGLAdditions (#8290)
* [ios, macos] Russian, Catalan, Lithuanian, Finnish, Dutch (#8256)Minh Nguyễn2017-03-087-3/+723
| | | | | | | | | | | | | | | | * [ios, macos] Updated Russian translations * [ios, macos] Added Catalan translation * [ios, macos] Completed Lithuanian translation * [ios, macos] Added Finnish translation * [ios, macos] Fixed Polish, Ukrainian declension * [ios, macos] Updated changelogs * [ios, macos] Added Dutch localization
* [ios, macos] Exclude MGLUserTrackingMode from macOSNadia Barbosa2017-03-031-15/+0
|
* [ios] Fixed conversion between Duration and NSTimeInerval (#8276)Fabian Guerra Soto2017-03-034-16/+45
|
* [ios, macos] Alias MGLStyleConstantValue to MGLConstantStyleValueJesse Bounds2017-03-031-0/+2
|
* [ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValueJesse Bounds2017-03-0312-158/+158
|
* [ios] Pause file source activity on backgroundJesse Bounds2017-03-011-0/+15
| | | | | | | | | | | This uses the pause/resume API on the default file source to pause network and revalidation activity when the host iOS application goes into the background. Activity is resumed when the host application goes into the foreground. The intention of this change is to avoid edge cases on some OSs where resources (i.e. sqlite) are not available when the host app is not visible to the user.
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-283-90/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [ios, macos] Make source removal consistent with layer removalJesse Bounds2017-02-234-13/+74
| | | | | | | | | | | | | | | This refactors the source removal methods to make them consistent with the way layers are removed. This makes removal of nonexistent sources and removal of sources of a different type but same identifier as a previously added source a no-ops. As with layers, the check at the top of the method to ensure that the raw pointer is the same as the one in mbgl for the same identifier string should make it impossible to attempt to remove a source of a different type than the one in mbgl for the same identifier. However, for consistency with the layer implementation, the reinterpret_cast has been replaced with a dynamic_cast and check for nullptr.
* [ios, macos] Simplify implementation of layer removal from map viewJesse Bounds2017-02-238-31/+44
| | | | | | | | | | | This reverts a previous change that recreated the pending and raw layer pointers if an identifier match caused a layer to be removed but the removed layer was of a different type than the layer triggering the removal This refactors the pointer replacement to use a simpler solution that returns early if the layer does not have a raw pointer loaded in the mbgl map instance.
* [core, ios, macos] Return null when removing nonexistent sourceJesse Bounds2017-02-234-6/+29
|
* [ios, macos] Recreate pending and raw layer ref when layer is removedJesse Bounds2017-02-238-21/+68
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2Minh Nguyễn2017-02-213-27/+60
|\
| * [ios, macos] Short-circuit redundant camera changesMinh Nguyễn2017-02-183-22/+55
| | | | | | | | | | | | | | | | Avoid canceling transitions (and triggering preexisting completion handlers) until we get a chance to ensure that a new transition really does have to begin. Consistently avoid mbgl transitions for redundant camera changes. Upon bailing, schedule the completion handler to run asynchronously on a delay equivalent to the requested animation duration. Added a “functional” equality method to MGLMapCamera that avoids trivial differences. Fixed invocations of XCTAssertEqualWithAccuracy() that incorrectly expressed the accuracy as a number of digits rather than a scalar tolerance.
* | [ios, macos] Smarten apostrophes after backticksMinh Nguyễn2017-02-211-9/+9
| | | | | | | | jazzy is inconsistently converting straight apostrophes that immediately follow backticks into either &lsquo; or &rsquo; from one run to the next. Smarten the apostrophe to keep it stable.
* | [ios, macos] Fixed Ukrainian pluralizationAndrey Golovin2017-02-201-0/+60
| |
* | [ios, macos] Fixed Polish pluralizationMinh Nguyễn2017-02-201-1/+39
| |
* | [ios, macos] Fixed Russian pluralizationMinh Nguyễn2017-02-201-3/+9
| |
* | [ios, macos] Polish, Russian, Spanish, Ukrainian translationsMinh Nguyễn2017-02-203-0/+130
| |
* | [ios, macos] fixed wyoming inverted coordinates (#8069)Fabian Guerra Soto2017-02-201-3/+3
| |
* | [macos,ios] add tests for MGLOfflineStorageDelegateKonstantin Käfer2017-02-201-8/+44
| |
* | [macos,ios] expose callback for transforming URLsKonstantin Käfer2017-02-202-0/+104
| |
* | [darwin] move RunLoop initialization to static variableKonstantin Käfer2017-02-203-6/+20
| |
* | [ios, macos] Convert NSColor/UIColor expressions to CSS color string valuesMinh Nguyễn2017-02-183-175/+112
| | | | | | | | When converting a constant NSExpression to an mbgl::Value, turn an NSColor or UIColor into an std::string containing a CSS color string. This allows developers to set an attribute of an MGLFeature to an NSColor or UIColor (rather than a CSS color string, which would be foreign), then use it in an MGLStyleFunction with identity interpolation.
* | [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-1712-139/+308
| |
* | Refactor: use conversion system to convert MGLStyleFunction to mbgl core ↵Anand Thakker2017-02-153-285/+386
| | | | | | | | | | types (#8026) This leverages the work already happening in `mbgl::style::conversion` to convert style functions from style-spec definitions into `mbgl::style::{Camera,Source,Composite}Function`s. In particular, this allows the conversions system to handle the differing typing requirements based on whether the output type of the style function is interpolatable or non-interpolatable.
* | [ios, macos] Marked MGLStyleFunction as abstract in docsMinh Nguyễn2017-02-101-0/+1
| |
* | [core] Introduce dedicated filter types for $type and $id special cases (#7971)John Firebaugh2017-02-096-5/+410
| | | | | | | | | | | | | | | | * [core] Introduce dedicated filter types for $type and $id special cases * [ios, macos] Special-case $id, $type in predicates Also support $id ≟ nil.
* | [ios, macos] Brazilian Portuguese, French, German, Japanese, Swedish, VietnameseMinh Nguyễn2017-02-098-0/+1364
| | | | | | | | Pulled translations from Transifex. Added locales with at least one file translated 80% or more.
* | [core, ios, macos] Refactor composite stop types and conversionsJohn Firebaugh2017-02-096-64/+68
| |
* | [ios, macos] Don't add documentation to NS_ENUMJesse Bounds2017-02-087-1105/+721
| |
* | [ios, macos] Add more bullets to style property docsJason Wray2017-02-087-462/+616
| |
* | [ios, macos] Add function and interpolation mode to style property docsJesse Bounds2017-02-087-171/+1348
| |
* | [core] Update gl-js; fix $id filters with GeoJSON sourceJohn Firebaugh2017-02-081-1/+1
| |
* | [ios, macos] Fixed runtime styling deprecation warningsMinh Nguyễn2017-02-083-92/+104
| |
* | [ios, macos] Update documentation examples to use new style functions (#7960)Jesse Bounds2017-02-083-16/+16
| |
* | [ios, macos] Document DDS enumerations (#7931)Jesse Bounds2017-02-081-4/+56
| | | | | | | | [ios, macos] Document DDS enumerations