Asheem Mamoowala
bc806d4354
Use QSqlError::databaseText for reporting errors from SQLite wrapper to match SQLite3 error messages
2018-08-28 07:14:54 -07:00
Konstantin Käfer
112bbc7ab2
[core] make style/conversion.hpp implementation private
2018-08-19 13:09:16 +02:00
Konstantin Käfer
fa7b70945f
[core] harden OfflineDatabase
2018-08-14 17:03:46 -07:00
John Firebaugh
b2f60a4bf2
[core] Eliminate setProperty & co.
2018-08-13 12:39:44 -07:00
Paolo Angelelli
8ae5ea953e
[qt] Use FollowRedirectsAttribute in network requests
2018-08-10 14:08:21 +03:00
Bruno de Oliveira Abinader
66f5be3864
[Qt] Check if property value is a valid JSON string
2018-08-06 18:08:02 +03:00
Bruno de Oliveira Abinader
58d8b771a1
[Qt] QMapboxGL::set{Paint,Layout}Property should return bool
2018-08-01 13:36:11 +03:00
Asheem Mamoowala
7c585244ab
Use Filter::serialize() in QMapboxGL::getFilter()
2018-07-23 09:12:26 -07:00
Asheem Mamoowala
1067dd7ea2
[qt] Add QMapboxGL::getFilter()
2018-06-27 12:15:55 +03:00
Thiago Marcos P. Santos
a5ef72a051
Use a shared scheduler on threads without a default scheduler
...
Render threads won't have a scheduler, so we create one that is
shared by all the maps rendering at this thread. The bad side
effect of this is that we need to wake up the render thread
to process events.
Mapbox GL should get rid of processing events on the render
thread. This solution is a workaround.
2018-06-15 19:33:27 +03:00
Konstantin Käfer
79394ee47d
[core] remove unused flags from SQLite header
2018-06-12 17:41:16 +02:00
Konstantin Käfer
4477dd4119
[core] support moving Database object during a Transaction
2018-06-12 17:41:16 +02:00
Bruno de Oliveira Abinader
ae61b9d35f
[Qt] Add QMapboxGL::layerIds()
2018-06-12 16:32:47 +03:00
Bruno de Oliveira Abinader
95a6fcdd26
[qt] Fix asMapboxGLFeatureIdentifier iterator traversal
2018-06-11 14:45:30 +03:00
Konstantin Käfer
d66251234d
[core] don't use floating point versions of pow/log
...
GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable.
Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary.
See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
2018-06-04 10:43:21 +02:00
John Firebaugh
a1195f6a9d
Avoid exceptions for flow control during database creation
...
Unfortuntely, it's difficult to avoid all exceptions, because sqlite3_open_v2 does not reliably return SQLITE_NOTADB if the file is not a database. However, this should avoid cases where developers misinterpret the SQLITE_CANTOPEN exception as a crash, which is the common case.
2018-05-09 07:32:16 -07:00
Thiago Marcos P. Santos
0767bf0686
[qt] Only share a FileSource if it points to the same path
...
Previously all QMapboxGL objects were sharing the same cache created
by the first instantiated object. Now it will share the cache only
if it points to the same path.
Fixes #11766
2018-04-26 11:07:48 -07:00
Fabian Guerra
e08b6fe87f
Merge branch 'release-boba' into master
...
# Conflicts:
# circle.yml
# include/mbgl/style/expression/let.hpp
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapKeyListener.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java
# platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
# platform/android/gradle/dependencies.gradle
# platform/android/src/example_custom_layer.cpp
# platform/android/src/geojson/point.cpp
# platform/darwin/src/NSPredicate+MGLAdditions.mm
# platform/darwin/test/MGLExpressionTests.mm
# platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec
# platform/ios/Mapbox-iOS-SDK-symbols.podspec
# platform/ios/Mapbox-iOS-SDK.podspec
# platform/ios/app/MBXViewController.m
# src/mbgl/renderer/layers/render_custom_layer.cpp
# src/mbgl/style/conversion/filter.cpp
# src/mbgl/style/expression/interpolate.cpp
# src/mbgl/style/expression/value.cpp
# test/style/filter.test.cpp
2018-04-23 10:44:02 -04:00
Asheem Mamoowala
099fcc3b3c
Use a host interface for CustomLayer instead of function pointers ( #11553 )
...
Use a host interface for CustomLayer instead of function pointers
Co-authored-by: Julian Rex <julian.rex@mapbox.com >
2018-04-02 16:15:25 -07:00
Bruno de Oliveira Abinader
803a4d46ed
[Qt] Added QMapboxGL::MapLoadingFailure enum
2018-03-05 14:41:58 -05:00
Bruno de Oliveira Abinader
fc140e265b
[Qt] Expose mapLoadingFailed signal
2018-03-05 14:41:58 -05:00
Konstantin Käfer
136e536159
[core, qt] move self-resetting Statement/Query object to shared header
2018-03-02 14:26:25 +01:00
Konstantin Käfer
5ca38bbde9
[core] refactor SQLite error/status codes
2018-03-02 14:26:25 +01:00
Bruno de Oliveira Abinader
380f5dc88b
[qt] Rename Qt SDK to 'Mapbox Maps SDK for Qt'
2018-02-27 16:28:55 +02:00
Thiago Marcos P. Santos
ba019b0256
[qt] Fix issue if resources not being found on the database
...
Once again QVariant getting confused about its contents
datatype. With this patch we use QString directly and
copy the contents, which should be cheap with Qt implicity
sharing.
2018-02-26 14:43:32 +02:00
Thiago Marcos P. Santos
c1b17e251a
[qt] Fix wrong signal being emitted
...
Probably caused by a typo when refactoring the asynchronous rendering.
2018-02-26 13:19:11 +02:00
Thiago Marcos P. Santos
d229cbb031
[qt] Add an interface for Static rendering
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
36a0c98713
[qt] Refresh the docs
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
6542e6ee37
[qt] Make sure that methods are being called on the right thread
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
673730ccd4
[qt] Implement FBO handling
...
Needed for rendering 3D extrusions properly.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
a4e95c3da3
[qt] Only use the MapRenderer as scheduler if there is no other
...
Optimization of when running on the Main Thread that has a RunLoop.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
4f8a23cd8f
[qt] Expose an interface to create a renderer on a separated thread
...
If not called, it will render on the main thread as usual.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
bb00f558fb
[qt] Make MapboxGLMapRenderer a scheduler to receive messages when rendering
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
a062f3e17b
[qt] Update map rendering via RendererObserver
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
e7e8cb4547
[qt] Render asynchronously
2018-02-09 20:28:54 +02:00
Konstantin Käfer
78f8fd88b4
[core] factor out RunLoop::wake()
2018-02-06 18:49:06 +01:00
Thiago Marcos P. Santos
0a7b4e3eb8
[qt] Fix import/export symbols declarations
...
Fixes #10875
2018-01-10 21:42:20 +02:00
Thiago Marcos P. Santos
f880baaeb7
[windows][qt] Remove std:: namespace of some functions
...
Not available on Windows.
2018-01-08 22:58:20 +02:00
Konstantin Käfer
2eec5a1980
[core] move HeadlessBackend extension initialization code into Impl
2017-11-29 15:48:51 +01:00
Konstantin Käfer
335f04f7e1
[core] fold HeadlessDisplay into the headless RenderBackend implementation
2017-11-29 15:48:51 +01:00
Chris Loer
5da5ba7706
[core, ios, qt, android] Close race condition in RunLoop (issue #9620 )
...
Because a message we queue from the foreground may cause the background to complete, exit, and tear down the AsyncTask, we have to block queue processing until we've finished our call to AsyncTask::send().
Broadening the scope of a mutex is scary, but I audited the code of our four implementations of AsyncTask and I don't see any way this could cause a deadlock.
2017-11-27 14:42:44 -08:00
Thiago Marcos P. Santos
cf3357ea45
[qt] Use qWarning() for logging
...
This is the Qt default and it is thread-safe.
2017-11-24 01:30:39 -02:00
Bruno de Oliveira Abinader
43aefbffd0
[Qt] Update documentation
2017-11-23 15:36:26 +02:00
Bruno de Oliveira Abinader
10a9b25928
[Qt] Fix deprecation warnings in Qt 5.10
2017-11-13 11:47:31 -02:00
Bruno de Oliveira Abinader
6b5afaab76
[Qt] Explicit QVariant type as string when binding text
2017-11-09 19:17:10 +02:00
Bruno de Oliveira Abinader
a339dcc6cc
[Qt] Do not assume viewport size == fbo size in Qt4
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
12f69ae14a
[Qt] Call QNetworkReply::readAll() only once
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
7936c138fe
[Qt] Call QSqlQuery::finish() when inactive
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
ca73bbc9be
[Qt] Do not store QSqlDatabase
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
2b03d6e805
[Qt] Qt SQLite driver has no setForwardOnly support
2017-11-09 16:13:05 +02:00