Commit Graph

1383 Commits

Author SHA1 Message Date
Jesse Bounds
4e074aa4db [ios, macos] Alias MGLStyleConstantValue to MGLConstantStyleValue 2017-03-03 09:10:31 -08:00
Jesse Bounds
d25e2c772d [ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValue 2017-03-03 09:10:31 -08:00
Jesse Bounds
968bb369c9 [ios] Use curl to verify that a release is not published
The previous incantation is now failing due to redirects. Getting only
the headers from curl and checkin the first line works reliably.
2017-03-01 16:12:03 -08:00
Jesse Bounds
4705019ae3 [ios] Update podspec version for 3.5.0 beta.2 2017-03-01 14:55:23 -08:00
Minh Nguyễn
db77865844 [ios, macos] Updated changelogs for #8113 2017-03-01 12:57:06 -08:00
Jesse Bounds
cd5efab11e [ios] Add changelog entry for the pause / resume API update 2017-03-01 10:39:11 -08:00
Jordan Kiley
a46a57027e [iOS] Replaced gifs from gesture recognizer guide (#8227)
* [ios] replaced gifs
2017-02-28 21:36:40 -08:00
Jesse Bounds
de1913e223 [ios, macos] Update changelog for style and layer removal behavior 2017-02-23 15:07:43 -08:00
Eimantas Vaiciunas
76b3825360 [core] Return null when removing nonexistent layer
In case of exception, silently ignore removal of nonexistent layer
and return nullptr
2017-02-23 15:07:43 -08:00
Minh Nguyễn
2f388d6635 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2 2017-02-21 22:47:15 -08:00
Minh Nguyễn
b512af6a66 [ios, macos] Smarten apostrophes after backticks
jazzy is inconsistently converting straight apostrophes that immediately follow backticks into either ‘ or ’ from one run to the next. Smarten the apostrophe to keep it stable.
2017-02-21 22:14:29 -08:00
Minh Nguyễn
df6a06bd07 ios-v3.4.2, macos-v0.3.1 2017-02-21 16:53:10 -08:00
Jason Wray
ac0e2e0a98 [ios] Update changelog for iOS 8 deployment target 2017-02-21 16:10:00 -05:00
Jason Wray
a1c477b4db [ios] Update docs for iOS 8 deployment target 2017-02-21 16:10:00 -05:00
Jason Wray
c7975e6a18 [ios] Clean-up conditionals for iOS <8 2017-02-21 16:10:00 -05:00
Jason Wray
3b063d9be0 [ios] Set project deployment target to iOS 8 2017-02-21 16:09:59 -05:00
Jason Wray
4f91e70204 [ios, macos] Enable localizations in iosapp & macosapp 2017-02-20 23:07:05 -05:00
Minh Nguyễn
b845af66d3 [ios, macos] Include Ukranian stringsdict in project 2017-02-20 14:54:57 -08:00
Minh Nguyễn
64a034285b [ios, macos] Added Lithuanian localization 2017-02-20 14:54:57 -08:00
Minh Nguyễn
c8d8b82522 [ios, macos] Polish, Russian, Spanish, Ukrainian translations 2017-02-20 14:54:57 -08:00
Justin R. Miller
a39526654b [ios] add setting to toggle two maps for thread debugging (#8122) 2017-02-20 16:19:00 -05:00
Konstantin Käfer
3ef9e26593 [ios,macos,android,qt] use shared threadpool 2017-02-20 19:26:06 +01:00
Konstantin Käfer
f8ab327874 [macos,ios] add tests for MGLOfflineStorageDelegate 2017-02-20 14:36:27 +01:00
Konstantin Käfer
6c0310209d [macos,ios] expose callback for transforming URLs 2017-02-20 14:36:27 +01:00
Konstantin Käfer
03a14ff000 [darwin] move RunLoop initialization to static variable 2017-02-20 14:36:27 +01:00
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
8669f933fd [ios, macos] Convert NSColor/UIColor expressions to CSS color string values
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.
2017-02-18 14:42:16 -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
Jason Wray
65b42949c7 [ios] Fix locale-based language switching demo
Copy-pasted the better implementation from macOS.
2017-02-17 18:47:32 -05:00
Jesse Crocker
d4c569a018 [ios] Disable region monitoring when stopping location monitoring (#7833) 2017-02-16 12:36:21 -08:00
Jesse Bounds
655b7c035c [ios] Search for ICU path using cmake cache 2017-02-16 10:59:54 -08:00
Minh Nguyễn
06eebd3793 [ios, macos] Reorganized changelogs 2017-02-15 22:51:30 -08:00
Anand Thakker
685f237d02 Refactor: use conversion system to convert MGLStyleFunction to mbgl core 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.
2017-02-15 17:16:54 -05:00
Jason Wray
235a06795a [ios] Add iosapp Show Zoom Level debug option 2017-02-13 18:35:04 -05:00
Jason Wray
3ec93d3bbe [ios] Round tap-zoom gestures to nearest integer
Round double-tap and two-finger tap zoom gestures to the nearest integer zoom level. This has the benefits for raster tiles, as well as styles with zoom-based functions.

This results in a wider possible zoom range — ~0.5-1.5:

Old: z4.6 → z5.6 (+1.0), z4.4 → z5.4 (+1.0)
New: z4.6 → z6.0 (+1.4), z4.4 → z5.0 (+0.6)
2017-02-13 18:35:04 -05:00
Benedikt Huss
b9be66f287 [ios] Do not deselect annotations any longer when map is zoomed/panned or annotation is moved out of the visible bounds 2017-02-11 13:34:33 -08:00
Minh Nguyễn
e6c15d0f6f Upright CJK characters in vertically-oriented labels (#7114)
CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement.

Fixes #1682.
2017-02-10 18:57:48 -06:00
Minh Nguyễn
10470df6f3 [ios, macos] Updated changelog
Added mention of #7621.
2017-02-09 17:22:33 -08:00
Jesse Bounds
01f651cb2a [ios] Update podspec for release 3.5.0 beta 1 2017-02-09 14:31:44 -08:00
Jason Wray
4b088e3067 [ios] Re-add MGLDistanceFormatter to static library
For some reason Xcode didn't like e7066159ddb6a1c963dd194b0e96a2f90b6462e4.
2017-02-09 17:29:57 -05:00
Jason Wray
65ddd29bca [ios] Add partial Japanese localization 2017-02-09 17:29:57 -05:00
John Firebaugh
a1a639120d [core] Introduce dedicated filter types for $type and $id special cases (#7971)
* [core] Introduce dedicated filter types for $type and $id special cases

* [ios, macos] Special-case $id, $type in predicates

Also support $id ≟ nil.
2017-02-09 14:18:57 -08:00
Minh Nguyễn
272dc3f6a9 Delegate method to restrict movement (#5584)
* [ios, macos] Added delegate method to restrict movement

Added a way for the delegate to restrict where the user can move within the map using gestures.

Fixes #2457.

* [ios] Added support to restrict movement in pinch/rotate gestures

* [ios] Added support to restrict movement in double tap/quick zoom/two finger drag gestures

* [ios] fixed camera reset before two finger drag gesture is complete

* [ios] fixed camera comparison in double tap gestures

* [ios] Changelog update

* [macos] Changelog updated

* [ios, macos] Changelog cleanup

* [ios, macos] Added documentation to clarify performance impact

* [ios] clarified variable name

* [ios] blocking gestures implementation changed to a predictive approach

* [ios] gesture delegate methods refactoring

* [ios] Removed duplicated methods, improved code readability

* [ios] code refactoring to clarify the conditions to execute a gesture
2017-02-09 16:49:04 -05:00
Minh Nguyễn
925d394ab5 [ios, macos] Brazilian Portuguese, French, German, Japanese, Swedish, Vietnamese
Pulled translations from Transifex. Added locales with at least one file translated 80% or more.
2017-02-09 10:52:33 -08:00
Minh Nguyễn
c41d37ad72 [ios, macos] Updated changelogs
Added mention of #7786, #7989, #7902. Moved #7956 to the correct section.
2017-02-09 10:07:00 -08:00
Minh Nguyễn
5f28bdc699 [ios] Added MGLDistanceFormatter to static library 2017-02-09 02:34:59 -08:00
Jesse Bounds
bcc9eda012 [ios, macos] Update changelogs for data-driven styling (#7993) 2017-02-08 21:13:25 -08:00
danielmatzke
937fa0ce44 [ios, macos] 7955 fix MGLMapView leaks MGLReachability objects (and threads) (#7956)
* fix MGLMapView leaks MGLReachability objects (and threads)

* fix leak of MGLReachability objects and threads in MGLMapView.commonInit

* update changelogs
2017-02-06 16:02:35 -08:00
Eimantas Vaiciunas
7b0881030f Make MGLOfflinePack instances post notifications
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.
2017-02-06 12:39:11 -08:00
Eimantas Vaiciunas
631c5a2f93 Bump Xcode version for schemes 2017-02-06 12:39:11 -08:00