Ok guys, many thanks for your tips. I didn't know about putting the overlay on a public location.
@Chad: I will start developing my code from the sample you provided, it is exactly what I need to understant properly how does this work. :) Thanks On 8 Feb, 15:52, Chad <[email protected]> wrote: > Irene, > > I don't have a tutorial for you, but it is rather simple and > straightforward. The process goes like this: > > <pre> > GeoXmlOverlay.load(key, new GeoXmlLoadCallback() { > @Override > public void onSuccess(String url, GeoXmlOverlay overlay) { > map.addOverlay(overlay); > overlay.gotoDefaultViewport(map); > } > > @Override > public void onFailure(String url, Throwable caught) { > Window.alert("Retrieving data for the overlay caused the " > + > "following error:\n\n" + caught.getMessage()); > } > }); > </pre> > > It's a simple call to the static load method of GeoXmlOverlay. It > takes the url of the KML/KMZ file (must be a public location) and a > callback. The callback will contain an actual GeoXmlOverlay object > that can be added to your map via addOverlay. It also has a method > that lets you recenter the map to the overlay itself so in the example > above, I add the overlay to the map and then make sure the new overlay > is visible to the user. > > HTH, > Chad Bourquewww.milamade.com > > On Feb 8, 4:30 am, Irene <[email protected]> wrote: > > > Hi all, > > > I am developing a small project using GWT with embedded Google Maps. I > > have a KML file representing some 2D elements such as polylines and > > markers, so I would like to know if there is any way of loading these > > data from the GWT project and display it on runtime. > > > I have found a Demo project called "KmlOverlayDemo.java" but as it is > > part of a bigger example, I do not understand properly the execution > > flow so I can't reproduce this behaviour on my own project. I was > > expecting a more simple case to extend it step by step, does any one > > know any? > > > Thanks to all > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
