Git Product home page Git Product logo

googlemaps's Introduction

Google Maps plugin for QtLocation

GoogleMaps plugin for QtLocation module

Build instructions:

  1. </your/Qt/folder/bin/>qmake -r
  2. make
  3. make install

Running: Plugin parameter mustbe provided in order to make plugin works

PluginParameter { name: "googlemaps.useragent" value: "mygreatapp" }

PluginParameter { name: "googlemaps.cachefolder" value: "/gmaps_cache" }

PluginParameter { name: "googlemaps.route.apikey" value: "bla-bla" }

PluginParameter { name: "googlemaps.maps.apikey" value: "bla-bla1" }

PluginParameter { name: "googlemaps.geocode.apikey" value: "bla-bla2" }

PluginParameter { name: "googlemaps.maps.tilesize" value: "256" }

Debugging: to check what plugins are loaded, set QT_DEBUG_PLUGINS=1 environment variable

googlemaps's People

Contributors

atdotde avatar cmgeorge avatar difitec-ebertp avatar dirkhh avatar dje29 avatar mfbernardes avatar neolit123 avatar vesath avatar vladest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

googlemaps's Issues

Google api metrics (api key) not working

Hi. I made simple project in Qt Creator with QML. The map is working, but Google doesn't see my api key activity. I have another project on JS with the same api key, which activity is being recognized by Google. I enabled all api's in my google maps account.

Rectangle
{
width: 1024
height: 600

    Plugin
    {
        id: mapPlugin
        name: "googlemaps"
        PluginParameter
        {
            name: "googlemaps.apikey"  //not working
            //name: "googlemaps.maps.apikey"   //not working
            value: "AI.......................................................mE"
        }
    }

    Map
    {
        id: map
        anchors.fill: parent
        plugin: mapPlugin
        center: QtPositioning.coordinate(59.919716, 30.277555)
        zoomLevel: map_zoom_level

I rebuild plugin adding direct specifing of api key like this:

if (parameters.contains(QStringLiteral("googlemaps.places.apikey")))
m_apiKey = parameters.value(QStringLiteral("googlemaps.places.apikey")).toString().toLatin1();
else
m_apiKey = parameters.value(QStringLiteral("googlemaps.apikey")).toString().toLatin1();
m_apiKey = "AI.......................................................................mE";

I found 4 files where i can do it. I redeployed project and refreshed plugin library files in the project and Qt folders. Not working.

Is it supposed to work in Qt for iOS

Hello,

first of all thank you very much for the great plugin. It works beautifully on macOS with Qt 5.10.0. I can make install it and it automatically pops up in the official mapviewer example under Provider. Great job!

However the same approach does not work for iOS. I can see, that the files are placed correctly, but the provider does not show up:

Qt5.10.0//5.10.0//ios/plugins/geoservices/libqtgeoservices_googlemaps.a
Qt5.10.0//5.10.0//ios/plugins/geoservices/libqtgeoservices_googlemaps.prl
Qt5.10.0//5.10.0//ios/plugins/geoservices/libqtgeoservices_googlemaps_debug.a
Qt5.10.0//5.10.0//ios/plugins/geoservices/libqtgeoservices_googlemaps_debug.prl
Qt5.10.0//5.10.0//clang_64/plugins/geoservices/libqtgeoservices_googlemaps_debug.dylib

Is it supposed to work on iOS?

error: QtLocation/private/qgeotiledmap_p.h: No such file or directory

@vladest hello sir
i am developing a qml project.
i want to track a car moving on my map.i searched a lot and find out that there is no official plugin for googlemap in qt .
i searched again and find your googlemaps plugin.can you give me some information about using it in qt projects?i downloaded it but there is some errors in my project like this :
error: QtLocation/private/qgeotiledmap_p.h: No such file or directory
i have no idea about solving the problem
can you help me ?
thank you

License info

Hi!
I see there is no license information about the plugin. Would you mind adding it?
Thanks!

No member named 'errorOccurred'

First off - apologies if this me. Not saying I don't have this messed up ... but I am trying not to 😆. If it is, please just clarify the error of my ways, and we can close this out. But in case, reporting it.

I am trying to build an application that makes use of googlemaps (subsurface). So first I built qtlocation (v6.3.0),

git clone --branch 6.3.0 https://code.qt.io/qt/qtlocation.gitcd qtlocation
cd qtlocation
mkdir build
cd build
~/Qt/6.3.0/macos/bin/qt-cmake ..
make -j16
make install

That all seems to go OK, and installs (to ~/Qt). So then,

git clone https://github.com/vladest/googlemaps.git
cd googlemaps
mkdir build
cd build
~/Qt/6.3.0/macos/bin/qmake ..
make -j16

But, I end up with (a bunch of) errors like,

qplacecategoriesreplygooglemaps.cpp:21:10: error: use of undeclared identifier 'errorOccurred'
    emit errorOccurred(errorCode, errorString);
qgeocodingmanagerenginegooglemaps.cpp:113:53: error: no member named 'errorOccurred' in 'QGeoCodeReplyGooglemaps'
    connect(geocodeReply, &QGeoCodeReplyGooglemaps::errorOccurred, this, &QGeoCodingManagerEngineGooglemaps::replyError);

Thoughts?

Thanks!!

Black tiles for Hybrid map

hello,

i think i found an issue with the Hybrid map type.
if you zoom over these coordinates in the Red Sea:
https://www.google.bg/maps/place/27%C2%B033'55.8%22N+34%C2%B035'00.8%22E/@27.565488,34.5813603,880m/data=!3m2!1e3!4b1!4m5!3m4!1s0x0:0x0!8m2!3d27.565488!4d34.583549

some black tiles are loaded instead of normal tiles at a relatively low zoom:
http://i.imgur.com/GOOSIWI.jpg

i've opened the cache folder and it seems that the tiles are just downloaded as black.
also as a side question, when you zoom deep enough the same black tiles start appearing - would it be possible to not load these black tiles and perhaps load tiles from the last zoom level?

the Satellite map type doesn't have this issue over the Red Sea, but instead, on very deep zoom it starts showing white tiles.

thanks

QGeoTileFetcherGooglemaps terms of use

Hi,
I was wondering if the QGeoTileFetcherGooglemaps object will be still legal after Google will update its terms of use of Google Maps API on June the 11th 2018. Will it require an apikey to work?

Thanks

Adding mapId and custom Region

Since there is a new custom map Id option in the GCP console, my suggestion is adding a mapId parameter, and will take advantage of this to add one parameter to customize region.

Compatibility with Qt 5.9

Hey,

with Qt 5.9 some things about the QML Map plugin changed and your googlemaps-plugin is not building anymore. I've tried to use the one I've built with Qt 5.8 in Qt 5.9, but that's not working as well. Of course I don't know how much time you have, but as Qt 5.9 was announced as their new Long-Term release, it might be worth an extension of your plugin.

I feel like it would be only minor changes for your plugin, but of course I'm not sure. If you have some time I would appreciate it if you might have a look :) For me personally a 'reduced' functionality without the newly introduced functions (rotation and tilt) would be fine as well 😄

Here you can find the new features of 5.9:
https://wiki.qt.io/New_Features_in_Qt_5.9

Thanks,
Daniel

The terminal log:

daniel@daniel:~/googlemaps$ /home/daniel/Qt/5.9/gcc_64/bin/qmake
Info: creating stash file /home/daniel/googlemaps/.qmake.stash
daniel@daniel:~/googlemaps$ make
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeoserviceproviderplugingooglemaps.o qgeoserviceproviderplugingooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeocodingmanagerenginegooglemaps.o qgeocodingmanagerenginegooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeocodereplygooglemaps.o qgeocodereplygooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeoroutingmanagerenginegooglemaps.o qgeoroutingmanagerenginegooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeoroutereplygooglemaps.o qgeoroutereplygooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qplacemanagerenginegooglemaps.o qplacemanagerenginegooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qplacesearchreplygooglemaps.o qplacesearchreplygooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qplacecategoriesreplygooglemaps.o qplacecategoriesreplygooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeomapreplygooglemaps.o qgeomapreplygooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeotiledmapgooglemaps.o qgeotiledmapgooglemaps.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick/5.9.0/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtGui/5.9.0/QtGui -I/home/daniel/Qt/5.9/gcc_64/include -I/home/daniel/Qt/5.9/gcc_64/include/QtLocation -I/home/daniel/Qt/5.9/gcc_64/include/QtQuick -I/home/daniel/Qt/5.9/gcc_64/include/QtGui -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning/5.9.0/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtQml/5.9.0/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0 -I/home/daniel/Qt/5.9/gcc_64/include/QtCore/5.9.0/QtCore -I/home/daniel/Qt/5.9/gcc_64/include/QtPositioning -I/home/daniel/Qt/5.9/gcc_64/include/QtQml -I/home/daniel/Qt/5.9/gcc_64/include/QtNetwork -I/home/daniel/Qt/5.9/gcc_64/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/daniel/Qt/5.9/gcc_64/mkspecs/linux-g++ -o .obj/qgeotiledmappingmanagerenginegooglemaps.o qgeotiledmappingmanagerenginegooglemaps.cpp
qgeotiledmappingmanagerenginegooglemaps.cpp: In constructor ‘QGeoTiledMappingManagerEngineGooglemaps::QGeoTiledMappingManagerEngineGooglemaps(const QVariantMap&, QGeoServiceProvider::Error*, QString*)’:
qgeotiledmappingmanagerenginegooglemaps.cpp:38:121: error: no matching function for call to ‘QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, QString, QString, bool, bool, int)’
pType(QGeoMapType::StreetMap, tr("Road Map"), tr("Normal map view in daylight mode"), false, false, 1);
^
In file included from /home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeotiledmappingmanagerengine_p.h:56:0,
from qgeotiledmappingmanagerenginegooglemaps.h:4,
from qgeotiledmappingmanagerenginegooglemaps.cpp:2:
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate: QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, const QString&, const QString&, bool, bool, int, QByteArray)
QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate expects 7 arguments, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate: QGeoMapType::QGeoMapType(const QGeoMapType&)
QGeoMapType(const QGeoMapType &other);
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate expects 1 argument, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate: QGeoMapType::QGeoMapType()
QGeoMapType();
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate expects 0 arguments, 6 provided
qgeotiledmappingmanagerenginegooglemaps.cpp:39:131: error: no matching function for call to ‘QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, QString, QString, bool, bool, int)’
MapType::SatelliteMapDay, tr("Satellite"), tr("Satellite map view in daylight mode"), false, false, 2);
^
In file included from /home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeotiledmappingmanagerengine_p.h:56:0,
from qgeotiledmappingmanagerenginegooglemaps.h:4,
from qgeotiledmappingmanagerenginegooglemaps.cpp:2:
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate: QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, const QString&, const QString&, bool, bool, int, QByteArray)
QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate expects 7 arguments, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate: QGeoMapType::QGeoMapType(const QGeoMapType&)
QGeoMapType(const QGeoMapType &other);
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate expects 1 argument, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate: QGeoMapType::QGeoMapType()
QGeoMapType();
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate expects 0 arguments, 6 provided
qgeotiledmappingmanagerenginegooglemaps.cpp:40:122: error: no matching function for call to ‘QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, QString, QString, bool, bool, int)’
Type(QGeoMapType::TerrainMap, tr("Terrain"), tr("Terrain map view in daylight mode"), false, false, 3);
^
In file included from /home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeotiledmappingmanagerengine_p.h:56:0,
from qgeotiledmappingmanagerenginegooglemaps.h:4,
from qgeotiledmappingmanagerenginegooglemaps.cpp:2:
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate: QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, const QString&, const QString&, bool, bool, int, QByteArray)
QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate expects 7 arguments, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate: QGeoMapType::QGeoMapType(const QGeoMapType&)
QGeoMapType(const QGeoMapType &other);
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate expects 1 argument, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate: QGeoMapType::QGeoMapType()
QGeoMapType();
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate expects 0 arguments, 6 provided
qgeotiledmappingmanagerenginegooglemaps.cpp:41:135: error: no matching function for call to ‘QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, QString, QString, bool, bool, int)’
ype::HybridMap, tr("Hybrid"), tr("Satellite map view with streets in daylight mode"), false, false, 4);
^
In file included from /home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeotiledmappingmanagerengine_p.h:56:0,
from qgeotiledmappingmanagerenginegooglemaps.h:4,
from qgeotiledmappingmanagerenginegooglemaps.cpp:2:
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate: QGeoMapType::QGeoMapType(QGeoMapType::MapStyle, const QString&, const QString&, bool, bool, int, QByteArray)
QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:79:5: note: candidate expects 7 arguments, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate: QGeoMapType::QGeoMapType(const QGeoMapType&)
QGeoMapType(const QGeoMapType &other);
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:78:5: note: candidate expects 1 argument, 6 provided
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate: QGeoMapType::QGeoMapType()
QGeoMapType();
^
/home/daniel/Qt/5.9/gcc_64/include/QtLocation/5.9.0/QtLocation/private/qgeomaptype_p.h:77:5: note: candidate expects 0 arguments, 6 provided
Makefile:3604: recipe for target '.obj/qgeotiledmappingmanagerenginegooglemaps.o' failed
make: *** [.obj/qgeotiledmappingmanagerenginegooglemaps.o] Error 1

Tag versions

I am trying to package your plugin for a Linux distribution.
But I can not retrieve the source from master, it would be ideal to have git tags.
Could you please tag at least one version for now?

dont show anything

hello,i have built it to get the map plugins,but i use it dont show the map,whether ssl should support it ?

qgeotilefetchergooglemaps.cpp using http://mt.google.com (in the open)

Can I suggest you change your the URL used in qgeotilefetchergooglemaps.cpp, from "http://mt.google.com/..." to use "https:/mt.google.com/..."? I believe the secure connection works fine. I think everyone will benefit.

We are being flagged my security auditors regarding the plugin accessing in the open (port 80).

Thanks,
David

QString QGeoTileFetcherGooglemaps::_getURL(int type, int x, int y, int zoom)
{
    switch (type) {
    case 0:
    case 1: //Road Map
    {
        QString sec1    = ""; // after &x=...
        QString sec2    = ""; // after &zoom=...
        _getSecGoogleWords(x, y, sec1, sec2);
        return QString("http://mt.google.com/vt/lyrs=m&hl=%1&x=%2%3&y=%4&z=%5&s=%6&scale=%7").arg(_language).arg(x).arg(sec1).arg(y).arg(zoom).arg(sec2).arg(_scale);
    }
    break;
    case 2: //Satallite Map
    {
        QString sec1    = ""; // after &x=...
        QString sec2    = ""; // after &zoom=...
        _getSecGoogleWords(x, y, sec1, sec2);
        return QString("http://mt.google.com/vt/lyrs=s&hl=%1&x=%2%3&y=%4&z=%5&s=%6&scale=%7").arg(_language).arg(x).arg(sec1).arg(y).arg(zoom).arg(sec2).arg(_scale);
    }
    break;
    case 3: //Terrain Map
    {
        QString sec1    = ""; // after &x=...
        QString sec2    = ""; // after &zoom=...
        _getSecGoogleWords(x, y, sec1, sec2);
        return QString("http://mt.google.com/vt/lyrs=p&hl=%1&x=%2%3&y=%4&z=%5&s=%6&scale=%7").arg(_language).arg(x).arg(sec1).arg(y).arg(zoom).arg(sec2).arg(_scale);
    }
    break;
    case 4: //Hybrid Map
    {
        QString sec1    = ""; // after &x=...
        QString sec2    = ""; // after &zoom=...
        _getSecGoogleWords(x, y, sec1, sec2);
        return QString("http://mt.google.com/vt/lyrs=y&hl=%1&x=%2%3&y=%4&z=%5&s=%6&scale=%7").arg(_language).arg(x).arg(sec1).arg(y).arg(zoom).arg(sec2).arg(_scale);
    }
    break;
    }
    return "";
}

Compatibility with Qt 5.12

I am seeing issues using plugin with Qt 5.12.0 (plugin does build) on macOS High Sierra. I was wondering if anyone has tried using plugin with Qt 5.12? Plugin was working fine, same exact code on Qt 5.10.1

I have tested with standard location plugins (i.e. "osm", "esri"), and they work fine. I have not attempted to debug the plugin in detail yet, but I see no obvious errors (no debug logging) when used with QML Map component.

Regards,
David

Unable to assign [undefined] to QDeclarativeGeoMapType*

hello

  • system:ubuntu 20.04

  • QT5.12.3
    Thanks in advance I want to put it in raspberry automotive pi-automotive after tested it on my computer
    I managed to compile the plugin using
    /home/kovax/Qt5.12.3/5.12.3/gcc_64/bin/qmake +CONFIG+=release /home/kovax/raspi/googlemaps
    after
    make
    ls
    and I got result
    libqtgeoservices_googlemaps.so Makefile
    so i install
    sudo make install
    after this
    ls /home/kovax/Qt5.12.3/5.12.3/gcc_64/plugins/geoservices

libqtgeoservices_esri.so        libqtgeoservices_itemsoverlay.so  libqtgeoservices_mapbox.so  libqtgeoservices_osm.so
libqtgeoservices_googlemaps.so  libqtgeoservices_mapboxgl.so      libqtgeoservices_nokia.so

and I got result "so" installed perfectly,but when i put the qml code i get this error
Unable to assign [undefined] to QDeclarativeGeoMapType*
here is my qml code

import QtQuick 2.12
import QtQml 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtPositioning 5.12
import QtLocation 5.12
Item {
    width: 400
    height: 650
    visible: true
 anchors.fill: parent
Plugin {
    id: googlemaps
    name: "google maps Api here"  // "mapboxgl", "esri", ...
    
     PluginParameter {

     }


Map {
    id:mainmap
    anchors.fill: parent
    plugin: googlemaps
    activeMapType: supportedMapTypes[1]
    center: QtPositioning.coordinate(59.91, 10.75) // Oslo
    zoomLevel: 14

    Text {
        id: element
        x: 103
        y: 51
        width: 180
        height: 75
        text: qsTr("Page with my map")
        font.pixelSize: 20
    }
}
}

How to use it?!

I built plugin using QtCreator and Qt5.6.2 on MacOSX.
After build I used terminal to install it using make install.
How to use it? there is not any example qml file.

Qt Documentation

I would like to write my own map plugin to allow a Qt user to access a WMTS service

Can you tell me what documentation you used to create your plugin? I'm struggling to find a guide to writing a Location Map plugin.

Thanks

Image Resolution

Is there any way to download higher resolution tiles when viewing in satellite view?

no supportedMapTypes?

Hello, I'm trying to change the map type and i get
qrc:/main.qml:24: ReferenceError: supportedMapTypes is not defined qrc:/main.qml: 24
when i try to get the maptypes.
This is my qml file.

`import QtQuick 2.0
import QtQuick.Window 2.14
import QtLocation 5.15
import QtPositioning 5.15
import QtQuick.Controls 2.15

Window {
width: Qt.platform.os == "android" ? Screen.width : 512
height: Qt.platform.os == "android" ? Screen.height : 512
visible: true

Plugin {
    id: mapPlugin
    name: "googlemaps"
    PluginParameter{
        name: "activeMapType"
        value: "1"
    }
    PluginParameter{
        name: "googlemaps.maps.highdpi"
        value: "1"
    }
    Component.onCompleted: {
                for( var i_type in supportedMapTypes ) {
                    if( supportedMapTypes[i_type].name.localeCompare( "Custom URL Map" ) === 0 ) {
                        activeMapType = supportedMapTypes[i_type]
                    }
                }
            }
}

Map {
    anchors.fill: parent
    plugin: mapPlugin
    center: QtPositioning.coordinate(45, 5) // Oslo
    zoomLevel: 14
}

// GroupBox{
// title:"map types"
// ComboBox{
// model:mapPlugin.supportedMapTypes
// textRole:"description"
// onCurrentIndexChanged: mapPlugin.activeMapType = mapPlugin.supportedMapTypes[currentIndex]
// }
// }
}
`

Is it implemented?
Thanks!

Need any idea about using gdal images as provider

Hi,
I have found your plugins very handy and since my issue is related to providing a qml location image provider I decided to ask my question here,
I want to load geotiff images on qml map and it seems I must use such providers, can you please give me some hints about developing such plugin and tell me if it is suitable method or not?
thanks very much
Majid

Update tiles

Hello, please help me!
How to update a concrete tile on the map?

Building Into QtLocation

Hi, this is a fantastic addition to the QtLocation services.

I'm just wondering, do you have any tips on how to build your Google Maps service into the QtLocation project? I've got the 5.9.1 sources downloaded, opened up the QtLocation.pro project and added the sources into the geoservices.pro project under a "googlemaps" folder.

As far as I can now tell, I just need to build the QtLocation project.

Are there any additional steps necessary? I'm using MSVC 2015 32-bit.

Thanks!

Imagery Tile in QT

Hello dear
I need know somting in QT about GIS work ,
I programming with Dotspatial GIS Engine in C# but i need to switch in linux and QT framework
so i dont know with of plugin and module in QT can help me to load all layer type
i need to have offline map tile same as google map
i need to have render SHP file or osm
i need to render Raster file
may be in the same time or switch with click on button
i need to have some method to draw Line Polygon and poin with the custom symbol for every feature
i need to have Positioning system
may you help me to select best engine for do it ?
i dont know why i should use ArcGis or QGIS , Marble , QT Location or etc .. which one is better ?

Cache

What is the size of the cache?

fatal error: QtLocation/private/qgeotiledmappingmanagerengine_p.h: No such file or directory

Hi,
When i am trying to build this library I am receiving the following error. Can you please explain what possibly could the reason be?

g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/paras/Libraries/googlemaps -I. -I/home/paras/Libraries -I/home/paras/Libraries/googlemaps -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtLocation -isystem /usr/include/x86_64-linux-gnu/qt5/QtPositioningQuick -isystem /usr/include/x86_64-linux-gnu/qt5/QtQuick -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtPositioning -isystem /usr/include/x86_64-linux-gnu/qt5/QtQml -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qgeoserviceproviderplugingooglemaps.o /home/paras/Libraries/googlemaps/qgeoserviceproviderplugingooglemaps.cpp
In file included from /home/paras/Libraries/googlemaps/qgeoserviceproviderplugingooglemaps.cpp:5:
/home/paras/Libraries/googlemaps/qgeotiledmappingmanagerenginegooglemaps.h:4:10: fatal error: QtLocation/private/qgeotiledmappingmanagerengine_p.h: No such file or directory
4 | #include "QtLocation/private/qgeotiledmappingmanagerengine_p.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:497: .obj/qgeoserviceproviderplugingooglemaps.o] Error 1

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.