summaryrefslogtreecommitdiff
path: root/platform/darwin/test
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Add test for code snippet added to MGLPolyline doc changeNadia Barbosa2017-08-091-0/+12
|
* Boxing ObjC structs (#9343)Fabian Guerra Soto2017-06-221-3/+3
| | | | | | * [ios, macos] Make structs boxable * [ios, macos] Update changelogs.
* MGLLight autogenerate scripts (#9260)Fabian Guerra Soto2017-06-162-128/+145
| | | | | | | | | | | | | | * [ios, macos] Add the MGLLight generation templates * [ios, macos] Add MGLLight generation script * [ios, macos] Add the auto-generation script for MGLLight.mm * [ios, macos] Add the auto-generation script for MGLLightTest.mm * [core] Add const to Position constructor. * [ios, macos] Simplify MGLLightTest.mm autogenerate script.
* Cherry picks to release branch (#9230)Tobrun2017-06-091-0/+16
| | | | | | | | | | | | * [ios][macos] test remove source in use * [android] test remove source in use * [core] check source usage before remove * [core] ensure layer::accept works with non-void return values on gcc * [android] - remove upgrade runtime exceptions (#9191)
* Migrate to GL JS–powered feedback form (#9078)Minh Nguyễn2017-05-301-1/+11
| | | | | | | | | | * [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
* [ios, macos] Fix MGLLight.achor to accept style functionsFabian Guerra2017-05-241-3/+9
|
* [ios,macos] multipolygon coordinate (#8713)Fabian Guerra Soto2017-05-231-3/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] MGLMultiPolygon's coordinate property implemented * [ios,macos] Add polylabalel to project config * [ios,macos] Change coordinate property for MGLPolyline,MGLPolygon,MGLMultiPolygon * [macos] Change project configuration to support polilabel * [ios,macos] Add MGLLocationCoordinate2DFromPoint * [ios, macos] Update changelogs * [ios, macos] remove unnecesary variables * [ios, macos] Add radians conversions * [ios, macos] Add coordinate calc to MGLPolyline * [ios, macos] Move radian fuctions to MGLGeometry_Private.h * [ios, macos] Fix code style * [ios, macos] Fix code indentation * [ios, macos] Fix radian per meters constant * [ios, macos] Add test scenarios to testPolyline * [ios, macos] Fix test accuracy
* [ios, macos] Light property implementation in MGLStyle (#9043)Fabian Guerra Soto2017-05-231-0/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add MGLLight to MGLStyle * [ios, macos] Implement Objc bindings for Light object * [ios, macos] Remove rawLight from MGLLight and re-implement it as value class * [ios, macos] Fix build on macos * [ios, macos] Add MGLLight documentation, Move MGLLightPosition to MGLLight * [ios, macos] Add MGLLight tests. * [ios, macos] Update changelogs * [ios, macos] Fix misspelling * [ios, macos] Fix MGLLightAnchor enum property names * [ios, macos] Update documentation. Improve varialble naming. * [ios, macos] Rename MGLLightPosition to MGLSphericalPosition * [ios, macos] Update data types of MGLSphericalPosition
* [ios, macos] changed TRUE -> 'true' (#9059) fixes #9056Jordan Kiley2017-05-191-1/+1
|
* [core, android, ios, macos] Added Traffic Day/Night to default stylesMinh Nguyễn2017-05-121-2/+10
| | | | | | | | The Styles API section of the Mapbox API Documentation site now lists Traffic Day v2 and Traffic Night v2, so this change adds those styles to all the places where styles are listed. Also switched iosapp and macosapp to unversioned style factory methods since MGLStyleDefaultVersion is no longer applicable for all styles. Cherry-picked from 4d6f54553d277c0af24a0b8ff03d2dd7e9284ca2.
* [ios, macos] Undeprecated unversioned style URL factory methodsMinh Nguyễn2017-05-121-16/+34
| | | | | | | | Undeprecated the unversioned style URL factory methods in MGLStyle for consistency with the Android and Qt SDKs. Added warnings about using them with the runtime styling API. Refactored mbgl::util::default_styles to track different versions for different styles. Cherry-picked from 9e384b78fbcf46d66d390122eefdf273f91b314e.
* [ios, macos] Updated documented default style versionMinh Nguyễn2017-05-121-13/+0
| | | | | | MGLStyleDefaultVersion is just for Streets now. Deleted style version documentation tests because not all styles are on the same version. Cherry-picked from ca97dd8cf4c70a5ed380c99700749fd3239715f0.
* [ios, macos] Moved DDS guide examples to Swift unit testMinh Nguyễn2017-05-081-0/+214
| | | | Moved example code from DDS guide to a unit test written in Swift. The code is inserted into the guide at codegen time.
* [core] Load source TileJSON immediatelyJohn Firebaugh2017-05-022-152/+6
| | | | | | | This reverses #3095. Rationale: * We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API. * We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-273-1/+462
|
* [ios, macos] Add Swift integration tests for map view delegateJesse Bounds2017-04-131-0/+47
|
* [core, darwin] Object identity for MGLSource*, MGLStyleLayer*John Firebaugh2017-04-131-0/+2
| | | | All `MGLSource` pointers referencing the same logical source will now be object identical; similarly for `MGLStyleLayer`.
* [macos] Remove link attribute from attribution textMinh Nguyễn2017-04-101-1/+1
| | | | Fixed an issue causing the attribution button text to appear blue instead of black. On macOS 10.12 and above, hyperlinks in attributed strings are blue regardless of any color attributes applied to the same run of text.
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-061-12/+48
| | | | | | | | | | | | | | | | | | | | | | | | * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block)
* [darwin] Fix invalid coordinates in MGLShapeSource testsJohn Firebaugh2017-04-061-52/+52
|
* [core] Add DDS support for icon-imageJohn Firebaugh2017-03-311-6/+1
|
* [core] Add DDS support for text-rotateJohn Firebaugh2017-03-311-6/+24
|
* [core] implement dds for text-offsetMolly Lloyd2017-03-281-6/+24
|
* Per-attribute transition properties on MGLStyleLayer (#8225)Fabian Guerra Soto2017-03-107-0/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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-102-0/+171
|
* [ios, macos] Removed duplicated NSDate test files, improved duration ↵Fabian Guerra Soto2017-03-081-0/+14
| | | | converstion for NSDate+MGLAdditions (#8290)
* [ios] Fixed conversion between Duration and NSTimeInerval (#8276)Fabian Guerra Soto2017-03-031-0/+26
|
* [ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValueJesse Bounds2017-03-031-12/+12
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-60/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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-231-4/+38
| | | | | | | | | | | | | | | 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-231-1/+16
| | | | | | | | | | | 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-231-0/+17
|
* [ios, macos] Recreate pending and raw layer ref when layer is removedJesse Bounds2017-02-231-0/+38
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2Minh Nguyễn2017-02-211-27/+27
|\
| * [ios, macos] Short-circuit redundant camera changesMinh Nguyễn2017-02-181-22/+22
| | | | | | | | | | | | | | | | 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] fixed wyoming inverted coordinates (#8069)Fabian Guerra Soto2017-02-201-3/+3
| |
* | [macos,ios] add tests for MGLOfflineStorageDelegateKonstantin Käfer2017-02-201-8/+44
| |
* | [ios, macos] Convert NSColor/UIColor expressions to CSS color string valuesMinh Nguyễn2017-02-181-169/+78
| | | | | | | | 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-177-80/+231
| |
* | Refactor: use conversion system to convert MGLStyleFunction to mbgl core ↵Anand Thakker2017-02-151-134/+146
| | | | | | | | | | 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.
* | [core] Introduce dedicated filter types for $type and $id special cases (#7971)John Firebaugh2017-02-092-0/+174
| | | | | | | | | | | | | | | | * [core] Introduce dedicated filter types for $type and $id special cases * [ios, macos] Special-case $id, $type in predicates Also support $id ≟ nil.
* | [core, ios, macos] Refactor composite stop types and conversionsJohn Firebaugh2017-02-095-36/+36
| |
* | [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-081-8/+8
| |
* | Add back MGLStyleFunction and re-document MGLStyleValue (#7943)Jesse Bounds2017-02-081-0/+70
| | | | | | | | [ios, macos] Add back MGLStyleFunction and re-document MGLStyleValue
* | [ios, macos] Implement default value for identity functionsJesse Bounds2017-02-031-1/+1
| |
* | [ios, macos] Add support for data-driven property functionsJesse Bounds2017-02-028-1293/+2186
| |
* | [ios, macos] added a distance formatterFredrik Karlsson2017-01-271-0/+30
| |
* | [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-2723-751/+751
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.1-masterMinh Nguyễn2017-01-261-0/+21
|\ \ | |/