Commit Graph

301 Commits

Author SHA1 Message Date
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
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
Konstantin Käfer
e5b9605ab2 [macos] reuse OpenGL context when switching screens
Cherry-picked from 43e81509fb.
2017-02-20 12:34:05 -08: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
Anand Thakker
062b18374d [core] Enable property functions for text-{field,transform} (#7944) 2017-02-17 13:16:25 -08:00
Minh Nguyễn
06eebd3793 [ios, macos] Reorganized changelogs 2017-02-15 22:51:30 -08:00
Minh Nguyễn
b06ae5e6b7 [macos] Make ± key bindings respect tab order, zoomEnabled 2017-02-15 22:51:30 -08:00
Eimantas Vaiciunas
d8bdc7307d [macos] Make + and - keys zoom the map
Override `insertText:`

- send all `keyDown:` events to `interpretKeyEvents:` method;
- in `insertText:` method check for the text to be sent and
  adjust zoom level if needed;
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
Konstantin Käfer
43e81509fb [macos] reuse OpenGL context when switching screens 2017-02-14 14:15:36 +01:00
Jason Wray
d12ac71ba7 [macos] Round non-freeform zoom gestures/commands to nearest integer
Affects:
 - Double-tap gestures
 - Two-finger tap gestures
 - +/- button pushes
 - Shortcut keys
 - Menu items and shortcut keys (in macapp)
2017-02-13 18:35:04 -05: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
Konstantin Käfer
e66f050b99 [glfw] use newer version that allows automated graphics switching on macOS 2017-02-10 17:55:57 +01:00
Minh Nguyễn
10470df6f3 [ios, macos] Updated changelog
Added mention of #7621.
2017-02-09 17:22:33 -08: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
Jesse Bounds
bcc9eda012 [ios, macos] Update changelogs for data-driven styling (#7993) 2017-02-08 21:13:25 -08:00
Minh Nguyễn
360e5bf631 [ios, macos] Fixed runtime styling deprecation warnings 2017-02-08 16:54:09 -08:00
Konstantin Käfer
bb931505c5 [build] Remove Mason submodule in favor of CMake mason 2017-02-08 19:07:16 +01: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
Minh Nguyễn
4867db5168 [ios, macos] Automated pulling translations from Transifex 2017-02-03 01:49:43 -05:00
Minh Nguyễn
f76a49b24c [ios, macos] Traditional Chinese localization 2017-02-03 01:48:29 -05:00
Jesse Bounds
22b3834caa [ios, macos] Add support for data-driven property functions 2017-02-02 09:44:42 -08:00
Fredrik Karlsson
2ab3af4b1b [ios, macos] added a distance formatter 2017-01-27 19:41:13 +01:00
Minh Nguyễn
f300a8fedc [macos] Take focus from access token field on close
When closing the Preferences window, take focus away from the Access Token text field to force any changes to be committed.
2017-01-27 09:14:02 -08:00
Minh Nguyễn
e10360f34a [macos] Warn if access token needed but not given
When setting a nil style URL or any mapbox: style URL, if no access token has been provided, log a warning instead of asserting.
2017-01-27 09:14:02 -08:00
Minh Nguyễn
a19ce69455 [macos] Flatten point collections, not multipoints 2017-01-27 09:04:58 -08:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Minh Nguyễn
a662508ddd Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.1-master 2017-01-26 17:56:46 -08:00
Konstantin Käfer
042831604b [docs] add changelog entry for #7834
Cherry-picked from be790addb4c7093bacf283708734405be050758a.
2017-01-26 08:01:40 -08:00
Konstantin Käfer
e35c1f8c87 [macos] align HeadlessDisplay with SDK OpenGL context creation options
Cherry-picked from 2a077eaa5483b243e817a328adaea1027a48e7a7.
2017-01-26 08:01:03 -08:00
Konstantin Käfer
b826d043d0 [macos] allow using the integrated GPU on dual-GPU machines
Cherry-picked from e7a7c6be789198a8155dc229ea509dd7aecf4756.
2017-01-26 08:01:03 -08:00
Konstantin Käfer
19bd68d3a2 [macos,ios] don't roundtrip through encodePNG when converting images 2017-01-26 15:26:55 +01:00
Konstantin Käfer
e81cbc3a66 [macos] enable printing 2017-01-26 11:41:35 +01:00