Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Google Streetview service can't find panorama for the specified location" #77

Closed
J-Southwell opened this issue Nov 16, 2023 · 12 comments · Fixed by #78
Closed

"Google Streetview service can't find panorama for the specified location" #77

J-Southwell opened this issue Nov 16, 2023 · 12 comments · Fixed by #78

Comments

@J-Southwell
Copy link

J-Southwell commented Nov 16, 2023

MicrosoftTeams-image

The plugin is currently not working as expected & is crashing QGIS 3.28 Firenze.

@Apimente3
Copy link

Please, someone knows about this issue and how to solved, thanks in advance...!!

@danno-x
Copy link

danno-x commented Nov 16, 2023

I have same error on version 3.34.0-Prizren with latest go2streetview.

@yvo2m
Copy link
Contributor

yvo2m commented Nov 17, 2023

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);
}

@andreaaz83
Copy link

seguo

@albertograva
Copy link

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

@J-Southwell
Copy link
Author

J-Southwell commented Nov 17, 2023

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

@yvo2m
Copy link
Contributor

yvo2m commented Nov 17, 2023

@J-Southwell the issue should not be closed until fix is pushed in depository, please reopen.

@J-Southwell J-Southwell reopened this Nov 17, 2023
@J-Southwell
Copy link
Author

@yvo2m Sorry! Re-opened now. Thank you again.

@Welshmilla
Copy link

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

@enricofer
Copy link
Owner

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

@glorenzetto
Copy link

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

@enricofer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants