Closed J-Southwell closed 1 year ago
Please, someone knows about this issue and how to solved, thanks in advance...!!
I have same error on version 3.34.0-Prizren with latest go2streetview.
Open the g2sv.html file (for windows in AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\go2streetview\res )
modify the line 63 : force api version to v3.53 (instead of just v3)
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.googleapis.com/maps/api/js?v=3.53' +
'&key=' + APIkey_param +'&callback=initialize';
document.body.appendChild(script);
}
seguo
I confirm the problem
Versione di QGIS | 3.34.0-Prizren | Revisione codice QGIS | ffbdd678812 Versione Qt | 5.15.3 Versione Python | 3.10.12 Versione GDAL/OGR | 3.4.1 Versione PROJ | 8.2.1 Versione database del Registro EPSG | v10.041 (2021-12-03) Versione GEOS | 3.10.2-CAPI-1.16.0 Versione SQLite | 3.37.2 Versione PDAL | 2.3.0 Versione client PostgreSQL | 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1) Versione SpatiaLite | 5.0.1 Versione QWT | 6.1.4 Versione QScintilla2 | 2.11.6 Versione SO | Ubuntu 22.04.3 LTS Plugins Python attivi Mergin | 2023.4.1 shapetools | 3.4.14 slyr_community | 5.0.0 IRDATExplorer | 3.0.2 QuickOSM | 2.2.3 QuickMultiAttributeEdit3 | version 3.0.3 qmapshaper | 0.8.2 processing_saga_nextgen | 1.0.0 go2streetview | 8.6 grassprovider | 2.12.99 db_manager | 0.1.20 processing | 2.12.99
Open the g2sv.html file (for windows in AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\go2streetview\res )
modify the line 63 : force api version to v3.53 (instead of just v3)
function loadScript() { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?v=3.53' + '&key=' + APIkey_param +'&callback=initialize'; document.body.appendChild(script); }
This has worked for me. Thank you very much to @yvo2m
@J-Southwell the issue should not be closed until fix is pushed in depository, please reopen.
@yvo2m Sorry! Re-opened now. Thank you again.
That works, but it looks like version 3.53 might be removed after February 2024, so a more permanent fix will be needed
https://developers.google.com/maps/documentation/javascript/versions
I all, thanks for all your contributions and submissions. I will soon publish a patch with the last running version of google maps api, but I fear that this will be the last. Unfortunately the QGIS supported QtWebkit is obsolete https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/ and we will need to wait for Qt6 - QtWebEngine support in the nextcoming QGIS4
https://stackoverflow.com/questions/76989163/loading-google-maps-a-weird-error-uncaught-syntaxerror-unexpected-token-in Open the g2sv.html file (for windows in AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\go2streetview\res ) modify the line 63 : force api version to v3.53 (instead of just v3)
function loadScript() { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?v=3.53' + '&key=' + APIkey_param +'&callback=initialize'; document.body.appendChild(script); }
This has worked for me. Thank you very much to @yvo2m
this work for me too, thx
I submitted the new v8.7 release to plugins.qgis.org and I'm waiting for approval. In the meanwhile you can download and load as zip: https://github.com/enricofer/go2streetview/archive/refs/tags/8.7.zip
The plugin is currently not working as expected & is crashing QGIS 3.28 Firenze.