Hello there,

I need to render a map on my gadget. I'm using a simple example from
the google api playground, but both igoogle and Google Gadget editor
display nothing (no error messages as well). Can please anyone point
me on where's why?

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Hello maps!" />
<Content type="html">
<![CDATA[
<script src="http://www.google.com/jsapi?
key=ABQIAAAAlsHfbwTZtiyDdup2T23-fxR-mKgp16lywZEw4QNBos1-AGpbjxRLOVN-
GcGEdU5w-tj5AMMHb3xUgg" type="text/javascript"></script>
<script type="text/javascript">
google.load("maps", "2");

function onLoad()
{
        if (GBrowserIsCompatible()) {
                var map = new GMap2(document.getElementById("map"));
                map.addControl(new GSmallMapControl());
                map.addControl(new GMapTypeControl());
                map.setCenter(new GLatLng(37.4419, -122.1419), 10);
        }
}


_IG_RegisterOnloadHandler(onLoad);
</script>

<div map="map"></div>
]]>
</Content>
</Module>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to