Commit Graph

156 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
8801c9031b [Qt] s/parent_/parent
Fits better with the docs.
2016-08-26 16:39:38 +03:00
Thiago Marcos P. Santos
8d258e3542 [Qt] Initial documentation stub 2016-08-26 16:39:34 +03:00
Thiago Marcos P. Santos
af56f03031 [Qt][tests] Added tests for set style interface 2016-08-26 16:08:44 +03:00
Thiago Marcos P. Santos
9605cac3e9 [Qt] setStyleURL and setStyleJSON name review
Qt uses URL as Url and JSON as Json.
2016-08-26 15:52:16 +03:00
Thiago Marcos P. Santos
e9a453271b [Qt] Read the access token from the environment by default 2016-08-26 00:25:31 +03:00
Thiago Marcos P. Santos
547af7475e [Qt] Implement a Qt headless renderer
Using legacy QGLWidget because we support Qt4.
2016-08-22 16:52:02 +03:00
Thiago Marcos P. Santos
6761b325fb [Qt] Enable tests on macOS 2016-08-22 16:52:02 +03:00
Bruno de Oliveira Abinader
8843bebee2 [Qt] Added QQuickMapboxGLStyle
A QQuickMapboxGLStyleProperty being a child of QQuickMapboxGLStyle
assures that only properties associated with that particular style will
reflect on the map - and that happens only when the style is the current
set via style property.
2016-08-17 15:21:52 +03:00
Bruno de Oliveira Abinader
45da1abbe1 [Qt] Use MapChangeWillStartLoadingMap to get notified about style changes 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
ee62a807a3 [Qt] Invert parent/child notification mechanism in QQuickMapboxGLStyleProperty
Parent item (QQuickMapboxGL) should check for signals from its child
items e.g. QQuickMapboxGLStyleProperty, and not the opposite.
2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
5057d7ef5d [Qt] Use QVariantMap in QQuickMapboxGLStyleProperty 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
aa13acdb87 [Qt] Use strict signature for add{Source,Layer} 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
15b7612c13 [Qt] Remove template from eachMember 2016-08-17 14:43:22 +03:00
Thiago Marcos P. Santos
75ca6d9bdd [build] Workaround automoc issue on some cmake versions 2016-08-05 11:42:22 +02:00
Konstantin Käfer
95b6d48b71 [build] use cmake script bundled with Mason 2016-08-05 11:42:22 +02:00
Konstantin Käfer
e46b580c67 [build] unify naming of Makefile targets
`make foo` just builds
`make run-foo` builds and runs
2016-08-05 11:42:22 +02:00
Konstantin Käfer
a2e758b417 [build] make headless rendering work with Qt on macOS 2016-08-05 11:42:22 +02:00
Thiago Marcos P. Santos
795d17dbdb [Qt] Use Qt decoder instead of nunicode 2016-08-05 11:42:22 +02:00
Thiago Marcos P. Santos
c6313681d2 [build] Re-enable Qt bots 2016-08-05 11:42:22 +02:00
Konstantin Käfer
e82aeddb6f [build] add missing Qt5 files 2016-08-05 11:42:22 +02:00
Konstantin Käfer
8b625f4d1f [build] exclude CMake 3.6.0 due to an automoc naming bug 2016-08-05 11:42:22 +02:00
Thiago Marcos P. Santos
821e58fdc1 [build] Build Qt with CMake 2016-08-05 11:42:22 +02:00
Konstantin Käfer
692fe1f3ff [build] switch to CMake
This is very much a work in progress.
2016-08-05 11:42:22 +02:00
Bruno de Oliveira Abinader
472ab7442f [qt] Added QQuickMapboxGL{Layout,Paint}StyleProperty 2016-07-29 19:14:41 +03:00
Vladimir Agafonkin
9ecc0d9597 GeoJSON point clustering (#5724)
* add supercluster dependency
* prepare GeoJSONTile for Supercluster
* prepare GeoJSONSource for accepting options
* try removing mbgl::GeoJSON
* fix setGeoJSON types
* add GeoJSONSource getURL
* add geojson to include path
* add Supercluster index in GeoJSONSource
* fix GeoJSONSource getZoomRange
* bring back mbgl::GeoJSON header
* fix tidy warnings hopefully
* try test-suite with enabled cluster test
* fix formatting in clustering-related files
2016-07-27 20:18:41 +03:00
Bruno de Oliveira Abinader
6edaf2dc81 [qt] Implement QQuickMapboxGL color property 2016-07-27 16:24:11 +03:00
Bruno de Oliveira Abinader
26a9213f6e [build] Upgrade geojson-vt-cpp@6.1.2 2016-07-26 16:35:29 +03:00
Thiago Marcos P. Santos
65e2822f21 [Qt] Use Qt text codec instead of nunicode
Remove one extra dependency. Qt has some bugs on the text codec it
seems, but it is also important to keep the behavior aligned with
the client API.
2016-07-22 18:56:30 +03:00
Vladimir Agafonkin
a9e4e98e8e Revert "add supercluster dependency"
This reverts commit f84e9fdb2b.
2016-07-18 16:58:32 +03:00
Vladimir Agafonkin
f84e9fdb2b add supercluster dependency
[skip ci]
2016-07-18 16:21:28 +03:00
Thiago Marcos P. Santos
3fd874de8d [Qt] Use the thread implementation appropriated to the target
Qt has a thread abstraction, but we would need to use QThread to use it.
2016-07-16 10:38:42 +03:00
Aki Koskinen
63298066b1 [qt] if qmake isn't available, try qmake-qt5 (#5658) 2016-07-12 19:13:34 +03:00
Thiago Marcos P. Santos
86cebd4cca [core] Report conversion errors using std::string
char* increases the risk of pointing to a invalid reference. Qt had
to use a static variable as retainer to workaround.
2016-07-12 16:04:20 +03:00
Thiago Marcos P. Santos
462137a536 [Qt] Bind 'L' on the example app to runtime style example 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
5ad22bd672 [Qt] Implement a GeoJSON coverter from QByteArray 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
abeee2087c [Qt] Added add/remove style source method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
abff8e42c1 [Qt] Added add style layer method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
18c8830169 [Qt] Added set style filter method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
b59070590b [Qt] Added set style paint properties method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
e9259fc03e [Qt] Added set style layout properties method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
46df5d58f9 [Qt] Added conversion functions for the runtime style API 2016-07-11 17:01:31 +03:00
Thiago Marcos P. Santos
03b2bb68ba [Qt] Avoid a deep copy on the network reply
QByteArray::data() may do a deep copy.
2016-07-11 17:01:31 +03:00
Thiago Marcos P. Santos
843fff99b5 [Qt] Fix build on Linux with clang-3.8
clang finds this construction ambiguous, go figure.
2016-07-11 17:01:31 +03:00
Bruno de Oliveira Abinader
65868b28cc [Qt] Janitor private headers 2016-07-11 17:01:31 +03:00
Young Hahn
71a3b1d0db [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)
* [core] geometry.hpp 0.8.0

* geojsonvt @ 6.0.0

* Update platform deps, build scripts

* Perf optimizations/cleanup

* Rebase in geometry@080

* D.R.Y. etc

* Ensure fill annotation geometries have closed rings.

* Optimizations

* Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt

* Apply close multi/poly geoms for line annotations as well
2016-07-06 17:29:34 -04:00
Bruno de Oliveira Abinader
7d63847bec [Qt] Use mbgl::LineString instead of mbgl::Polygon as default shape 2016-06-22 18:07:19 +03:00
Thiago Marcos P. Santos
7ea0a0db32 [tests] Run memory tests on travis
Qt4 will run tests with libjemalloc.so. The Memory.Footprint and
the Memory.Fragmentation will only run with libjemalloc.so because
we have then a better control over the results.
2016-06-21 19:12:32 +02:00
Bruno de Oliveira Abinader
760a692378 [Qt] Added QMapbox::TransitionOptions to style class functions 2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
061511bc69 [build] Don't override CXX11ABI if already set 2016-06-17 20:44:40 +03:00
Bruno de Oliveira Abinader
a08bb4ccea [Qt] Define QT_IMAGE_DECODERS if needed 2016-06-17 20:43:21 +03:00