Select to view content in your preferred language

Google Maps Not Display

2089
4
07-15-2011 05:57 AM
ShaningYu
Honored Contributor
I tried to use JS API for Google Maps Ext.  I loaded the sample code: Google May layers for ArcGIS JS API from http://www.arcgis.com/home/item.html?id=a84d64b0d1404366a02da714ca59d61f.  Then I open its htm file.  I can only view the ESRI Topo, but all of the Google Maps layers are not displayed.   I suspect that the problem could be related to this piece of code:
        </script>
        <script type="text/javascript" src="../src/gmapslayer_compiled.js">
        </script>
In the folder, I structure the files like that:
       gmapslayer.htm
       src (folder, containing 2 files below)
           gmapslayer_compiled.js
           gmapslayer.js

Then, I revised the code like that:
<script type="text/javascript" src="http://gmaps-utility-gis.googlecode.com/svn/tags/gmapslayer/1.0/src/gmapslayer_compiled.js" >
It means that I call the JS through internet.  The result is still the same.
Does anyone know how to do fix it?  Thanks.
0 Kudos
4 Replies
ThaoLe
by
Regular Contributor
There's a completely separate API to use for Google Map:
http://help.arcgis.com/en/webapi/javascript/gmaps/help/google_samplestart.htm

Have you taken a look at this?
0 Kudos
ShaningYu
Honored Contributor
TSyle:
Thanks for your response.  Actually, I used the API as well the sample code from the website.
I used the source code completely.  I am not sure where it relates to the  key since I used the one in the source code.  I wish my Q can be answered.  Thanks.
Shaning
0 Kudos
StephenLead
Honored Contributor
Shaning,

See the documentation in the About section of that post.

However, if apps are to deployed in Intranet, a Google Maps Premium license is still needed, which is separate from API TOU.


You may need to post your sample to a public-facing web server before it will work.
0 Kudos
ShaningYu
Honored Contributor
stevel:
How can I identify whether a script needs the Premier License to run?  Thanks.
Shaning
0 Kudos