Select to view content in your preferred language

google street view for flex api 3.0

837
3
03-25-2013 06:16 AM
ZhujingXia
Frequent Contributor
Hi,

I am using the google street view widget of flex api 3.0 application. It worked fine on some of the machine in my office, but a lot of people could not get street view. They got the erro message said that "Google is undefined is here", please see my screen shot.

Do you know why is that, is that some network rule need to set up or remove?

Thanks
Zhujing
Tags (2)
0 Kudos
3 Replies
GISDev1
Deactivated User
Hi,

I am using the google street view widget of flex api 3.0 application. It worked fine on some of the machine in my office, but a lot of people could not get street view. They got the erro message said that "Google is undefined is here", please see my screen shot.

Do you know why is that, is that some network rule need to set up or remove?

Thanks
Zhujing


Which widget is that? Please provide a link to the gallery for any custom widgets which are being asked about so everyone is on the same page.
0 Kudos
ZhujingXia
Frequent Contributor
0 Kudos
JeffMarion
Emerging Contributor
Hello,

I am also getting the same error in the Flex 3.0 API.  The streetview 3.0 widget was working just fine when using the machine name in all of my config files of the application.  But recently we went live to a real URL, and now after replacing the machine name with URL in all of the config files, I am getting the same error:  "ReferenceError: google is not defined Is here"

Any help would be greatly appreciated.

Thanks!

Update: 

I figured this out.  When we deployed our application to its final URL, we started using SSL. What worked for me was simply changing the following line in index.html

Change from http:// to https://

<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
0 Kudos