Annuaire du Vin

Annuaire Vin


Pour découvrir les vins suisses et apprécier les vins du monde

Mes Favoris

 

Les Etiquettes du Vin


Wine's Links


Obrist Europe


Schenk Asia


Obrist Artisans du vin


Maurice Gay - la haute couture des vins du Valais


Maurice Gay les étiquettes


Bolle - Les spécialistes en vin de Domaines



How to embed Google Earth in Google Sites

 

The Embedded KML Viewer Gadget from Google

 
This gadget cannot be directly embedded with Insert / More / Add by URL. We get (2009 mai) : Unsupported feature: org.apache.shindig.common.xml.XmlException ...
 


 

The code given by iGoogle

 
 
 
iGoogle give this javascript, when we choose to insert the gadget :
 
 
 

<script src="http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml
&up_kml_url=http%3A%2F%2Fwww.liens-du-vin.ch%2F_winemap%2Fclos-domaines-chateaux-itineraire.kml
&up_view_mode=earth
&up_earth_2d_fallback=0
&up_earth_fly_from_space=1
&up_earth_show_nav_controls=1
&up_earth_show_buildings=1
&up_earth_show_terrain=1
&up_earth_show_roads=1
&up_earth_show_borders=1
&up_maps_zoom_out=0
&up_maps_default_type=map
&synd=open

&w=700&h=500
&title=Embedded+KML+Viewer
&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js">
</script>

 
 
It's easy to change this script, to get an iframe :
 
 

<iframe allowtransparency="true" scrolling="no" frameborder="0" width="700" height="500"
src="http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml
&up_kml_url=http%3A%2F%2Fwww.liens-du-vin.ch%2F_winemap%2Fclos-domaines-chateaux-itineraire.kml
&up_view_mode=earth
&up_earth_2d_fallback=0
&up_earth_fly_from_space=1
&up_earth_show_nav_controls=1
&up_earth_show_buildings=1
&up_earth_show_terrain=1
&up_earth_show_roads=1
&up_earth_show_borders=1
&up_maps_zoom_out=0
&up_maps_default_type=map
&synd=open
">Test Google Earth</iframe>


 
 
 

Inserting an iframe

 
As Google Sites doesn't accept the iframe tag, we just use a dummy gadget, which insert an iframe !!
 
 


my_gadgets_gs.xml

 
Add this gadget to Google
 
 
As File parameter, we use the src of the iframe :
 
 

http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml
&up_kml_url=http%3A%2F%2Fwww.liens-du-vin.ch%2F_winemap%2Fclos-domaines-chateaux-itineraire.kml
&up_view_mode=earth
&up_earth_2d_fallback=0
&up_earth_fly_from_space=1
&up_earth_show_nav_controls=1
&up_earth_show_buildings=1
&up_earth_show_terrain=1
&up_earth_show_roads=1
&up_earth_show_borders=1
&up_maps_zoom_out=0
&up_maps_default_type=map
&synd=open

 
 

The Result :

 
 
 
 
 
 
 

More Informations



 
 
 
More applications with Google Maps

How to
Geolocalize the posts of Blogger
 
How to Add Maps to Blogger
 
 
 
 
 

 
Find a Wine