summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
...
| * Typo fixes, added line to MGLStyleLayer initializer description (#7759)Jordan Kiley2017-01-173-4/+9
| | | | | | | | | | | | | | * Typo fixes in MGLMapCamera.h and MGLMapView.h * Added line to MGLStyleLayer initializer description * Edited line in MGLShapeCollection.h
* | [macos,ios] don't roundtrip through encodePNG when converting imagesKonstantin Käfer2017-01-262-96/+89
| |
* | [macos] align HeadlessDisplay with SDK OpenGL context creation optionsKonstantin Käfer2017-01-251-2/+8
| |
* | [macos] allow using the integrated GPU on dual-GPU machinesKonstantin Käfer2017-01-251-0/+2
| |
* | refs #6779: mobile & Mac SDK style transition options (#7711)Justin R. Miller2017-01-184-3/+55
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-16111-2727/+9313
|\ \ | |/
| * [ios, macos] Default to system font for attribution titlesMinh Nguyễn2017-01-141-1/+12
| |
| * [ios, macos] Rewrote style layer testsMinh Nguyễn2017-01-1327-1020/+3790
| | | | | | | | | | | | | | | | Replaced the style layer integration tests with unit tests. Test conversion of style values to property values and vice versa, not just round-tripping. Test the initial state and null-resetting of each null-resettable property. Test NSValue additions for style attribute enumerations. Test properties common to all style layer classes. Test MGLStyle’s source and layer collections. Eviscerated implementations of unavailable style layer properties corresponding to style specification properties that were renamed. Implemented corresponding getters to prevent ivars from being autosynthesized for these unavailable properties. Added a missing bridging header to the iOS test project.
| * [ios, macos] Fixed nilling out predicateMinh Nguyễn2017-01-125-6/+6
| |
| * Fixed link in “Working with GeoJSON Data” guideMinh Nguyễn2017-01-121-1/+1
| |
| * [ios, macos] Note that MGLShapeSource.shape must be set on main thread (#7687)Minh Nguyễn2017-01-121-0/+3
| | | | | | | | | | | | | | | | * Add Clarification for modifying ShapeCollections Spinoff task from https://github.com/mapbox/mapbox-gl-native/issues/7622 * update wording for both get/set, remove whitespace
| * [ios, macos] Document simpler types for style values in SwiftMinh Nguyễn2017-01-122-6/+6
| |
| * [ios, macos] Made style-related tests more robustMinh Nguyễn2017-01-122-36/+25
| | | | | | | | Removed UIViewController from MGLStyleLayerTests on iOS, because we aren’t really testing integration at that level. Switched to delegate-based expectation fulfillment for both MGLStyleLayerTests and MGLStyleTests, conditionalized on whether the style has already loaded, to avoid race conditions that bleed into other tests.
| * [ios, macos] Add convenience initializers to shape source (#7665)Jesse Bounds2017-01-116-6/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds two new convenience initializers to MGLShapeSource: -initWithIdentifier:features:options: takes an array of shape objects that conform to MGLFeature, inserts them in a shape collection feature and creates a source with that shape. -initWithIdentifier:shapes:options does the same but with concrete MGLShape objects that get added to a shape collection. Throw an exception if an shape source is created with the features initializer but is sent an array of features that contains something that is not actually an object that conforms to the feature protocol. Updates to geojson data guide Qualify APIs that take arrays of shapes that are features
| * [macos] Run style layer tests headlessly (#7684)Minh Nguyễn2017-01-111-9/+14
| | | | | | | | | | | | * [macos] Run style layer tests headlessly * [ios, macos] How about a manual expectation?
| * [ios, macos] Make MGLMapView.style property nullable (#7664)Minh Nguyễn2017-01-1114-65/+66
| | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Made MGLMapView.style property nullable MGLMapView’s style property is now nullable (optional in Swift). The property is set to nil while the style loads and in the event that the style has failed to load. * [ios, macos] Switch to delegate method * [macos] Create MGLMapView programmatically for layer tests When MGLMapView is created via a nib, -initWithCoder: is called, causing styleURL to be set to nil, in turn causing the default Streets style to be loaded, fooling MGLStyleLayerTests into thinking one-line has been loaded. Instead, create MGLMapView programmatically, passing the intended style URL into the initializer, preventing Streets from being loaded.
| * [ios, macos] Fix miscellaneous static analyzer warnings (#7670)Minh Nguyễn2017-01-113-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Fixed static analyzer warnings Fixed static analyzer warnings in MGLNetworkConfiguration, MGLRasterSource, and MGLShape. * [ios] Fixed static analyzer warnings Fixed static analyzer warnings in MGLAnnotationImage. * [macos] Fixed static analyzer warnings Fixed static analyzer warnings in MGLAnnotationImage and NSImage(MGLAdditions). * [ios, macos] Two pointer-equal images are object-equal by definition
| * [ios, macos] Title case attribution buttonsMinh Nguyễn2017-01-103-0/+73
| | | | | | | | Also added a category method on NSString for title casing the string, plus tests.
| * [ios, macos] Replace <q> tags with quotation marks in code blocksMinh Nguyễn2017-01-091-0/+5
| |
| * [ios, macos] Added MGLShape from GeoJSON exampleMinh Nguyễn2017-01-093-1/+21
| | | | | | | | Added an example of deserializing an MGLShape from a GeoJSON file.
| * [ios, macos] Cleaned up color, edge insets declarations, commentsMinh Nguyễn2017-01-096-36/+67
| | | | | | | | Eliminated references to MGLColor within style layer headers.
| * [macos] Flip offsets and translationsMinh Nguyễn2017-01-097-21/+163
| | | | | | | | The screen origin is at the lower-left, so offsets and translations increase rightwards and upwards, in contrast to iOS and Web contexts, where the coordinate system increases rightwards and downwards. Duplicated style layer property declarations to reflect this difference.
| * [ios, macos] Note reversed order in NS/UIEdgeInsetsMinh Nguyễn2017-01-091-0/+5
| |
| * [ios, macos] Clarified CGVector, NS/UIEdgeInsets accessorsMinh Nguyễn2017-01-091-3/+9
| |
| * [ios, macos] Document that MGLShape can deserialize GeoJSON (#7638)Jesse Bounds2017-01-081-0/+4
| |
| * [ios, macos] Test unclusterable shape source shapesMinh Nguyễn2017-01-081-0/+13
| |
| * Document requirement about adding sources and layers (#7634)Jesse Bounds2017-01-081-7/+22
| | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Document requirement about adding sources and layers Sources and layers added outside of mapView:didFinishLoadingStyle: and mapViewDidFinishLoadingMap: are not guaranteed to appear since the map may not be fully loaded and ready to accept new sources and layers. This also fixes a compiler warning in iosapp.
| * [ios, macos] Allow creation of shape collections with no shapes (#7632)Jesse Bounds2017-01-083-2/+10
| |
| * [ios, macos] Fixed links to paint properties in style specMinh Nguyễn2017-01-076-17/+26
| |
| * [ios, macos] -translate → -translationMinh Nguyễn2017-01-0715-217/+341
| |
| * [ios, macos] Renamed text-field, text-font, text-font-size, circle-pitch-scaleMinh Nguyễn2017-01-0710-164/+242
| | | | | | | | Reduced the likelihood that the developer might attempt to set textField to an NSTextField or UITextField, or textFont to an NSFont or UIFont, or textSize to a CGSize or NSSize, or circlePitchScale to a number (given iconScale).
| * [ios, macos] Keep style attribute NSValue categories near enum declarationsMinh Nguyễn2017-01-0715-528/+473
| | | | | | | | Eliminated the separate NSValue+MGLStyleLayerAddition files, moving the categories into their respective style layer headers to be closer to the enumeration declarations.
| * [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style ↵Minh Nguyễn2017-01-079-339/+335
| | | | | | | | | | | | layer type Also renamed the file to have a slightly more wieldy name.
| * [ios, macos] Relaxed sources, layers typeMinh Nguyễn2017-01-052-8/+8
| | | | | | | | Refined the types of MGLStyle’s sources and layers types so that Objective-C code can easily send messages intended for subclasses of MGLSource or MGLStyleLayer that are contained in one of these containers.
| * [ios, macos] Sources, layers properties are immutableMinh Nguyễn2017-01-052-6/+6
| | | | | | | | If you need a mutable array of layers, use -mutableArrayValueForKey:.
| * [ios] Link guides to each otherMinh Nguyễn2017-01-041-0/+4
| |
| * [ios, macos] Split For Style Authors guideMinh Nguyễn2017-01-043-309/+93
| | | | | | | | Information for Style Authors is now two separate guides, one for iOS and one for macOS. Both are compiled from the same template. Added language about rotation, tilting, and printing.
| * [ios, macos] Compare source options to specsMinh Nguyễn2017-01-044-2/+120
| |
| * [ios, macos] Added guide for style authorsMinh Nguyễn2017-01-043-3/+458
| | | | | | | | Added a guide to orient JSON stylesheet authors and Mapbox Studio users around the runtime styling API. An introductory section details the many considerations for designing a robust style for use with iOS and macOS devices.
| * [ios, macos] Added guide for working with GeoJSONMinh Nguyễn2017-01-041-0/+89
| |
| * [ios, macos] Insert example code in original headers (#7569)Minh Nguyễn2017-01-0415-42/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Removed extraneous code fences * [ios] Streamlined example delimiters Use test method names as names of example blocks and test method documentation comments as front matter for examples. Set off example blocks using a syntax similar to playground markup syntax. Avoid hard-coding indentation levels. Trigger Xcode build error when an error occurs in the script. * [ios] Removed platform-specific code from examples * [ios] Fixed logic error The comment said 200 while the code said 1,500. * [ios] Formalize build phase input * [ios] Insert examples into original source documentation Rewrote the example code insertion script to work on the original source files and overwrite any existing code examples on the same symbols. The script uses SourceKitten to find the documentation comment for the symbol named by the test method. Replaced the Run Script build phase that runs the example code insertion script with a make rule that runs the same script. Inlined skeleton examples minus the contents of the code blocks. * [ios] Fixed syntax error * [ios] Ran ios-add-examples-to-docs * [ios] Avoid touching unchanged headers * [ios] Refactored example insertion script * [ios] Point jazzy at original sources * [ios] Invoke SourceKitten only once * [ios] Look for methods as well as properties * [ios] Thoroughly search for code blocks in doc comments Refactored the example code insertion script to index test methods by their names, then recursively search the SourceKitten output for documentation comments that contain Swift code blocks, replacing each code block with the associated test method body. * [ios, macos] Enabled example insertion for macOS The example code insertion script is now platform-agnostic. * [ios, macos] Fixed documentation example tests Set the map view’s style to a minimal local JSON file. Wait for the style to finish loading before running each test. Corrected CGVector type. * [ios, macos] Dry run mode The output of this mode isn’t a good indicator of whether any files would’ve needed to be changed, because the presence of a conditional compilation block in one of the test methods means this script would always change and revert the corresponding comment. * [ios] Fixed test failure The iOS implementation of MGLMapView tries to show the Streets style by default even if no access token has been set. Avoid a race condition and frequent test failure by specifying the minimal style on initialization. * [ios, macos] Ensure SourceKitten is installed before inserting example code * [ios, macos] Tear down map view after each test Keep map views from previous tests from hanging around, potentially obscuring the result of a subsequent test. Set the access token to a bogus token upfront for all style layer tests. Unified MGLStyle usage within MGLStyleTests. * [ios, macos] Reinsert examples after generating runtime styling headers
| * [ios, macos] Note that no modifier operators are supportedMinh Nguyễn2017-01-041-5/+7
| | | | | | | | There’s also an “l” operator for locale sensitivity.
| * [ios, macos] Cleaned up expression conversionMinh Nguyễn2017-01-048-92/+95
| |
| * [ios, macos] Rewrote predicate/filter conversionMinh Nguyễn2017-01-046-293/+682
| | | | | | | | | | | | | | | | | | | | When converting predicates to filters, symmetric comparison predicates can now compare a value to a key in addition to the usual key-to-value order. Added error checking for unhandled combinations like key-to-key. Fixed a crash converting a CONTAINS predicate into a filter. Added support for constant value expressions inside aggregate expressions. Allow sets as aggregate expressions just like arrays, except in BETWEEN predicates where order matters. Flatten NOT predicates into more specialized filters. When converting filters to predicates, use constant value expressions inside aggregate expressions. Convert to a BETWEEN predicate when possible. Replaced predicate round-tripping integration tests with systematic unit tests for converting in either direction, plus unit tests for round-tripping and symmetry. Refined exception names and messages. Realphabetized files in groups.
| * Implement MGLForegroundStyleLayer.sourceIdentifier (#7570)Fredrik Karlsson2017-01-036-2/+45
| | | | | | | | | | | | * [ios, macos] sourceIdentifier accessor methods * [ios, macos] generate style code
| * [ios, macos] Aliased MGLMultiPointFeature to MGLPointCollectionFeatureMinh Nguyễn2017-01-021-0/+3
| |
| * [ios] Document that offline pack resource removal is not guaranteed (#7522)Jason Wray2016-12-231-2/+9
| | | | | | Text adapted from: https://www.mapbox.com/help/mobile-offline/#removing-offline-regions
| * [ios, macos] Fixed iosbench buildMinh Nguyễn2016-12-234-0/+4
| | | | | | | | Fixed a stale include in iosbench. MGLMapView(Private) forward-declares mbgl::Map instead of including mbgl.hpp, which iosbench has no access to.
| * [ios, macos] Fixed null expression crashMinh Nguyễn2016-12-232-2/+12
| | | | | | | | Convert NSNull into an mbgl null value.
| * [ios, macos] Expand documentation on MGLTileSource URL templates (#7213)Justin R. Miller2016-12-221-2/+90
| | | | | | | | | | | | | | | | | | | | * provide better docs for MGLTileSet template strings * clean up docs * line breaks * [ios, macos] Rewrote tile URL template docs