summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices
Commit message (Collapse)AuthorAgeFilesLines
* Add image source support to Mapbox GL pluginTadej Novak2019-11-091-1/+5
| | | | | | | [ChangeLog][QtLocation][MapboxGL] Added support for image sources Change-Id: I5334f36e033d26824300d90ad8d9aacf3ac75ac3 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Qt Forward Merge Bot2019-11-012-2/+2
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I21ae20734645fc34b302409163f7400015d8302c
| * Fix MapPolygon::color not changing in mapboxgl5.13Paolo Angelelli2019-10-311-1/+1
| | | | | | | | | | | | Change-Id: Ie02e3ea6135e443bcb3143e74d5ca0460e6ab7a8 Fixes: QTBUG-79489 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
| * Fix OSM parsing of place_idPaolo Angelelli2019-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | Something must have changed in Qt json API/parser, or in the return value of nominatim. Either way, place_id is now an int. Change-Id: Ic340bed9c556665ce1114966d6b9157a3f380ad3 (cherry picked from commit 7533c81ccef992b0e932b299cdb1257d21e012d2) Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into 5.14Qt Forward Merge Bot2019-08-311-0/+6
|\ \ | |/ | | | | Change-Id: Ic431a95117ee8290a5b91937a756e9f9cfc37c7a
| * Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-08-241-0/+6
| |\ | | | | | | | | | Change-Id: If3fd3389c3e2eed55daf342d1bde1899d2fe01a2
| | * Improve debugging in mapboxgl plugin when running without opengl backendPaolo Angelelli2019-08-201-0/+6
| | | | | | | | | | | | | | | Change-Id: I252c163ad9296b52f14b83710fda0a469f882d73 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | Add correct header for QSGPlainTextureLiang Qi2019-07-071-0/+4
|/ / | | | | | | | | | | | | | | | | Guard with QT_HAS_INCLUDE, because the header isn't there, yet, but adding it is blocked by the missing include here. Task-number: QTBUG-76928 Change-Id: Iaa4e67a73662de26b600207852e4668762cf5d96 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* | Merge remote-tracking branch 'origin/5.12' into 5.13v5.13.0-beta4Qt Forward Merge Bot2019-05-072-16/+24
|\ \ | |/ | | | | Change-Id: I28b2db32a10b2f70d8c3626d645d279cfedb49f5
| * Use network cache when fetching provider data in the OSM pluginPaolo Angelelli2019-05-062-16/+24
| | | | | | | | | | | | | | | | | | Otherwise it becomes problematic to start up applications in absence of network. Change-Id: Ia543b88bd56bb6c93c803a66e345be1610a4dfe0 Reviewed-by: Tuomas Vaarala <tuomas.vaarala@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-04-014-18/+48
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I5700c90ee86873599b5e7c9ccb6cef7ca48153e7
| * Display a notice when requesting a SSL map type without SSL supportPaolo Angelelli2019-03-253-17/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some plugins request map data for some map types over HTTPS. Without SSL support (Qt built without SSL support, or missing OpenSSL libraries) this typically translates into blank maps. This is very evident on the MapViewer example. This patch makes sure that the example displays a notice when this situation happens. [ChangeLog] Added a notice to the MapViewer example to inform when a HTTPS-based map is selected without SSL support. Change-Id: I85428bb0536f33089a0e6045301c089fafe69d74 Fixes: QTBUG-74195 Fixes: QTBUG-74294 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| * Fix incorrect indexing of Mapbox tiles in the cachePaolo Angelelli2019-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | A missing '.' was causing to index the wrong tile specs for all map types. [ChangeLog] Fixed incorrect indexing of Mapbox tiles in the cache. Change-Id: Ic22dd60f4a608b31d071520bae750efddb48d59a Fixes: QTBUG-70438 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | Import OSM GeoJSON when extended data is requestedPaolo Angelelli2019-03-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Make use of QGeoJSON and import the Nominatim-returned geojson in geocode requests. Useful to get the shape of the geocode results. [ChangeLog] GeoJSON returned in Nominatim queries is now converted into the corresponding geoshapes using QGeoJson. Change-Id: Ie260e82d99363d55ed094e8dbf214d68c2ccadef Fixes: QTBUG-74248 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | Introduce Qt.labs.location QtLocationLabs singleton typePaolo Angelelli2019-03-112-0/+40
| | | | | | | | | | | | | | | | | | | | | | This singleton is meant to offer tech-preview map-related API. It starts with a mapObjectsAt invokable, that can be used to probe MapObjects at a specific coordinate of a map. Reference implementation for Q*ObjectQSG, based on QGeoShape::contains, included. Change-Id: Ief692eb5a43115ca02d4642c82023d1b2e217400 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Unify semicolon usage in Q_UNUSEDJesus Fernandez2019-01-2324-49/+49
| | | | | | | | | | Change-Id: I36dd6881b6f6f028869d63b6311cba7f52a99cc4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into devQt Forward Merge Bot2019-01-221-1/+1
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I8d0881209c8b0a0dce4ed949ef89ee2679448420
| * Fix use_mapbox_text_instructions typoTasuku Suzuki2019-01-131-1/+1
| | | | | | | | | | Change-Id: Ie6e1b7a21818a10b893b161183da2dd447e41ec5 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into devQt Forward Merge Bot2019-01-012-1/+14
|\ \ | |/ | | | | Change-Id: I52053e7871fe1ce8a6aead52db38ead6ee78e1d8
| * Introduce a map plugin parameter to decide U-Turn directionTasuku Suzuki2018-12-262-1/+14
| | | | | | | | | | | | | | | | | | | | | | When "uturn" comes from OSRM, Qt returns UTurnLeft since Right Hand Traffic is in use in most countries. This commit allows qml to set traffic side to return correct u-turn direction. Task-number: QTBUG-72462 Change-Id: Ifaa002b063159b4e4ee563d007721ba7a4a587a4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Extract all available fields in osm geocode replyPaolo Angelelli2018-12-111-1/+8
| | | | | | | | | | | | | | | | | | The reply object that OSM Nominatim returns includes a number of nominatim-specific fields. This patch exposes them through the extendedAttributes property. Change-Id: I7d46880e0674b6b513738e4a9e82ce6b728c377c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into devLiang Qi2018-12-102-8/+9
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I00453b819d65460dabf771617e6181275461cc78
| * Merge remote-tracking branch 'origin/5.11' into 5.12Qt Forward Merge Bot2018-12-101-4/+3
| |\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ifd3514a958d0df4320b253c26e3da3a632088be8
| | * Mapbox: Only include matching categories in the resultsAndy Shaw2018-11-061-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | If an entry in the results had no categories specified at all then it would end up including this in the results even if a specific category was requested to match against. Change-Id: I506b40b73ec07608bd2b2562d92065376fbb67c9 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
| * | Port Nokia geo service plugin to QRegularExpressionSamuel Gaist2018-12-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the Nokia geo service plugin code to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: Idc7459351c6f1a1b12ba1528c426fced324039a1 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Provide extended, plugin dependent information for Geo LocationsPaolo Angelelli2018-12-044-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes support for osm geojson and class fields. At the present, the content of the geojson field is returned as is. As soon as QGeoJson support is finalized, this will be integrated with a QGeoPolygon. Fixes: QTBUG-43401 Change-Id: Ifa7e24cf904a2c1e1e77ebfaa7948ac0ce81d265 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | Allow QGeoCodeReplyPrivate to be subclassed and carry extra dataPaolo Angelelli2018-12-044-2/+46
|/ / | | | | | | | | | | | | | | Stored in form of a variant map. Currently used for debugging purposes. Change-Id: I49fa4b51da0d5947e3b292b6cde96cb496cef9e6 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Mapbox GL: Add mapboxgl.china plugin parameterBruno de Oliveira Abinader2018-10-314-28/+49
| | | | | | | | | | | | | | | | | | Adds support for setting up Mapbox China API base URL + China government-approved styles. Change-Id: I66d9e15f336804466285e0996b0e326ef288be44 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Esri: enable place searchv5.12.0-beta3v5.12.0-beta2Guillaume Belz2018-10-0930-30/+939
| | | | | | | | | | Change-Id: I136ef0a3125b42b484e36413d26aa49e59a43b57 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Fix HERE route parsingv5.12.0-beta1Paolo Angelelli2018-09-243-229/+51
| | | | | | | | | | | | | | | | | | | | We were previously not requesting all relevant attributes, and deriving some required info by ourself, in the wrong way. So just request what's needed and use it. Task-number: QTBUG-70499 Change-Id: I6e0d4b28da1412a4c13460d25e16e383f0aca9a0 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Fix HERE qgeoroutexmlparser and add legs supportPaolo Angelelli2018-09-052-74/+297
| | | | | | | | | | | | | | | | | | | | All route segments after the second waypoint contain broken paths. This patch fixes it refactoring the parsing logic, also adding support for route legs. Change-Id: I30ec9e889a5e16bf81c4a0caf1b59fc895b7ea5e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Set the request into QGeoRoute results in osm, mapbox pluginsPaolo Angelelli2018-08-272-0/+14
| | | | | | | | | | Change-Id: Iec8d1cb9ad369fe765e34bdcff2512e2726797ad Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Honor QGeoPolygon holes in the MapboxGL pluginPaolo Angelelli2018-08-221-9/+21
| | | | | | | | | | | | | | | | This since mapbox-gl-native is able to properly render these holes. Change-Id: I29ee9efd256c607ad36543a949b64699de310371 Reviewed-by: Bruno de Oliveira Abinader <brunoabinader@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Fix visibleArea handling in mapboxgl pluginPaolo Angelelli2018-07-311-5/+9
| | | | | | | | | | | | | | The empty visibleArea case was not handled properly. Change-Id: I1f04139e709ff7dab0b6db075d65d246a5b37cf9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-07-282-105/+41
|\ \ | |/ | | | | Change-Id: Ia764bb5526b00f58f9ff0a0dd5a8ab1b20fb99ad
| * Remove indexing of offline data from OSM pluginPaolo Angelelli2018-07-262-105/+41
| | | | | | | | | | | | | | | | | | With this patch, offline tiles will be looked up on the fly, thus removing the need to index the offline content at startup. Task-number: QTBUG-59665 Change-Id: I1db62c38363dafe82ee2f2ffc7f493ac5d958fc2 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Introduce Map.visibleAreaPaolo Angelelli2018-07-265-60/+67
| | | | | | | | | | | | | | | | | | | | This will allow moving the visible map area to a subregion of the viewport, allowing to maintain the desired visible region visible when overlaying controls on top of the map. Task-number: QTBUG-68966 Change-Id: Idf4b30f7c1e4062e5e1c0ddc01a31bc856c0bc0c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Enable incremental updates in PlaceSearchModelPaolo Angelelli2018-07-053-1/+18
| | | | | | | | | | | | | | | | | | | | | | This way pages can be changed without resetting the model. To achieve this, new members into QPlaceSearchRequestPrivate are introduced, to keep the relationship between a request for one page, and the previous or the next page. In this way sparse population of the model becomes possible. Change-Id: Ic8db0281408f3500ba83f78c7e152ee0b68cd099 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-121-24/+32
|\ \ | |/ | | | | Change-Id: Id27e5a31f3a72eac38b976d546a1f733226cd5ae
| * Support dynamic properties in QMapboxGLStyleChangeBruno de Oliveira Abinader2018-06-061-24/+32
| | | | | | | | | | | | | | | | | | | | | | | | QMapboxGLStyleChange should iterate also over dynamic properties when generating the style change objects. These dynamic properties could come from generic QGeoMapParameter objects instantiated from C++ code. Task-number: QTBUG-68598 Change-Id: I01a3e0971615c61f74789446c03255185a373803 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-05-265-5/+17
|\ \ | |/ | | | | Change-Id: I62794d052a60f4078d3c6aa3912df5893f7a8585
| * Add missing Mapbox Directions API query parametersBruno de Oliveira Abinader2018-05-211-0/+6
| | | | | | | | | | | | | | Task-number: QTBUG-68358 Change-Id: I27422f5deb355dd4e4089f35c59a9f69d579cae8 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * Support raster-dem source type in Mapbox GL Map QML pluginBruno de Oliveira Abinader2018-05-161-2/+3
| | | | | | | | | | | | | | Task-number: QTBUG-68121 Change-Id: Ica6bbd875777aa5689a683127937c594f4ff05f8 Reviewed-by: Thiago Marcos P. Santos <tmpsantos@gmail.com> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
| * Bump Mapbox GL to the latest versionThiago Marcos P. Santos2018-05-163-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | New features like: - Heatmaps - Better label rendering - Bugfixes mapbox-gl-native @ 27b21363e62c105db0b040b4c5a5ef31170ebd30 Change-Id: I443fb91ba42065b0de101d13c3bf51713ed01a89 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devPaolo Angelelli2018-05-164-128/+36
|\ \ | |/ | | | | Change-Id: Ied604f4c229a976749457034eba8ae2f2a385c06
| * Change nominatim base URL to HTTPSPaolo Angelelli2018-05-152-2/+4
| | | | | | | | | | | | | | | | | | Nominatim switched to HTTPS only recently. This updates the endpoint url. Task-number: QTBUG-68261 Change-Id: I8a5328db61fe4f510ecdc70bf442fc069ae0a998 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * Fix QGeoMapObject handling in reference implementationPaolo Angelelli2018-04-222-126/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setVisible was neither changing the visibility nor triggering repaint. Pimpls weren't removing themselves in their destructors when dynamically added/removed via QGeoMapObjectView add/removeMapObject. This patch also factors out the duplicated QGeoMapObject support from QGeoTiledMapLabs and QGeoMapObjectsOverlay and moves it into an own class, QGeoMapObjectQSGSupport. To properly flush the scene graph nodes upon object removal, a pointer to the QSGNode is added to the MapObject struct, now moved inside QGeoMapObjectQSGSupport. Change-Id: Ie8c6d54f8f340ba3867717d9620791d3fe8021cc Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* | Remove the code to manually initialize resources in static buildsSimon Hausmann2018-04-273-18/+0
|/ | | | | | | | | After commit be9a56e5e3ced5d0d668fa24e4c65ae928f2e25a in qtbase, this is not needed anymore. Instead the resource system injects the plugin entry point with a reference to all resources. Change-Id: I03294a3ee43097ce535ef7c2805ee33a99e7dd25 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QPlaceManagerEngineMapbox: No longer use deprecated qSort()Friedemann Kleint2018-04-201-2/+4
| | | | | | | | | | Replace by std::sort(), fixing: qplacesearchreplymapbox.cpp:213:10: warning: 'void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<QPlaceSearchResult>::iterator; LessThan = QPlaceSearchReplyMapbox::onReplyFinished()::<lambda(const QPlaceResult&, const QPlaceResult&)>]' is deprecated: Use std::sort [-Wdeprecated-declarations] Amends 13189f0741c755bfbde889e91c67c168faa3709f. Change-Id: Ib5bab5a924e559f810754f44ebdd849915d70c43 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/wip/navigation' into 5.11Paolo Angelelli2018-04-1717-20/+239
|\ | | | | | | | | | | | | | | | | Conflicts: src/location/declarativemaps/qgeomapobject.cpp src/location/declarativemaps/qgeomapobject_p_p.h src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h Change-Id: Iab847e16011b2095d307e2a3610bf9157ae7b92d