summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [macos, ios] query source featuresIvo van Dongen2017-03-096-0/+248
|
* [darwin] Use explicit initialization rather than global static variables for ↵Konstantin Käfer2017-03-093-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] 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
* | Add back MGLStyleFunction and re-document MGLStyleValue (#7943)Jesse Bounds2017-02-084-87/+428
| | | | | | | | [ios, macos] Add back MGLStyleFunction and re-document MGLStyleValue
* | [build, ios, macos] Simplify version portion of user agent stringJohn Firebaugh2017-02-081-3/+2
| | | | | | | | The X.Y.Z version portion was unreliable, as it pulled from the latest tag regardless of platform. Set version to 0.0.0 and retrieve only the hash, which allows us to drop the node/npm dependency.
* | Make `MGLOfflinePack` instances post notificationsEimantas Vaiciunas2017-02-063-85/+28
| | | | | | | | | | | | | | This commit also gets rid of private `MGLOfflinePackDelegate` protocol. `userInfo` dictionary in notification objects retain the `state` and `progress` values for backwards compatibility. They can be removed in later major release.
* | [ios, macos] Implement default value for identity functionsJesse Bounds2017-02-032-25/+22
| |
* | [ios, macos] Traditional Chinese localizationMinh Nguyễn2017-02-031-0/+291
| |
* | [ios, macos] Add support for data-driven property functionsJesse Bounds2017-02-0224-1876/+3797
| |
* | [build] Use style-spec from gl-js monorepoJohn Firebaugh2017-02-011-1/+1
| |
* | [ios, macos] added a distance formatterFredrik Karlsson2017-01-273-0/+91
| |
* | [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-27118-1652/+1652
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.1-masterMinh Nguyễn2017-01-268-17/+52
|\ \ | |/
| * [ios, macos] Deprecate style class API (#7785)fabian-guerra2017-01-251-4/+4
| |
| * [macos] Refer to Night Shift in style compatibility guideMinh Nguyễn2017-01-251-2/+3
| |
| * [ios, macos] Testify MGLMapView gesture recognizer exampleMinh Nguyễn2017-01-252-2/+23
| |
| * [ios] changed URL -> url (#7841)Jordan Kiley2017-01-251-1/+1
| | | | | | Changed `@param URL` -> `@param url` in `MGLShapeSource.h` Fixes #7840
| * Clarify that clustering option is for shape sources (#7837)Jordan Kiley2017-01-251-0/+2
| | | | | | * [ios] Clarify that shape source needed for clustering. Fixes #7821.
| * [ios] EdgeInsets is UIEdgeInsets in Swift on iOSMinh Nguyễn2017-01-231-3/+9
| |
| * [ios, macos] Note that canvas sources are unsupportedMinh Nguyễn2017-01-231-1/+1
| |