Commit Graph

1282 Commits

Author SHA1 Message Date
Minh Nguyễn
4eef3df183 [ios, macos] Updated changelogs
Removed a duplicate entry; moved the #7125 entry to the right release; added a blurb about #7937.
2017-02-18 20:49:03 -08:00
Minh Nguyễn
d790132eda [ios, macos] Short-circuit redundant camera changes
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.
2017-02-18 14:14:09 -08:00
Fredrik Karlsson
7d6b91f8e7 [ios] persistent user tracking mode 2017-02-06 20:58:31 +01:00
Jordan Kiley
6d331e8aa3 [ios] add user interaction guide (#7937)
* added gesture recognizer guide and gifs
2017-02-06 09:36:31 -08:00
Jason Wray
1f75c011e0 [ios] Revert self-deletion of framework stripping script (#7901)
Xcode expects this file to be cached after the first build and will fail on subsequent incremental builds. There appears to be no reasonable way to detect if a build is intended for archive/app store distribution.
2017-01-31 12:48:40 -05:00
Jason Wray
160bc57e38 [ios] Bring in upstream changes to strip-frameworks script
Upstream commits: realm/realm-cocoa@cb8e3b6 and realm/realm-cocoa@453e0c1
2017-01-29 02:07:00 -05:00
Jason Wray
031ddc0255 [ios] Stop including framework stripping script in built product
This self-deletes the script during the build script phase. Does not
address the CocoaPods use-case.
2017-01-29 02:06:59 -05:00
Jason Wray
01ceae1a8e ios-v3.4.1 2017-01-25 22:52:39 -05:00
Jason Wray
aa47ed77a6 [ios, macos] Copy-edit changelogs 2017-01-25 22:51:59 -05:00
fabian-guerra
8ac9975941 [ios, macos] Deprecate style class API (#7785) 2017-01-25 22:38:53 -05:00
fabian-guerra
85f485e4ed [ios, macos] Make MGLMapView non opaque by default (#7859) 2017-01-25 22:04:27 -05:00
Justin R. Miller
5dc83903d6 fixes #6688: assert remaining map view notification responses are main thread (#7838) 2017-01-25 13:38:37 -08:00
Minh Nguyễn
0a8cfdd593 [macos] Refer to Night Shift in style compatibility guide 2017-01-25 13:22:17 -08:00
Minh Nguyễn
7684bc2125 [ios, macos] Testify MGLMapView gesture recognizer example 2017-01-25 13:22:17 -08:00
Minh Nguyễn
4394c23ae7 [ios] Publicized MGLOpenGLStyleLayer.h 2017-01-25 09:24:45 -08:00
Minh Nguyễn
35e062d72c [ios, macos] Wrap camera heading (#7724)
* [ios, macos] Fixed negative camera heading when facing northwest

* [ios] Corrected counterclockwise rotation test
2017-01-24 08:29:46 -08:00
Minh Nguyễn
b32c17119e [ios] EdgeInsets is UIEdgeInsets in Swift on iOS 2017-01-23 15:19:48 -08:00
Minh Nguyễn
5a2bb8d240 [ios, macos] Note that canvas sources are unsupported 2017-01-23 15:19:48 -08:00
nitrag
0c95fcfd06 [ios, macos] Document how to avoid gesture recognizer conflicts (#7816)
* Expand on Gesture Implementation

Adding Gesture info as discussed: https://github.com/mapbox/mapbox-gl-native/issues/2278#issuecomment-273685832

Not sure if using codeblocks is kosher.

* Update styling and verbiage

* More updates

* [ios] -requireGestureRecognizerToFail: seems to be enough

* [macos] Added corresponding macOS documentation
2017-01-23 13:17:15 -08:00
Minh Nguyễn
4cff0977a0 ios-v3.4.0 2017-01-20 14:08:38 -08:00
Jordan Kiley
e38216d254 Typo fixes, added line to MGLStyleLayer initializer description (#7759)
* Typo fixes in MGLMapCamera.h and MGLMapView.h

* Added line to MGLStyleLayer initializer description

* Edited line in MGLShapeCollection.h
2017-01-17 20:54:36 -08:00
Minh Nguyễn
d829570cca ios-v3.4.0-rc.1 2017-01-17 12:51:02 -08:00
Minh Nguyễn
2dae2254dd [macos] Check for implementation before calling -toolTip
Also fixed a couple typos in changelogs.
2017-01-16 21:50:08 -08:00
Minh Nguyễn
13b97dd0ce [ios, macos] Correct podspecs, readmes (#7730)
* [macos] RC 1 errata

Synchronized bundled README installation instructions with those in INSTALL.md. Bumped screenshot up a bit. Corrected link to published documentation.

* [ios, macos] Corrected podspec URLs

Fixed podspec linter errors. The podspecs were pointing to unreachable (or soon to be unreachable) screenshot URLs. The -symbols podspecs’ names additionally needed to differ from the normal podspecs’ names.
2017-01-16 10:16:40 -08:00
Minh Nguyễn
4adcdac7b5 [macos] Upgrade macOS deployment and distribution (#7649)
* [macos] Updated deployment scripts

Ported fixes from #6581 and #6740.

* [macos] Acknowledge AppleScript support

* [macos] Prepared for published documentation

Also added link to Dash docset.

* [macos] Added CocoaPods podspecs

Ported from #5653.

* [macos] Rewrote readme; updated screenshot

* [macos] Include setup instructions in standalone docs
2017-01-15 13:18:21 -08:00
Jason Wray
bc0c8043d2 [ios] Add larger polyline to iosapp test shapes 2017-01-13 15:43:41 -05:00
Jason Wray
8f6009ea20 [ios, macos] Revert deprecation of alphaForShapeAnnotation: delegate method 2017-01-13 15:43:41 -05:00
Minh Nguyễn
4d5036616f [ios, macos] Rewrote style layer tests
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.
2017-01-13 10:26:43 -08:00
Minh Nguyễn
f1d661ad36 [ios, macos] Document simpler types for style values in Swift 2017-01-12 11:03:20 -08:00
Jason Wray
4aecb18f54 [ios] Release v3.4.0-beta.7 2017-01-11 20:04:37 -05:00
Jesse Bounds
6ad47cfbad [ios, macos] Add convenience initializers to shape source (#7665)
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
2017-01-11 16:05:38 -08:00
Jesse Bounds
4332b3b953 Flush telemetry cache when data collection is paused (#7672)
[ios] Flush telemetry cache when data collection is paused

This flushes the cache just before pausing so that data collected
before the pause is not thrown away. It also refactors event
creation to avoid possible nil value inserts into dictionaries
and adds a small optimization to avoid creating immutable
dictionaries to help create mutable ones.

Also:

- Remove cancel API in API client

The cancelAll API is not used. The array of data tasks it maintains
has proven problematic. This removes the API and the problematic
implementation. As safer version of it can be brought back if cancel
task functionality is required in the future.

- Remove unused battery method
2017-01-11 15:55:54 -08:00
Fredrik Karlsson
f1fc9bdfeb [ios] Optional positioning and stickiness for callout view 2017-01-11 15:48:08 -08:00
Jason Wray
71a5453690 [ios] Copy-edit guides (#7680) 2017-01-11 15:47:33 -05:00
Minh Nguyễn
424c12499c [ios, macos] Make MGLMapView.style property nullable (#7664)
* [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.
2017-01-11 08:06:20 -08:00
Minh Nguyễn
581fb3849d [ios, macos] Fix miscellaneous static analyzer warnings (#7670)
* [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
2017-01-11 03:08:05 -08:00
Minh Nguyễn
b6cf87f5e7 [ios] Require Xcode 8 to build iosapp
Fixes #6873.
2017-01-11 00:22:25 -08:00
Minh Nguyễn
dea1a30332 [ios, macos] Title case attribution buttons
Also added a category method on NSString for title casing the string, plus tests.
2017-01-10 07:56:06 -08:00
Minh Nguyễn
e162d4f4c8 Happy new year! 🎉
Cherry-picked from b35deb85bc.
2017-01-09 02:18:52 -08:00
Minh Nguyễn
a5e43f0272 [ios, macos] Note reversed order in NS/UIEdgeInsets 2017-01-09 01:38:20 -08:00
Minh Nguyễn
1ae84db978 [ios, macos] Clarified CGVector, NS/UIEdgeInsets accessors 2017-01-09 01:38:20 -08:00
Jesse Bounds
226054bf71 Document requirement about adding sources and layers (#7634)
* [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.
2017-01-08 17:08:24 -08:00
Jesse Bounds
4cee2b1a69 [ios, macos] Allow creation of shape collections with no shapes (#7632) 2017-01-08 17:07:06 -08:00
Jesse Bounds
901c806916 [ios] Only use non nil presentationLayers to adjust annotation views (#7626)
Views that are added outside of the viewport do not always have an
instantiated presentationLayer. Attempting to use a nil
presentationLayer to move a view offscreen resulted in the view
being pinned to the left side of the view port (at x == 0).
2017-01-08 12:53:23 -08:00
Minh Nguyễn
bf8d037fca [ios, macos] -translate → -translation 2017-01-07 15:47:31 -08:00
Minh Nguyễn
17b3ec1edd [ios, macos] Renamed text-field, text-font, text-font-size, circle-pitch-scale
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).
2017-01-07 15:46:53 -08:00
Minh Nguyễn
d5d6bcee0f [ios, macos] Keep style attribute NSValue categories near enum declarations
Eliminated the separate NSValue+MGLStyleLayerAddition files, moving the categories into their respective style layer headers to be closer to the enumeration declarations.
2017-01-07 14:37:53 -08:00
Minh Nguyễn
80df3090ec [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style layer type
Also renamed the file to have a slightly more wieldy name.
2017-01-07 14:37:53 -08:00
Minh Nguyễn
2382f199c1 [ios] Link guides to each other 2017-01-04 21:48:32 -08:00
Eric Wolfe
d2efbc9915 [ios, macos] Move Info.plist keys down in jazzy sidebar 2017-01-04 21:48:32 -08:00