Hi all,

I'm making a Widget for Nokia S60 devices (Nokia N97).
Widgets are webpages executed under a webkit browser.

Ok, I developed the widget wich contais a Google Map that was working
perfect until I added the MarkerManager. It gives me an error at
object creation. I can't provide a link because you have to debug it
on the emulator but here is the code:

function InitMap()
{
        try{
                if (GBrowserIsCompatible())
                {
                        map = new GMap2(document.getElementById("_gmap"));
                        map.setCenter(new GLatLng(40.419143, -3.708156), 13);
                        map.addControl(new GSmallMapControl());
                        map.addControl(new GMapTypeControl());
                        map.enableDoubleClickZoom();

                        window.setTimeout(setupMarkerMgr, 1000);

                }
        } catch (ex){
                alert("Error al iniciar el mapa: "+ex);
        }
}

function setupMarkerMgr()
{
        try{
                mgr = new MarkerManager(map);
        } catch(ex)
        {
                alert("Error al crear el mgr: "+ex);
        }
}

without the MarkerManager it works fine, so the map is already created
and API loaded, and so on...

the error it gives on the new clause is:
TypeError: ValueUndefined (result of expression me.getMapGridBounds_)
is not object.

I have also tried whith MarkerManagerOptions but it was also
unsuccesful.

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to