Commit Graph

2908 Commits

Author SHA1 Message Date
Tobrun
c97a1047df 6453 restore tilt after orientation (#6491)
* [android] - correct tilt value when restoring activity or creating from xml

* correct values requesting camera position adhoc

* updated logic change in unit tests
2016-09-29 11:41:08 +02:00
Jesse Bounds
9a41b8abaf [ios, macos] Guard against nil bundle identifier during tests 2016-09-28 09:44:19 -07:00
Minh Nguyễn
b1518944a7 [ios, macos] Rewrote CI scripts
Broke up the iOS and macOS Bitrise scripts into several steps each for more granular progress and failure reporting and to take advantage of better error reporting in the built-in Bitrise steps. Added a step to deploy Xcode test results and (in the event of a failure) raw xcodebuild output to Bitrise.io, with a handy link from the Bitrise UI.
2016-09-28 09:44:19 -07:00
Minh Nguyễn
255325b44b [macos] Restored unit tests on CI
Restored the make rule for running macOS SDK unit tests. Invoke that rule on Bitrise.

Fixes #5991.
2016-09-28 09:44:19 -07:00
Bruno de Oliveira Abinader
55c4bb98d7 [Qt] Connect to finished() and error() signals from QNetworkReply
Qt macOS network manage implementation differs from linux in a sense
that some requests do not generate a finished() signal, but a error()
instead - that is not caught up by the network access manager. This
made QMapboxGL.styleURL utest hang for macOS.
2016-09-28 18:50:08 +03:00
Tobrun
3835ed556b 6402 update offline metadata android (#6456)
* [android] - update offline metadata jni integration

* extract offline utils for reuse

* add test activity for update metadata

* fix requested signature changes
2016-09-28 07:48:01 +02:00
Jesse Bounds
73baa52710 [ios] Update changelog for annotation view fix 2016-09-27 15:24:19 -07:00
Jesse Bounds
c6abc0ea89 [ios] Always show annotation view even when view reuse is not used
This fixes an issue where the map view would drop annotation views
if the developer did not make full use of the reuse queue. The
fixes are:

- Guard against enqueuing a view for reuse if it does not have
a `viewReuseIdentifier`. Previously, if the app developer created a new
annotation view with no reuse id each time
`[MGLMapViewDelegate mapView:viewForAnnotation:]` was called and then
the view was scrolled offscreen, we  attempted to add the view to the
reuse queue (for no good reason) and  did not update the views center
ever again.  This change avoids the reuse queue and just updates the
center always.

- Add any annotation view that should be displayed but is not in the
annotation container view to the annotation container view. Previously,
if the app developer created a new annotation view with a reuse id
each time `[MGLMapViewDelegate mapView:viewForAnnotation:]` was called,
and then if the annotation was scrolled off and then on screen again,
we did not add the new view to the container view because it was
not happening in the normal `addAnnotation` cycle. This adds add
logic to catch that case and add annotation views created in this
way to the view.
2016-09-27 15:24:19 -07:00
Justin R. Miller
a6aa786f35 [ios, macos] flesh out iOS runtime styling docs (#6466)
- fixes #5959: MGLBaseStyleLayer docs
- fixes #5960: MGLSource & subclasses docs
- fixes #6467: concrete layer subclass docs
- move Core Graphics include
- slight code & template cleanups
- add ./documentation to git ignores
2016-09-27 13:53:32 -07:00
Konstantin Käfer
21386b3146 [core] move GL value accessors to gl::value namespace 2016-09-27 11:03:29 -07:00
Thiago Marcos P. Santos
e881795ed1 [Qt] Header cleanup (#6477)
Make some headers private, so we only commit with the QML API.
2016-09-27 16:18:04 +03:00
Tobrun
0c0671bff0 [android] - disable general purpose logging during transformation change (#6452) 2016-09-27 15:08:49 +02:00
Konstantin Käfer
63e53de157 [core] standardize on uint16_t for texture sizes 2016-09-27 10:42:10 +02:00
Minh Nguyễn
0f5b194617 [core, qt] Generalized source change notification
This same notification can in the future be used for other changes to a source.
2016-09-26 15:43:01 -07:00
John Firebaugh
a9842dbd6b [core] Extract some GlyphRange-related constants 2016-09-26 14:55:49 -07:00
John Firebaugh
8764c20621 [core] Provide rationale for blocking queue while errors resolve 2016-09-26 14:55:49 -07:00
John Firebaugh
570bafcfec [core] Don't allow OfflineDownload to flood the request queue 2016-09-26 14:55:49 -07:00
John Firebaugh
f34ba23d85 [core] Avoid some copies 2016-09-26 14:55:49 -07:00
Minh Nguyễn
f307652548 [core] Source-driven attribution
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.

Fixes #2723.
2016-09-26 11:37:06 -07:00
Thiago Marcos P. Santos
968190827b [Qt] Simplify QML example 2016-09-26 17:30:24 +02:00
Bruno de Oliveira Abinader
9eb33d6669 [Qt] Implement QQuickMapboxGL::error{,String} properties 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
5a12539d34 [Qt] Replace remaining Mapbox-specific features as MapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
546109d642 [Qt] Update QML runtime style example 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
327cb22095 [Qt] Added 'image' MapParameter type 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
3e42a0de9f [Qt] s/QQuickMapboxGL{Style,StyleProperty}/QQuickMapboxGLMapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
478241a90f [Qt] Added QQuickMapboxGLMapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
1d1b3f5882 [Qt] Qt conversion toNumber() should accept QVariant::Int 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
15f7b21c4b [Qt] Fix RVO warning in QMapbox::addAnnotationIcon 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
39e30c7687 [Qt] QQuickMapboxGLRenderer is now a friend of QQuickMapboxGL
Simplify implementation by removing unsafe accessors from
QQuickMapboxGL meant only to be used by QQuickMapboxGLRenderer.
2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
1ce6e1b4bb [Qt] Move QMapboxGL::MapChange to QMapbox namespace 2016-09-26 11:47:34 +02:00
David Clark
bf18c33040 [ios, macos] Doc gen handles arrays as required property values (#6448) 2016-09-24 07:39:56 -07:00
Justin R. Miller
b9fafbc2ee clarify circle color as fill (#6447) 2016-09-23 16:16:47 -07:00
Minh Nguyễn
a0e20a6b0f [ios, macos] Allow full hexadecimal colors in layer documentation (#6444)
* [ios, macos] Allow full hex colors in layer docs

CSS hexadecimal RGB syntax can contain all the hexadecimal digits, not just the decimal digits.

* [ios, macos] Parse colors with csscolorparser
2016-09-23 16:04:37 -07:00
Mike Morris
8bc8713e70 [node] fix bad conditional, actually run tests 2016-09-23 12:52:59 -07:00
Justin R. Miller
6aa00afd31 [ios, android] add visual tests for fill, line, & numeric filter styling (#6433) 2016-09-23 10:13:11 -07:00
Thiago Marcos P. Santos
a03e6c14b6 [Qt] Add a more compelling runtime style example 2016-09-23 16:43:37 +03:00
Thiago Marcos P. Santos
8f965b2c25 [Qt] Add map pitch support on the example app 2016-09-23 16:43:37 +03:00
Thiago Marcos P. Santos
746bb678c8 [Qt] Add API for adding icon to the style 2016-09-23 16:43:37 +03:00
Ivo van Dongen
4969043066 [core] OnlineFileSource - prevent double scheduling of requests 2016-09-23 10:47:55 +02:00
Ivo van Dongen
71c71e43e6 [android] offline - prevent OOME 2016-09-23 10:47:54 +02:00
Ivo van Dongen
e968f4ed55 [android] timer - prevent overflow in due time 2016-09-23 10:47:54 +02:00
Ivo van Dongen
742d6d8275 [android] set connectivity state pro-actively 2016-09-23 10:47:54 +02:00
Jesse Bounds
3ddb8dfc86 [ios, macos] Add tile template option to raster and vector sources
A new MGLTileSet class that wraps all available core Tileset options can be created and passed into the sources. The sources pass that tileset object along to core.
2016-09-22 17:30:47 -07:00
Tobrun
e8d47269f8 [android] #5737 - disable tracking when a camera change occurs, treat camera change equal to gesture (#6414) 2016-09-22 10:30:24 -04:00
Bruno de Oliveira Abinader
d3eaf98ca1 [glfw, qt] Added missing docs (#6428) 2016-09-22 15:38:03 +03:00
Bruno de Oliveira Abinader
d5679b07be [qt] Initial style from MAPBOX_STYLE_URL if set 2016-09-22 15:23:43 +03:00
Fredrik Karlsson
c00b129e80 [ios, macos] increase timeout to 2 seconds 2016-09-21 16:13:35 -07:00
Minh Nguyễn
2c8e030550 [ios, macos] Short-circuit packs test
If the packs property is already populated, there’s no need to wait for a change notification.
2016-09-21 16:13:35 -07:00
Young Hahn
6a2ce352d1 Better handling for undefined icon|text-rotation-alignment (#6253)
* [core, ios, android] Use `auto` value for properties with calculated defaults

* Fix render tests
2016-09-21 16:07:33 -07:00
Justin R. Miller
673d8f90f2 [ios] revamp settings/debug UI in test app (#6421) 2016-09-21 15:07:44 -07:00