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.2k 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.
  • KartK Offline
    KartK Offline
    Kart
    wrote on 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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      KartK 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        KartK Offline
        KartK Offline
        Kart
        wrote on 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 ?

        raven-worxR 1 Reply Last reply
        0
        • KartK Kart

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

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            • KartK Kart

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

              KartK 2 Replies Last reply
              1
              • KartK Offline
                KartK Offline
                Kart
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • K Konstantin Tokarev

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

                  KartK Offline
                  KartK Offline
                  Kart
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • K Konstantin Tokarev

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

                    KartK Offline
                    KartK Offline
                    Kart
                    wrote on 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

                    • Login

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