I'm trying to interact with a google map using python. I've built an application in PyQT with a QWebView. The QWebView loads a local html page as shown here:
The html page is as follows:
How can I call
addMarker from Python?
I have tried calling addMarker from the HTML (added the call to the
I also tried calling
frame.documentElement() object and that didn't work either.
The error was that I needed to wait for the page to load. I added a button that was connected to the
The only difference I can see between the two things you tried is that alert() is part of the standard functions. Maybe you need a document.addmarker() instead of just addmarker() ?
©2020 All rights reserved.