summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix OSM based routing5.5Alex Blasche2016-01-041-2/+2
| | | | | | | | | | | The server changed the status code for a successful route retrieval to 200. Task-number: QTBUG-50240 Change-Id: I98aa444b9a10a69b6a357eb92f6b45d534b4e45d Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Harald Meyer <dev@meh.at> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Fix issue where tiles are prefetched using both prefetch stylesAaron McCarthy2015-07-291-0/+1
| | | | | | | | | | Before being made run-time selectable the only a single prefetch style was used. Restore the same behavior by adding a break to the switch statement. Change-Id: Id16a4b11709497df1511b2605c0a9b5837590b3a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* Make geoclue plugin compile on gcc4.5Alex Blasche2015-07-241-1/+1
| | | | | | Change-Id: Ic95affaf6952877b567b55a5ce6c385acd405736 Task-number: QTBUG-47427 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* OSM supports up to zoom level 19Alex Blasche2015-07-221-1/+1
| | | | | | | | Change-Id: I803716afdd7ca9c2693c6236f5e741174d58a3f6 Task-number: QTBUG-47322 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Harald Meyer <dev@meh.at> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add missing url parameter for OSM places search.Alex Blasche2015-07-163-5/+18
| | | | | | | | | Fixes a few minor grammar/spelling issues in related documentation too. Change-Id: I21c153596b02931c66a38f7068173c687cbe0ad9 Task-number: QTBUG-47188 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix OSM parametersAlex Blasche2015-07-152-5/+5
| | | | | | | | | | | The documentation states the plugin uses "osm" as parameter name prefix. These cases where forgotten when this naming convention was introduced. Change-Id: I7a3735e04db7b55b8b3d4d6bf84002d63dbcfea9 Task-number: QTBUG-47188 Reviewed-by: Harald Meyer <dev@meh.at> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update places-list and places-map examplesMichal Klocek2015-07-134-2/+2
| | | | | | | | | | | Change position used in examples to Oslo. Update marker icons to be the same as in mapviewer example. Update screenshots, so they contain osm map. Add marker icon to places_list, so it does not look so boring. Add places title to places_map, so it is more readable. Change-Id: Ia321aa8577e77f76468c504cd4e6ce877712089c Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Remove FIXME which is no longer relevantAaron McCarthy2015-06-301-2/+0
| | | | | | | | Gesture handling on rotated maps works as expected. Change-Id: I36dee2f3b933aa9c361694fc74f86868a882fc5d Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Make use of qBoundAaron McCarthy2015-06-261-2/+1
| | | | | Change-Id: Ia6859fa30118f29d6074d4ffed9e22023f75cc3b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Remove official support of BlackBerry on 5.5 in QtPositioningAlex Blasche2015-06-171-1/+1
| | | | | | | | The relevant code base will be removed in Qt 5.6. This change prepares qtlocation repo for the removal of the "Qt for BlackBerry" link. Change-Id: I7c68bc1a00b966f3ce46c85a8cbcee6cd2305063 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Fix activeMapType handlingMichal Klocek2015-06-101-3/+9
| | | | | | | | | | | * fix map type test to use geo test plugin * add test types to test plugin * rewrite map type test so it actually tests something * fix activeMapTypeChanged signal * create default map type as NoMap type Change-Id: I9398815fe42cbdeb392bd226de0c8764d3e0bc19 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update qmltypes for QtLocationAlex Blasche2015-06-091-10/+424
| | | | | | Change-Id: I4cbb6ed7472a793924a9cca3c9e92a3996c6fcc1 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update qmltypes for QtPositioningAlex Blasche2015-06-091-1/+83
| | | | | | Change-Id: I242622fbb6ba5f63b1fa76e2c01d75f978c8e98a Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Improve Polyline MapItemWolfgang Bremer2015-06-011-10/+28
| | | | | | | | | | | | | | | The old implementation used polygons added to a QPainterPath for the screenBounds and the "contains" area calculation on each screen update and thus had a huge performance impact when using more complex polyline map items with several hundred points. The new implementation only calculates the screenBounds on each screen update. However, the contains check uses a similar logic to the previous QPainterPath approach but is way more performant. This is achieved by testing only parts of the polyline and not the whole QPainterPath at once. Change-Id: Ia332343f40ff865079fc86f0241a3f46a650162d Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix documenation in 'places' exampleMichal Klocek2015-05-295-89/+41
| | | | | Change-Id: Id224d73d2b68a947bc6c7121175a2f83bd0059fa Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Double pan dragStartDistance in mapgestureareaMichal Klocek2015-05-291-1/+1
| | | | | | | | | Commit 929c9a46aaa75ec3c77a226eb9e8a2e956e4763c makes slider in mapviewer impossible to drag, double the drag distance for now Change-Id: Ie9aa8ca17c87b74dd0e22cdb4e5b0845ca652827 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix doc issues around MapPolylineAlex Blasche2015-05-293-2/+16
| | | | | | | | | | | | MapRoute inherits from MapPolyline but qdoc doesn't recognize QML inheritance and/or we don't really want to document protected MapPolyline properties in MapRoute. Fixes some broken links in the same area while we are at it. Change-Id: Icd4095d98dbf2555c601c4088c85e9a2a08b3186 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix QtLocation \since tags in QML and C++Alex Blasche2015-05-2967-71/+71
| | | | | | | | The first release is 5.5 and not 5.0 Change-Id: Ib659adf77293e10e8f3d117ce16bbc25858d6ab2 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix broken MapType enum linksAlex Blasche2015-05-291-3/+3
| | | | | | | | We use QML syntax and not C++. Change-Id: Ib08e74b0450d47d916d33ce3d1c674bc8124e615 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Document return types for invokable functions in QtLocation QMLAlex Blasche2015-05-298-36/+36
| | | | | | Change-Id: I94aa0e16ff316e791f071ed1c299a717d74ce792 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Don't use polygon but polygon_geojson for nominatim queriesNiels Weber2015-05-291-1/+1
| | | | | | | | According to osm this is the way to go. See https://trac.openstreetmap.org/ticket/5319 for reference. Change-Id: I77948719a0e5d2598517c6a3c84d73b589a3a03b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Mark Qt Location as Tech Preview on its documentation front pageAlex Blasche2015-05-291-0/+3
| | | | | | Change-Id: I708421dad06bf68fd6da585ba4305e185be3c5ac Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Don't share provider specific parameters with unrelated pluginsAlex Blasche2015-05-292-5/+52
| | | | | | | | | | | | | As an example the HERE plugin requires the here.app_id and here.token parameter. There is no point in passing those parameters on to e.g. the mapbox plugin. The OSM, mapbox and here plugin were already converted in such a way that they only use prefixed parameter keys. Non-prefixed parameters continue to be shared among all plugins. Change-Id: I9bdc0dccb95160a842800b785916f18ed78fdcd7 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Change HERE tiles default size to 256Michal Klocek2015-05-281-1/+1
| | | | | | | | Zoom levels 0 and 20 are not supported for 512x512 tiles. Task-number: QTBUG-36949 QTBUG-45694 Change-Id: Id1622a77f1b1f15cb706ee78f2ca872200ba2d3d Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Cleanup QGeoCameraData classMichal Klocek2015-05-281-42/+37
| | | | | | | Renames class members to use m_ naming convention Change-Id: I5bebc9be7fc29cce15d2b198beb8e8216f9cae4b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Cleanup QGeoMapScene classMichal Klocek2015-05-282-212/+189
| | | | | | | | | | This commit: * renames class members to use m_ naming convention * removes not required includes * updates PIMPL Change-Id: Id9d1087389df0a5e314353b4220330934910b364 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Allow custom URLs for OSM geocodingWolfgang Bremer2015-05-283-2/+14
| | | | | | | | | This enables the usage of another geocoding server than the default osm project. The api still needs to be the same, but it is possible to use another server. Change-Id: I72f3835f28b9c52c042b23e9c4fdf2e85c752c56 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Document the new parameter prefixes for here an osm pluginAlex Blasche2015-05-271-0/+6
| | | | | | | | | | It is not an API break in the traditional sense but it is a break of some sort. Hence we need to document them. Task-number: QTBUG-42151 Change-Id: I9f0d11762239213f3104bf997d8a6fbd4af5e46e Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Use "osm" prefix for osm plugin parametersAlex Blasche2015-05-274-19/+23
| | | | | | | Task-number: QTBUG-42151 Change-Id: I58648bac947b19e675f129d78bec61e079a93d2c Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add "here" prefix to all Here geoservices parametersAlex Blasche2015-05-279-51/+58
| | | | | | | Task-number: QTBUG-42151 Change-Id: I3d71ee77327478dfdda23af709bee489f83bb9f6 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Provide means to convert GeoShape to appropriate subclass in QMLAlex Blasche2015-05-262-0/+29
| | | | | | Change-Id: I1f0d1540b07af8f385ef670990a8669ec8c973d8 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Workaround for failing conversion between Q_GADGET'sAlex Blasche2015-05-262-0/+33
| | | | | | | | | | | | | | QGeoRectangle and QGeoCircle are subclasses of QGeoShape. Before this patch setting a QGeoShape property of a QML object is not possible because the QGeoRectangle/QGeoCircle cannot be converted to a QGeoShape. This patch addresses the problem by providing custom converters for the above classes. It enables QVariant::convert() for the classes above. Change-Id: I7daba5254dad0df598324432db3b1819e68648b6 Task-number: QTBUG-46232 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Icon themes are no longer supported. Remove their documentation.Alex Blasche2015-05-261-36/+0
| | | | | | Change-Id: I93225819920eac912da3c3df9a7cad67bdef3a49 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add visible region support to MapAlex Blasche2015-05-262-5/+135
| | | | | | Change-Id: I340f1ad3a623a04a1846c5a57ad2bbcb9e253556 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Enable and update map flick and pinch autotest.Michal Klocek2015-05-221-2/+2
| | | | | | | | | | | | | Make pan drag distance inclusive in QDeclarativeGeoMapGestureArea which simplifies unit testing on different platforms. Use sceneCenter instead of lastPos for panning startup. lastPos is used with velocity sampling which makes it not reliable as a starting value. Change-Id: If0d98e834a5e2d4264a51d70c2c39846cd2a677b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* More fixes to geoshape.type qml documentationAlex Blasche2015-05-221-0/+3
| | | | | | | | | | | - Add \since information. We cannot use \since directly as geoshape is not documentated by proper class doc style. - Add section heading. Change-Id: I0ea15617439454627a34ced78168cdb212beab5f Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix missing guarded pointers for mapping engineMichal Klocek2015-05-2113-125/+128
| | | | | | | | | | | | | | | | Since mapping engine is going to be destroyed on geoseriveprovider change/plugin unload use QPointer to track engine existence before making calls. This commit refactors a bit QGeoTileRequestManager to handle all the calls to the enigne. Check for null pointer before calling the engine. Move registerMap method to base class. Update QGeoTiledMapNokia class accordingly. Change-Id: I886e85e660b2c515e4a617e98e9cc0c3c13781b6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Unify zoom calculationsMichal Klocek2015-05-212-19/+9
| | | | | | | | Make camera calculations in qgeocameratiles and qgeomapscene more obvious. Use the same fractions. Change-Id: I4f156bb894eb2c606df97308ebd1b637408d9f2d Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix missing tiles on some zoomLevelsMichal Klocek2015-05-211-2/+3
| | | | | | | | | | | | | | | | When ratio between screen size and tile size was high, frustum far clipping plane was preventing intersection points calculations. Do not use magic value for far clipping plane, since frustum is not used in projection for int zoom level changes, simplify near clipping plane. Near clipping plane should be always smaller than possible altitude value. Far plane should always exceed altitude to allow intersections with z plane. Task-number: QTBUG-45508 Change-Id: I59693ace794de37f0ad3544c11eb0c5a471eeb04 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Refactor fetching calls in QGeoCameraTilesMichal Klocek2015-05-214-85/+82
| | | | | | | | | Introduce dirty flags, remove redundant getters. Change fetch ifdefs to switch case, so all code gets compiled. Change-Id: I610f20098c67089bd2c2684910283f165e1109e0 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add QML API changes to documentationMichal Klocek2015-05-212-0/+53
| | | | | Change-Id: I597130a7cca150ab9f1afbd542efa7270f337019 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Rename cameraStopped to prefetchData in Map APIMichal Klocek2015-05-212-3/+3
| | | | | Change-Id: Ia875214b7233e05a7f430931a2ba7437c9a428e3 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Ensure that docs always import QtPositioning and QtLocation moduleAlex Blasche2015-05-2018-27/+28
| | | | | | | | | | At the same time we update the import versions and reduce the qdoc tag duplications. Change-Id: I894d163657734a4b3bbc2951462660571f340dfd Task-number: QTBUG-46147 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix crash when initiating map flick w/o QtPositioning importAlex Blasche2015-05-206-19/+36
| | | | | | | | | | | | | | | | | | A map flick requires a QPropertyAnimation for a QGeoCoordinate. The required animation interpolator is exported by the QtPositioning QML plugin. In general a QML Location app should always import QtPositioning as well. In this case the import was missing and subsequently the interpolator for the QGeoCoordinate was never registered. This patch ensures that the QtLocation QML code that requires the animation registers the interpolator in addition to the regular QtPositioning registration. Change-Id: I61759418f0cdf1cb30ff946cc325a112e90c1a2f Task-number: QTBUG-46147 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Updated WinRT license headers to use LGPLv3 instead of LGPLv21Jani Heikkinen2015-05-204-40/+52
| | | | | | | | From 5.5.0 -> WinRT port is licensed with LGPLv3, see http://blog.qt.io/blog/2015/04/29/windows-10-support-in-qt/ Change-Id: I267f2c70cd7f365464bc596ac5dcb8503219cdbd Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Make geoclue plugin compile on RHEL 6.6Alex Blasche2015-05-121-1/+1
| | | | | | | | G_VALUE_INIT was added by glib 2.30 and RHEL 6.6 uses 2.28. We expand the macro to fix the compile issue. Change-Id: I25d19858ad3035a266d9ddf4d9badc830071e943 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Fix QDeclarativeSearchResultModel error processing.Michal Klocek2015-05-111-0/+1
| | | | | | | | When QPlaceReply has an error do not process the reply futher. Change-Id: I373f1f2a25601516bf1cd022283ef1c5b06f8497 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Allow custom URLs for OSRM routingWolfgang Bremer2015-05-083-1/+14
| | | | | | | | | This enables the usage of another routing server than the default osrm project. The api still needs to be the same, but it is possible to drive your own server using the OSRM project sources. Change-Id: Ib335fdf97eb1e208caafb17783c22d9b423a40e2 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Allow custom URLs for OSM tilesWolfgang Bremer2015-05-088-1/+66
| | | | | | | | | | | | This enables the usage of various mapping services which use the OSM API for tile distribution. One only needs to set the urlprefix parameter to a correct url and the activeMapType to the "Custom URL Map". Task-number: QTBUG-32937 Change-Id: Ib24da19dc598ccc288047ce2651e6c1792ae2054 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* Shift generic docs away from planespotter exampleAlex Blasche2015-05-077-39/+60
| | | | | | | | | They are more general and are linked to from other pages too. Change-Id: I828008e3692a593bf9343346508b9c0ad8183108 Task-number: QTBUG-45415 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>