Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Open source map plug in for QML
QtWS25 Last Chance

Open source map plug in for QML

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
34 Posts 7 Posters 15.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • michaelLM Offline
    michaelLM Offline
    michaelL
    wrote on last edited by
    #16

    @vladstelmahovsky no where do i set this parameter? On the plugin or on the mapviewer example?

    V 1 Reply Last reply
    0
    • michaelLM michaelL

      @vladstelmahovsky no where do i set this parameter? On the plugin or on the mapviewer example?

      V Offline
      V Offline
      vladstelmahovsky
      wrote on last edited by
      #17

      @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"
      }
      }

      1 Reply Last reply
      1
      • michaelLM Offline
        michaelLM Offline
        michaelL
        wrote on last edited by
        #18

        @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.

        V 1 Reply Last reply
        0
        • michaelLM michaelL

          @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.

          V Offline
          V Offline
          vladstelmahovsky
          wrote on last edited by
          #19

          @michaelL value shold be ONLY api key. not full url. just api key

          1 Reply Last reply
          0
          • michaelLM Offline
            michaelLM Offline
            michaelL
            wrote on last edited by
            #20

            @vladstelmahovsky I tryied the api key only but i got the same error.
            Did you do anything else?

            V 1 Reply Last reply
            0
            • michaelLM michaelL

              @vladstelmahovsky I tryied the api key only but i got the same error.
              Did you do anything else?

              V Offline
              V Offline
              vladstelmahovsky
              wrote on last edited by
              #21

              @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

              1 Reply Last reply
              0
              • michaelLM Offline
                michaelLM Offline
                michaelL
                wrote on last edited by
                #22

                @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>");

                V 1 Reply Last reply
                0
                • michaelLM michaelL

                  @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>");

                  V Offline
                  V Offline
                  vladstelmahovsky
                  wrote on last edited by
                  #23

                  @michaelL where you have created your QtLocation plugin instance? c++ or QML?

                  1 Reply Last reply
                  0
                  • michaelLM Offline
                    michaelLM Offline
                    michaelL
                    wrote on last edited by
                    #24

                    @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}.png

                    Any idea?

                    V 1 Reply Last reply
                    0
                    • michaelLM michaelL

                      @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}.png

                      Any idea?

                      V Offline
                      V Offline
                      vladstelmahovsky
                      wrote on last edited by
                      #25

                      @michaelL I suppose, you have or to implement your own plugin for seamaps or try to use OSM plugin providing seamaps as a base

                      1 Reply Last reply
                      0
                      • michaelLM Offline
                        michaelLM Offline
                        michaelL
                        wrote on last edited by
                        #26

                        @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/start

                        Did you have any success on a mobile application?

                        V 1 Reply Last reply
                        0
                        • michaelLM michaelL

                          @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/start

                          Did you have any success on a mobile application?

                          V Offline
                          V Offline
                          vladstelmahovsky
                          wrote on last edited by
                          #27

                          @michaelL no, I didnot test my plugin on Android/iOS

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            h20delirious
                            wrote on last edited by
                            #28

                            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)

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              Andranik
                              wrote on last edited by
                              #29

                              @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 . ?

                              V 1 Reply Last reply
                              0
                              • A Andranik

                                @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 . ?

                                V Offline
                                V Offline
                                vladstelmahovsky
                                wrote on last edited by
                                #30

                                @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

                                A 1 Reply Last reply
                                0
                                • V vladstelmahovsky

                                  @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

                                  A Offline
                                  A Offline
                                  Andranik
                                  wrote on last edited by
                                  #31

                                  @vladstelmahovsky - Thanks, I will try your suggestions !

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    Andranik
                                    wrote on last edited by
                                    #32

                                    @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.

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      farshad bayat
                                      wrote on last edited by farshad bayat
                                      #33

                                      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

                                      A 1 Reply Last reply
                                      0
                                      • F 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

                                        A Offline
                                        A Offline
                                        Andranik
                                        wrote on last edited by
                                        #34

                                        @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 :)

                                        1 Reply Last reply
                                        0

                                        • Login

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Search
                                        • Get Qt Extensions
                                        • Unsolved