ferdy how is your widget stuctured? widgets for S60 require
helloworld.html hellworld.css helloworld.js icon.png info.plist zipped up and renamed .wgz BUT note the S60 5 edition (N97) uses .xml instead of .plist <?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" id="com.nokia.maps.examples.helloworld" version="1.0.0"> <name>Map - Hello World</name> <description>Hello World</description> </widget> then test with the N97 emulator see the slideshare slides http://www.slideshare.net/guestfe74eb/map-marker-on-the-mobile03 Sorry going off topic but need to know that process is what your doing. Then we can de-bugg the marker manager issue TIP - Download Portable FireFox & the firebug plugin - you can use it do detect javascript errors for mobile devices [Nokia recommends this route in the newly released Ovi SDK apps] Hope that helps Mapperz http://mapperz.blogspot.com/ On Sep 9, 11:24 am, ferdy182 <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
