Commit Graph

3638 Commits

Author SHA1 Message Date
Minh Nguyễn
adbcaceb85 [ios, macos] Fixed Russian pluralization 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
Fabian Guerra Soto
657c9f92cb [ios, macos] fixed wyoming inverted coordinates (#8069) 2017-02-20 16:35:03 -05:00
Justin R. Miller
a39526654b [ios] add setting to toggle two maps for thread debugging (#8122) 2017-02-20 16:19:00 -05:00
John Firebaugh
773f330774 [core] Ensure that context resources are destroyed before context is destroyed 2017-02-20 12:04:21 -08:00
John Firebaugh
5354572620 [core] Eliminate manual HeadlessBackend activation management 2017-02-20 12:04:21 -08:00
John Firebaugh
ed7844d08f [core] Inline HeadlessBackend::{activate,deactivate,destroy}Context
HeadlessContext::destroyContext isn't even necessary; std::unique_ptr handles that automatically.
2017-02-20 12:04:21 -08:00
John Firebaugh
694159c49e [core] Nestable BackendScope 2017-02-20 12:04:21 -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
9ad29af400 [android] OfflineManager#setResourceTransform to allow transforming URLs prior to internet requests 2017-02-20 14:36:27 +01:00
Konstantin Käfer
c86e38e303 [android] use shared DefaultFileSource for all maps + OfflineManager 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
Konstantin Käfer
e2d8a83664 [core] add ability to transform URLs before they're requested from the Internet 2017-02-20 14:36:27 +01: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
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
Ivo van Dongen
ab20d38883 [android] fix default value conversion on dds functions 2017-02-17 13:17:20 -08:00
Anand Thakker
062b18374d [core] Enable property functions for text-{field,transform} (#7944) 2017-02-17 13:16:25 -08: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
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
Tobrun
0c0d7ceaeb [android] - use project wide configurations for all modules + fixup wear compile error (#8066) 2017-02-15 19:56:31 +01:00
Tobrun
8bf1cf7843 Do not draw foregroundBearingDrawable when rotation sensor is not available (#8065) 2017-02-15 16:02:34 +01:00
Tobrun
9ed9a32ded [android] - remove unused telem constants (#8061) 2017-02-15 16:02:17 +01:00
Tobrun
3cde400b9f [android] - ignore device dependant tests (#8063) 2017-02-15 16:01:58 +01:00
Tobrun
65ed1e6019 [android] - when removing out of viewport MarkerViews keep reference to MapboxMap to be able to update the underlying Marker. (#8064) 2017-02-15 16:01:42 +01:00
Tobrun
d07a6aa1ad [android] - prefix key constants used for Activity saved instance bundle with mapbox_ (#8060) 2017-02-15 16:01:27 +01:00
Tobrun
24432e0b98 [android] - null checking when invalidating as the invalidate callback can be invoked while the reference to MapView isn't valid anymore. (#8062) 2017-02-15 12:57:44 +01:00
Antonio Zugaldia
44fa4d6aad [android] Release Android v5.0.0-beta.1 (#8052)
* [android] [auto] Update properties to version 5.0.0-beta.1 in preparation for build.

* [android] remove unnecessary files

* update CHANGELOG.md

* revert version number to 5.0.0-SNAPSHOT

* fixed small typo
2017-02-14 17:03:45 -05:00
Thiago Marcos P. Santos
b822c9466b [glfw] Include gl.hpp first to avoid redefinition of GLAPIENTRY
Mesa does not check if GLAPIENTRY was defined before before defining
it, what makes the compiler sad. So we make Mesa define it first,
before GLFW.
2017-02-14 21:55:44 +02: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
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
Thiago Marcos P. Santos
e8065cfc10 [glfw] Fix viewport not being resized
Reproducible on Linux. On OSX, map looks slightly scaled.
2017-02-13 19:10:21 +02: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
Antonio Zugaldia
0b3873c7b5 [android] Update SDK dependency to MAS beta.1 (#8020)
* remove unused repositories

* move from snapshot to beta.1
2017-02-10 14:30:23 -05: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
b1e623246f [ios, macos] Marked MGLStyleFunction as abstract in docs 2017-02-10 07:11:50 -08: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