Hi, I read other posts regarding this but still can't see to get the solutions to work. I like to know if someone can show me which files need to be changes in GWT to be able to generate an overlay using KML file I generated. The file will be in standard local directory that GWT app resides. I am using GWT 1.5.3 and gwt-maps.1.0.3 api library.
I can get a KML file that is located on publicly accessible website to overlay onto my map like the Hello Maps example at the GWT Maps API website. Does the restriction of the file has to be on a publicly accessible web server still apply for the GeoXmlOverlay or is there a workaround? With Javascript there are 3rd party libraries that provide a way to use local KML files to generate an overlay. Do I need to add something to my gwt.xml file to locate the KML file? Here is how I have my gwt.xml file configured: inherits name="com.google.gwt.maps.GoogleMaps" /> <script src="http://maps.google.com/maps? gwt=1&file=api&v=2&key=ABQIAAAAeXP6Iezsfo3MuBh97QMhuRRMCmFxJkLxVcWXTKDgRTyjLNh59RS6x2V7LJKYSxVPfUabFGy65Y4TOA"/ > <public path="overlayfile.kml" /> <!-- Specify the app entry point class. --> <entry-point class='gov.ca.dot.it.carmap.client.CARMap'/> </module> Here is code from my main module loading the KML file: GeoXmlLoadCallback geoCallback=new GeoXmlLoadCallback(){ @Override public void onFailure(String url, Throwable caught) { url = "failure, no values retrieved"; Window.alert(url); } @Override public void onSuccess(String url, GeoXmlOverlay overlay) { map.addOverlay(overlay); url = "success points retrieved"; Window.alert(url); }}; GeoXmlOverlay.load("overlayfile.kml", geoCallback); //Add the map to the HTML host page RootPanel.get("StateMap").add(map); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---