PyQt4 QWebView cant load google maps markers

Xristos Xristoou saxri89 at gmail.com
Thu Mar 22 16:38:14 EDT 2018



I want to create a simple python app using pyqt,QWebView and google maps with markers.

The problem is that,the markers does not load inside the QWebView, as you can see they load just fine in the browser. 


here the simple code :

 import sys
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from PyQt4.QtWebKit import *
 import os
 app = QApplication(sys.argv)
 web_view= dialog.findChild(QWebView,"webView")
 google='https://www.google.gr/maps/place/Granite+Mountain+Hotshots+Memorial+State+Park/@34.1749572,-112.850308,12.78z/data=!4m13!1m7!3m6!1s0x872b08ebcb4c186b:0x423927b17fc1cd71!2zzpHPgc65zrbPjM69zrEsIM6Xzr3Pic68zq3Ovc61z4IgzqDOv867zrnPhM61zq_Otc-C!3b1!8m2!3d34.0489281!4d-111.0937311!3m4!1s0x80d330577faee965:0x66d75aef24890ae1!8m2!3d34.2032843!4d-112.7746582?hl=el'
 web_view2.load(QUrl(google))
 web_view2.show()
 sys.exit(app.exec_())


error message :
right click and select Inspect, then go to console and observe the messages console I take this error :


TypeError: 'undefined' is not a function (evaluating 'this.D.bind(this)') marker.js:58 




Any idea how to can fix that ?
I need to add more settings to QWebView to work google maps with markers ?



More information about the Python-list mailing list