can Google Sites Embed Google Earth API/Plugin?

485 views
Skip to first unread message

JeffJensen

unread,
Feb 6, 2009, 4:50:38 PM2/6/09
to KML Developer Support - Google Earth Browser Plugin
Hello Earth API,

Is the Earth API compatible with sites.google.com? I thought
sites.google.com doesn't allow javascript so one cannot embed google
earth api into sites. Is this true? I also thought Mano said Earth API
works with Google Pages, but it appears this is being replaced by
Sites.

Background - following links discuss embedding Google Earth but unknow
if it works with Google Sites

Roman Nurik released a embedded KML gadget -
http://www.gmodules.com/ig/creator?synd=open&url=http://hosting.gmodules.com/ig/gadgets/file/114026893455619160549/embedkmlgadget.xml

Embed Google KML/KMZ on your webpage or blog
http://mapperz.blogspot.com/2009/01/embed-kmlkmz-on-your-webpage-or-blog.html
sites.google.com

Thanks for the help,

Jeff Jensen

barryhunter [KML Guru]

unread,
Feb 6, 2009, 5:55:58 PM2/6/09
to KML Developer Support - Google Earth Browser Plugin
Gadgets work with sites.

See this thread
http://groups.google.com/group/Google-Maps-How-Do-I/browse_thread/thread/78347f57cc4596f5/55986fc26ca067e3?lnk=gst&q=sites+gadget#55986fc26ca067e3

On Feb 6, 9:50 pm, JeffJensen wrote:
> Hello Earth API,
>
> Is the Earth API compatible with sites.google.com? I thought
> sites.google.com doesn't allow javascript so one cannot embed google
> earth api into sites. Is this true? I also thought Mano said Earth API
> works with Google Pages, but it appears this is being replaced by
> Sites.
>
> Background - following links discuss embedding Google Earth but unknow
> if it works with Google Sites
>
> Roman Nurik released a embedded KML gadget -http://www.gmodules.com/ig/creator?synd=open&url=http://hosting.gmodu...
>
> Embed Google KML/KMZ on your webpage or bloghttp://mapperz.blogspot.com/2009/01/embed-kmlkmz-on-your-webpage-or-b...

Roman N

unread,
Feb 6, 2009, 7:59:10 PM2/6/09
to KML Developer Support - Google Earth Browser Plugin
The KML embedding gadget should work with Sites. I just tried it a few
days ago, seemed to be okay.

On Feb 6, 2:55 pm, barryhunter [KML Guru] wrote:
> Gadgets work with sites.
>
> See this threadhttp://groups.google.com/group/Google-Maps-How-Do-I/browse_thread/thr...

JeffJensen

unread,
Feb 17, 2009, 11:50:52 AM2/17/09
to KML Developer Support - Google Earth Plug-in
Hello Roman and Barry,

Thanks for the reply. I'm still having troubles getting Earth API to
work with Google Sites.

According to these two posts from Google Sites Group, the Sites
Administrators scrub all JavaScript, CSS and some HTML for security
reasons:

1.http://groups.google.com/group/sites-help-somethingisbroken/
browse_thread/thread/7c24fc6cd2353a71/1463c3aa9a66539e?lnk=gst&q=html
+javascript#1463c3aa9a66539e


2.
http://groups.google.com/group/sites-help-somethingisbroken/browse_thread/thread/9d38b3cba3585160/5354ecbe54d81fe4?lnk=gst&q=javascript#5354ecbe54d81fe4

So, if you have Earth API working on Sites, do you mind sharing more
details on how you got it to work?

Thanks again for your assistance,

Jeff Jensen
> > > Jeff Jensen- Hide quoted text -
>
> - Show quoted text -

barryhunter [KML Guru]

unread,
Feb 17, 2009, 1:07:14 PM2/17/09
to KML Developer Support - Google Earth Plug-in
Its true sites doesnt allow embedding arbitary code in a site, but it
does allow carefully controled code via a Google Gadget

I was saying you could create a gadget that uses uses the Earth Plugin/
API and embed that. In the post I refereced is how to create a gadget
for embedding a 2D map from My Maps - purely to show you can use
gadgets.

But Roman is saying that his embeding KML gadget (referenced in the
mapperz blog post) does work on sites.

Goto sites, and edit your page, then 'Insert' menu and select
'More...' in the Gadgets section, on the popup, click 'Add by URL' and
paste in the XML URL of Romans gadget.

http://hosting.gmodules.com/ig/gadgets/file/114026893455619160549/embedkmlgadget.xml


On Feb 17, 4:50 pm, JeffJensen wrote:
> Hello Roman and Barry,
>
> Thanks for the reply. I'm still having troubles getting Earth API to
> work with Google Sites.
>
> According to these two posts from Google Sites Group, the Sites
> Administrators scrub all JavaScript, CSS and some HTML for security
> reasons:
>
> 1.http://groups.google.com/group/sites-help-somethingisbroken/
> browse_thread/thread/7c24fc6cd2353a71/1463c3aa9a66539e?lnk=gst&q=html
> +javascript#1463c3aa9a66539e
>
> 2.http://groups.google.com/group/sites-help-somethingisbroken/browse_th...

JeffJensen

unread,
Feb 25, 2009, 5:54:57 PM2/25/09
to KML Developer Support - Google Earth Plug-in
Hello Barry,

Thanks for the reply. I was able to follow your very helpful
instructions and get the Google Earth Gadget to install in Google
Sites.

When adding the gadget I have the option to add my own kml/kmz file to
display in Earth Gadget. How do I upload kml/kmz files into Google
Sites?

Thanks,

Jeff Jensen


On Feb 17, 10:07 am, barryhunter [KML Guru] wrote:
> Its true sites doesnt allow embedding arbitary code in a site, but it
> does allow carefully controled code via a Google Gadget
>
> I was saying you could create a gadget that uses uses the Earth Plugin/
> API and embed that. In the post I refereced is how to create a gadget
> for embedding a 2D map from My Maps - purely to show you can use
> gadgets.
>
> But Roman is saying that his embeding KML gadget (referenced in the
> mapperz blog post) does work on sites.
>
> Goto sites, and edit your page, then  'Insert' menu and select
> 'More...' in the Gadgets section, on the popup, click 'Add by URL' and
> paste in the XML URL of Romans gadget.
>
> http://hosting.gmodules.com/ig/gadgets/file/114026893455619160549/emb...
> > > - Show quoted text -- Hide quoted text -

Barry Hunter

unread,
Feb 26, 2009, 5:59:26 AM2/26/09
to KML Developer Support - Google Earth Plug-in


On Feb 25, 10:54 pm, JeffJensen wrote:
> Hello Barry,
>
> Thanks for the reply. I was able to follow your very helpful
> instructions and get the Google Earth Gadget to install in Google
> Sites.
>
> When adding the gadget I have the option to add my own kml/kmz file to
> display in Earth Gadget. How do I upload kml/kmz files into Google
> Sites?

Just use the 'attachment' feature. You can attach KML files to a page,
and then use the url in the gadget.

JeffJensen

unread,
Mar 17, 2009, 3:32:16 PM3/17/09
to KML Developer Support - Google Earth Plug-in
Hello Barry and Roman,

Thank you for your help on getting Roman's Embed KML Gadget (http://
earth.google.com/ig/directory?type=gadgets&url=hosting.gmodules.com/ig/
gadgets/file/114026893455619160549/embedkmlgadget.xml) to work in
Google Sites.

I documented the steps to install the gadget at:

http://sites.google.com/site/jefferyjjensen/Home/unlv-on-google-earth

so if anyone else is following this thread.

Lastly, if you get a moment, will you please review for errors and
completeness?

Thanks again for your help,

Jeff Jensen

barryhunter (KML Guru)

unread,
Mar 17, 2009, 5:38:33 PM3/17/09
to KML Developer Support - Google Earth Plug-in
That page contains an embeded gadget, dont see any instructions?

JeffJensen

unread,
Mar 17, 2009, 6:43:11 PM3/17/09
to KML Developer Support - Google Earth Plug-in
Hello Barry,

My fault. Here is the correct link:

http://faculty.unlv.edu/jensen/CEE_468/cee468spring09.html#GEinSites

Thanks,

Jeff Jensen
Message has been deleted

Roman N

unread,
Mar 20, 2009, 9:41:36 PM3/20/09
to KML Developer Support - Google Earth Plug-in
Jeff-- awesome! I look forward to seeing some great student projects
from this :-)

- Roman
Reply all
Reply to author
Forward
0 new messages