Open source map plug in for QML
-
@SGaist so i build it and install it insite mingw32:
qmake googlemaps.pro
mingw32-make
mingw32-make installAnd when i ran the example the plugin was there but the map didnt came up and gave me this erro message:
QGeoTileRequestManager: Failed to fetch tile (543,298,10) 5 times, giving up. Last error message was: 'Set googlemaps.maps.apikey with google maps application key, supporting static maps'Any idea?
wrote on 25 May 2016, 11:05 last edited by@michaelL well, have you added PluginParameter {} to your google Plugin {} instance with googlemaps.maps.apikey ?
-
wrote on 25 May 2016, 11:21 last edited by
@vladstelmahovsky no where do i set this parameter? On the plugin or on the mapviewer example?
-
@vladstelmahovsky no where do i set this parameter? On the plugin or on the mapviewer example?
wrote on 25 May 2016, 11:25 last edited by@michaelL in the mapviewer. something like this:
Plugin {
id: gmapsPlugin
name: "googlemaps"
locales: "en_EN"
PluginParameter {
name: "googlemaps.useragent"
value: "<your user agent>"
}
PluginParameter {
name: "googlemaps.route.apikey"
value: "<put your api key here>"
}
PluginParameter {
name: "googlemaps.maps.apikey"
value: "<put your api key here>"
}
PluginParameter {
name: "googlemaps.maps.tilesize"
value: "256"
}
} -
wrote on 25 May 2016, 11:27 last edited by
@vladstelmahovsky On the mapviewer example i tryied on the QML File:
Plugin{
id: myPlugin
name: "googlemaps"
PluginParameter { name: "googlemaps.maps.apikey "; value: "https://maps.googleapis.com/maps/api/js?key=.............; }
}Where "......" my googlemap key is.
But it didnt worked.
-
@vladstelmahovsky On the mapviewer example i tryied on the QML File:
Plugin{
id: myPlugin
name: "googlemaps"
PluginParameter { name: "googlemaps.maps.apikey "; value: "https://maps.googleapis.com/maps/api/js?key=.............; }
}Where "......" my googlemap key is.
But it didnt worked.
wrote on 25 May 2016, 11:29 last edited by@michaelL value shold be ONLY api key. not full url. just api key
-
wrote on 25 May 2016, 12:05 last edited by
@vladstelmahovsky I tryied the api key only but i got the same error.
Did you do anything else? -
@vladstelmahovsky I tryied the api key only but i got the same error.
Did you do anything else?wrote on 25 May 2016, 12:47 last edited by@michaelL no, I didnot, but the error above indicated that the key was not set. Since you have soreces, you can add debug messages to see where the problem is
-
wrote on 30 May 2016, 08:05 last edited by
@vladstelmahovsky the Plugin parameter is not working on the mapviewer.qml and i added this line in main.c and it works:
parameters.insert("googlemaps.maps.apikey", "<your API Key>"); -
@vladstelmahovsky the Plugin parameter is not working on the mapviewer.qml and i added this line in main.c and it works:
parameters.insert("googlemaps.maps.apikey", "<your API Key>");wrote on 30 May 2016, 08:36 last edited by@michaelL where you have created your QtLocation plugin instance? c++ or QML?
-
wrote on 30 May 2016, 10:56 last edited by
@vladstelmahovsky i got it to work with the placemap example under QML:
Plugin {
id: myPlugin
name: "googlemaps"
//specify plugin parameters if necessary
//PluginParameter {...}
//PluginParameter {...}
//...
PluginParameter { name:"googlemaps.maps.apikey"; value: "<your api key>"}
}Map { id: map anchors.fill: parent plugin: myPlugin; zoomLevel: 13 activeMapType: supportedMapTypes[1] }
Do you know how can i add the openseamap marks as an overlay on your plugin?
Here is the wiki site http://wiki.openseamap.org/wiki/OpenSeaMap-dev:Server
and here is the tile server for sea marks:
Sea Marks alpha.openseamap.org http://t1.openseamap.org/seamark/{z}/{x}/{y}.pngAny idea?
-
@vladstelmahovsky i got it to work with the placemap example under QML:
Plugin {
id: myPlugin
name: "googlemaps"
//specify plugin parameters if necessary
//PluginParameter {...}
//PluginParameter {...}
//...
PluginParameter { name:"googlemaps.maps.apikey"; value: "<your api key>"}
}Map { id: map anchors.fill: parent plugin: myPlugin; zoomLevel: 13 activeMapType: supportedMapTypes[1] }
Do you know how can i add the openseamap marks as an overlay on your plugin?
Here is the wiki site http://wiki.openseamap.org/wiki/OpenSeaMap-dev:Server
and here is the tile server for sea marks:
Sea Marks alpha.openseamap.org http://t1.openseamap.org/seamark/{z}/{x}/{y}.pngAny idea?
wrote on 30 May 2016, 11:04 last edited by@michaelL I suppose, you have or to implement your own plugin for seamaps or try to use OSM plugin providing seamaps as a base
-
wrote on 25 Jul 2016, 19:27 last edited by
@vladstelmahovsky do you have any idea on how to set your googlemap plug in with iOS/Android?
I followed this steps but i got an error by installing the Podfile:
https://developers.google.com/maps/documentation/ios-sdk/startDid you have any success on a mobile application?
-
@vladstelmahovsky do you have any idea on how to set your googlemap plug in with iOS/Android?
I followed this steps but i got an error by installing the Podfile:
https://developers.google.com/maps/documentation/ios-sdk/startDid you have any success on a mobile application?
wrote on 26 Jul 2016, 08:20 last edited by@michaelL no, I didnot test my plugin on Android/iOS
-
wrote on 4 Dec 2016, 23:07 last edited by
can you plz tell for mapviewer example which variant of google map api key shud be generated,i checkdd out but there are quite a few no of types got confused and while trying to install the plugin as mentioned, mingw32-make wont work for me says 'mingw32-make is not recognized as an internal or external command,operable program or batch file' (i am using qt 5.7's cmd promt)
-
wrote on 18 Mar 2017, 07:26 last edited by
@vladstelmahovsky and other members - could you please help to understand my problem. I have downloaded google map plugin from https://github.com/vladest page. Plugin is perfect but after period of time it gives some problems in my application. When i don't have internet - it doesn't show the tiles which already downloaded but it shows some tiles anyway - works but not completly. I thought that cache is full but in cache /Qtlocation/googlemaps I see that it adds tiles as the size of the folder increases but it doesn't show on the map - just white screen ? Do you know how can I solve the problem @vladstelmahovsky . ?
-
@vladstelmahovsky and other members - could you please help to understand my problem. I have downloaded google map plugin from https://github.com/vladest page. Plugin is perfect but after period of time it gives some problems in my application. When i don't have internet - it doesn't show the tiles which already downloaded but it shows some tiles anyway - works but not completly. I thought that cache is full but in cache /Qtlocation/googlemaps I see that it adds tiles as the size of the folder increases but it doesn't show on the map - just white screen ? Do you know how can I solve the problem @vladstelmahovsky . ?
wrote on 18 Mar 2017, 08:18 last edited by@Andranik this behavior on cache strategy. but in case you 100% sure that needed tile is in cache, but plugin shows nothing, its rather bug in plugin or QtLocation cache. Needs to investigate down from plugin tile requestor to QtLocation's cache implementation
Probably you need to change Qt version, 5.8 or 5.9 or even dev branch to check if things gets changed since QtLocation constantly envolves -
@Andranik this behavior on cache strategy. but in case you 100% sure that needed tile is in cache, but plugin shows nothing, its rather bug in plugin or QtLocation cache. Needs to investigate down from plugin tile requestor to QtLocation's cache implementation
Probably you need to change Qt version, 5.8 or 5.9 or even dev branch to check if things gets changed since QtLocation constantly envolveswrote on 18 Mar 2017, 12:58 last edited by@vladstelmahovsky - Thanks, I will try your suggestions !
-
wrote on 19 Mar 2017, 09:29 last edited by
@vladstelmahovsky - I have changed Qt 5.7 to 5.8 . Map works better on this version. I was testing - ROLLING, MOVING - right , left, up, down - around it collects 45 mb on my cache ( .cache/googlemaps). Then it shows just few tiles on the center position and other downloaded places it shows white screen but tiles are in cache. when I clean the cache - then it works again ? Does anybody knows how can be described this behavior - is this a bug of QT ? or I am doing something wrong.
-
wrote on 21 Mar 2017, 06:09 last edited by farshad bayat
hi every body
this plugin is very useful special tanks for @vladstelmahovsky .
i have a question how can i increase text quality on the map?in original page of google maps, text is new layer and rendering text layer at zoom changing therefor display sharper and clear text on the map.is there any solution or idea...?tanks
-
hi every body
this plugin is very useful special tanks for @vladstelmahovsky .
i have a question how can i increase text quality on the map?in original page of google maps, text is new layer and rendering text layer at zoom changing therefor display sharper and clear text on the map.is there any solution or idea...?tanks
wrote on 22 Mar 2017, 18:01 last edited by@farshad-bayat Hi farshad. are you able to use the plugin on offline mode - without internet. When i go offline , I am not able to see the tiles as the plugin doesn't load downloaded tiles from the cache. Could you please share with me your experience . Thanks a lot :)