Google Street View Not Working

5677
4
08-26-2016 08:36 AM
ShaningYu
Frequent Contributor

Several months ago, the Google Street View worked well in my application in html format. 

Then, I created an aspx page and loaded all of the HTML code into it.  When I click the Google Street Map again, I received warning message: "Oops! Something went wrong.  This page did not load Google Maps correctly.  See the JavaScript code for technical details."  Through Chrome F12, the error message is Google Maps API error:

MissingKeyMapError.  Then, I checked  https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

and followed the instruction (https://developers.google.com/maps/documentation/javascript/get-api-key ) and get the key.  I copied pasted the code:

<script async defer src="https://maps.googleapis.com/maps/api/js?key=myKeyHere&callback=initMap"
  type="text/javascript">

But I still get runtime error. Did I do something wrong?   Thanks if you can help..

Tags (1)
0 Kudos
4 Replies
ShaningYu
Frequent Contributor

Re-worked on the key setting and got the problem solved.  Thanks for your review.

0 Kudos
ShaningYu
Frequent Contributor

I have to re-activate my thread again since it works on one of my deployed IIS service but not on another one.  In both of them the domains are the same.  Should I do some settings on the IIS?  Thanks.

0 Kudos
XanderBakker
Esri Esteemed Contributor

Please have a look at an important note placed at: Google Street View Widget 2.1 - 08/29/16 .  As it appears, the Widget is not conform to the Google Maps API Terms of Service!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Shaning,

   You need to stop using Google StreetView in your application. There is no way to be compliant with Google TOS unlees you are only using the Google Maps API and a google basemap. You can NOT display a StreetView image with a map (i.e. esri map) other than a Google map.

Read up on Google TOS 10.4.d and 10.4.e

I recently took down my Google StreetView widget do to this TOS Violation.