Commit Graph

1872 Commits

Author SHA1 Message Date
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
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
Thiago Marcos P. Santos
2af3863b57 [Qt] Use QImage for decompressing images
Needs to explicitly define the target platform,
otherwise it will use linux/osx.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
7a44b95627 [Qt] Add a Qt app example
Should build and run with `make run-qt`

Signed-off-by: Bruno Abinader <bruno@mapbox.com>
Signed-off-by: Thiago Marcos P. Santos <thiago@mapbox.com>
2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
854b3bc39b [Qt] Add a Qt wrapper aroung mbgl::Map
Signed-off-by: Bruno Abinader <bruno@mapbox.com>
Signed-off-by: Thiago Marcos P. Santos <thiago@mapbox.com>
2016-04-20 20:55:51 +03:00
Minh Nguyễn
de0705c7ed [ios, osx] Use HTML links in documentation
Replaced Markdown syntax with HTML syntax for hyperlinks in documentation comments. HTML links work both inside Xcode (whether Objective-C or Swift) and on the Web (via jazzy).

Fixes #3961.
2016-04-20 07:41:05 -07:00
Tobrun
551d48883c [android] #4260 - added example to navigate from one activity containing a map to another containing a map 2016-04-20 09:11:01 +02:00
Minh Nguyễn
6069647076 [ios, osx] Override user workspace settings 2016-04-19 16:28:30 -07:00
John Firebaugh
4bc4d35c60 [ios] Build output goes to build/ios 2016-04-19 16:28:30 -07:00
John Firebaugh
a883ac9253 [osx] Build output goes to build/osx 2016-04-19 16:28:30 -07:00
John Firebaugh
2d33ae5ed7 [ios, osx] Eliminate use of main.mk 2016-04-19 16:28:30 -07:00
John Firebaugh
24a9d47944 [ios, osx] Remove some non-functional platform.gyp xcode_settings
Refs #4738
2016-04-19 16:28:30 -07:00