Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebkit 4.8 : Google map : Polyline not visible
Forum Updated to NodeBB v4.3 + New Features

QtWebkit 4.8 : Google map : Polyline not visible

Scheduled Pinned Locked Moved Solved Qt WebKit
9 Posts 4 Posters 3.3k Views 4 Watching
  • 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.
  • K Offline
    K Offline
    Kart
    wrote on 21 Aug 2017, 05:41 last edited by Kart
    #1

    I am using Qt 4.8 and trying to view a html page with javascript. I am using google maps to use the direction service.
    OS : Ubuntu 12.04

    var directionsService = new google.maps.DirectionsService();
    var directionsDisplay = new google.maps.DirectionsRenderer();
    
    function route(origin,dest){var request = {origin: origin, destination: dest,travelMode: google.maps.DirectionsTravelMode.DRIVING};
     directionsService.route(request, function(response, status) { 
    if (status == google.maps.DirectionsStatus.OK){ directionsDisplay.setDirections(response); 
    }
    });			
    		}
    

    I am relatively new to javascript and html, so kindly bear with my mistakes.
    While viewing this in Chrome and Firefox, the polyline is visible. But in webkit the polyline is not coming up.

    It tried a simple html code to draw polyline. Same thing happened. It works in firefox and chrome, but not in webkit.

    Can someone please help me with this issue ?

    K 1 Reply Last reply 21 Aug 2017, 09:31
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Aug 2017, 06:41 last edited by
      #2

      Hi,

      Consider updating to a more recent version of Qt and if possible also of Ubuntu.

      Both Ubuntu 12.04 and Qt 4.8 have reached EOL.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 21 Aug 2017, 06:56
      0
      • S SGaist
        21 Aug 2017, 06:41

        Hi,

        Consider updating to a more recent version of Qt and if possible also of Ubuntu.

        Both Ubuntu 12.04 and Qt 4.8 have reached EOL.

        K Offline
        K Offline
        Kart
        wrote on 21 Aug 2017, 06:56 last edited by
        #3

        @SGaist I am already having a project running on Qt 4.8 and i want to integrate this with that project. Does polyline use any particular feature of webkit ?

        R 1 Reply Last reply 21 Aug 2017, 07:53
        0
        • K Kart
          21 Aug 2017, 06:56

          @SGaist I am already having a project running on Qt 4.8 and i want to integrate this with that project. Does polyline use any particular feature of webkit ?

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 21 Aug 2017, 07:53 last edited by
          #4

          @name_qt said in QtWebkit 4.8 : Google map : Polyline not visible:

          Does polyline use any particular feature of webkit ?

          Highly possible. QtWebkit has been upgraded in Qt5. Also Google maps only runs in "legacy" mode under this old webkit version as in Qt4.
          But also note, that QtWebkit isn't part of release packages since Qt 5.6 and has been replaced by QtWebEngine (Chromium backend). You will have to build QtWebkit from source yourself for Qt 5.6+

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 21 Aug 2017, 07:57 last edited by
            #5

            To add to @raven-worx, there's @Konstantin-Tokarev webkit reboot project for recent versions of Qt.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • K Kart
              21 Aug 2017, 05:41

              I am using Qt 4.8 and trying to view a html page with javascript. I am using google maps to use the direction service.
              OS : Ubuntu 12.04

              var directionsService = new google.maps.DirectionsService();
              var directionsDisplay = new google.maps.DirectionsRenderer();
              
              function route(origin,dest){var request = {origin: origin, destination: dest,travelMode: google.maps.DirectionsTravelMode.DRIVING};
               directionsService.route(request, function(response, status) { 
              if (status == google.maps.DirectionsStatus.OK){ directionsDisplay.setDirections(response); 
              }
              });			
              		}
              

              I am relatively new to javascript and html, so kindly bear with my mistakes.
              While viewing this in Chrome and Firefox, the polyline is visible. But in webkit the polyline is not coming up.

              It tried a simple html code to draw polyline. Same thing happened. It works in firefox and chrome, but not in webkit.

              Can someone please help me with this issue ?

              K Offline
              K Offline
              Konstantin Tokarev
              wrote on 21 Aug 2017, 09:31 last edited by
              #6

              @name_qt If for some reason you absolutely must stay with Qt 4, use QtWebKit 2.3.x instead of built-in version

              K 2 Replies Last reply 21 Aug 2017, 12:31
              1
              • K Offline
                K Offline
                Kart
                wrote on 21 Aug 2017, 12:22 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • K Konstantin Tokarev
                  21 Aug 2017, 09:31

                  @name_qt If for some reason you absolutely must stay with Qt 4, use QtWebKit 2.3.x instead of built-in version

                  K Offline
                  K Offline
                  Kart
                  wrote on 21 Aug 2017, 12:31 last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • K Konstantin Tokarev
                    21 Aug 2017, 09:31

                    @name_qt If for some reason you absolutely must stay with Qt 4, use QtWebKit 2.3.x instead of built-in version

                    K Offline
                    K Offline
                    Kart
                    wrote on 22 Aug 2017, 09:49 last edited by
                    #9

                    @Konstantin-Tokarev I was using QtWebkit 2.2.0. Using Qt 2.3.4 solved the issue.

                    1 Reply Last reply
                    0

                    1/9

                    21 Aug 2017, 05:41

                    • Login

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