Yes, I have an error here: <div map="map"></div>
So when I change it on <div id="map"></div> I see map controls, but still not map itself. On Jun 22, 4:26 pm, Larrr <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
