Commit Graph

1884 Commits

Author SHA1 Message Date
Minh Nguyễn
2a1a5f0885 [ios, osx] Split MGLDirectionFormatter in two
Split MGLDirectionFormatter into MGLClockDirectionFormatter, which specializes in clock positions, and MGLCompassDirectionFormatter, which boxes the compass. This neatly avoids any confusion that might arise if the developer fails to read the documentation and thinks the original unified formatter can convert between the two types of directions.
2016-04-22 11:29:10 -07:00
Minh Nguyễn
e5c6cfde4b [ios, osx] Direction formatter
Implemented an NSFormatter for formatting CLLocationDirection values as localizable display strings. The formatter supports both absolute compass directions, such as “south”, and relative “clock” directions, such as “6 o’clock”.
2016-04-22 11:13:03 -07:00
Minh Nguyễn
91023f02f8 [ios, osx] Coordinate formatter
Added a degree-minute-second coordinate formatter for general use. Use this formatter in iosapp and osxapp.

Added unit tests for the coordinate formatter and for round-tripping geometry types through NSValue.
2016-04-22 11:13:03 -07:00
Minh Nguyễn
a852ee24fb [ios, osx] Geometry value methods
Added category methods on NSValue for converting to and from the structure types defined in MGLGeometry.h.

Fixes #4485.
2016-04-22 11:13:02 -07:00
Cameron Mace
75400836c6 [android] Changed javadoc wording for ease and animate camera
Fixes #4624
2016-04-22 11:04:38 -04:00
Tobrun
c636d5a613 [android] #2835 - limit the amount of object allocations on high traffic code 2016-04-22 13:38:17 +02:00
Minh Nguyễn
aded1b145d Merge branch 'release-ios-v3.2.1' 2016-04-21 21:14:45 -07:00
Minh Nguyễn
9f72d720d9 [ios] Updated changelog for map thread removal 2016-04-21 20:34:26 -07:00
Minh Nguyễn
e404eeae1b [ios] Fixed crash on missing access token
Fixed a race condition in which the access token alert controller would fail to present because the view controller hadn’t yet entered the view hierarchy, plus a downstream crash caused by the access token being missing.
2016-04-21 17:52:16 -07:00
Minh Nguyễn
e898b0a459 [osx] Reset pending min/max zoom levels
Followup to #4789.
2016-04-21 17:05:21 -07:00
Minh Nguyễn
3a22033b90 [ios, osx] Constrain zoom level when selecting offline pack
When selecting an offline pack for display in iosapp or osxapp, constrain the zoom level to the pack’s minimum and maximum zoom levels.

Fixes #4787.
2016-04-21 16:50:45 -07:00
Minh Nguyễn
0dbec51401 [ios, osx] Copyedited installation documentation
Copyedited installation documentation to make sense to less experienced Xcode users, ensure consistency, remove redundant language, and reflect recent build changes.
2016-04-21 14:43:49 -07:00
Bruno de Oliveira Abinader
3ee9d12013 [Qt] Remove duplicated mbgl::Map initialization 2016-04-21 17:33:07 +03:00
Bruno de Oliveira Abinader
d46982be2b Merge pull request #4773 from mapbox/travis-qt5
[build] Added Qt 5 build for Travis CI
2016-04-21 11:02:00 +03:00
Jason Wray
c625dd0f7e [ios] Update changelog URLs in the bundled readmes
[skip ci]
2016-04-21 01:38:53 -04:00
Minh Nguyễn
93e9ffea88 [ios] Corrected link to CONTRIBUTING.md 2016-04-20 14:57:43 -07:00
Minh Nguyễn
4a67491a77 [ios] Relative link to CONTRIBUTING.md 2016-04-20 14:57:17 -07:00
Minh Nguyễn
78ddcd76ee [ios] Toggle telemetry on main queue
Cherry-picked from 3c4049c796.
2016-04-20 14:44:08 -07:00
Minh Nguyễn
302f69fded [ios] Assert that defaults change is on main thread
Cherry-picked from e7ddaa9285.
2016-04-20 14:43:57 -07:00
Minh Nguyễn
e5fa7093da [ios] Fixed hang observing user defaults on background queue
Fixed a deadlock that could occur if the host application attempts to set user defaults on a background queue. Now we observer user defaults changes synchronously.

Cherry-picked from d76ef6e53b.
2016-04-20 14:43:45 -07:00
Minh Nguyễn
2aaa8b9474 [ios, osx] Ignore invalid observation context
If a subclass of MGLMapView registers itself as an observer of a non-multipoint annotation’s coordinate key path but fails to handle the change in its -observeValueForKeyPath:ofObject:change:context: implementation, the context would likely be a value other than the annotation’s tag. In that case, avoid doing anything in response to the coordinate changing. Even if the context in that case happens to match the annotation’s tag – say, because the developer passed in NULL (which is equal to 0) for the first added annotation (which would have a tag of 0) – the result would be an unnecessary but harmless update.
2016-04-20 14:23:57 -07:00
Minh Nguyễn
72086edb6e [ios, osx] Avoid observing coordinate on MGLMultiPoint
There’s no point observing the coordinate key path on MGLMultiPoint, since that property is immutable. Use the observation context instead of performing an annotation tag lookup when a coordinate has changed.
2016-04-20 14:23:57 -07:00
Minh Nguyễn
268884368a [ios, osx] Fixed crash removing multipoint or duplicate annotation
Fixed a crash removing a polyline or polygon by observing the coordinate key path on all annotations, not just non-MGLMultiPoints.

Pass in the annotation tag as the observation context. This fixes a crash when an annotation is added to the map view more than once, then removed more than once.
2016-04-20 14:23:57 -07:00
Konstantin Käfer
e5c829b38c [Qt] use libjpeg-turbo rather than Qt's built-in JPEG decoding
libjpeg-turbo is typically 2-4x faster than the built-in decoding.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
01b06c2301 [Qt] WebP support 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
8ff17ffc9a [Qt] Expose {add,remove}CustomLayer 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
0d4ccd4e44 [Qt] Expose QMapboxGL::updatePointAnnotation 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
fa6421a56f [Qt] Implement QMapboxGL::jumpTo 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
459e72d72a [Qt] Expose API to go full offline/online 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
e974dd282d [Qt] Add function for get coordinates and zoom based on a bounding box 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
19e1129367 [Qt] Add the QMapbox header with QMapbox datatypes 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
dd075d53ed [Qt] Added pitch property 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
1ea7bde065 [Qt] Add support for margins 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
f83b8d8ea4 [Qt] Do not use Mapbox GL animations
Let animations to QPropertyAnimation so it can sync with other
Qt animations and let the user define the easing curve Qt-style.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
7d863d259a [Qt] Added {Map,GLContext,Constrain}Mode settings 2016-04-20 20:55:51 +03:00
Konstantin Käfer
41dd14d208 [Qt] expose NorthOrientation 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
cb52a78542 [Qt] Define the viewport size before rendering 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
5482a46a04 [Qt] Wire up connection established signal 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
efb96e80ec [Qt] Use Qt resources for bundling the certificates 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
b9bbe68fe0 [Qt] Introduce --test
Run a simple test and print some stats.
2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
1d98f7eff7 [Qt] Fix ambiguous call to Mapbox GL API 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
a98c82f6e3 [Qt] Use toStdString() to convert QString into std::string 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
0e6cc4006f [Qt] Forward annotations functions
Support for custom style properties in shape annotations will be
implemented in the future.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
814a12a63c [Qt] Forward style{JSON,URL} getters 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
01d50b7bd2 [Qt] Forward style class functions 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
b2cd18a550 [Qt] Forward toggleDebug() from mbgl::Map 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
2d156ec6a9 [Qt] Forward scale setter/getter 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
c8c69f1d2a [Qt] Build the Qt port 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
029f9f0883 [Qt] Introduce the Qt HTTPRequest and HTTPFileSource 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
e93d51c922 [Qt] Implement the AsyncTask, Timer and RunLoop using Qt
Now Mapbox GL will handle events using Qt as backend
instead of libuv.
2016-04-20 20:55:51 +03:00