On Nov 6, 8:06 am, jatorrero <[EMAIL PROTECTED]> wrote:
> Hi:
>
> I have developed a local html file that includes a google map. I have
> used the google maps api to insert markers, polygons etc. I would also
> like to use a KLM file for showing new locations, markers and shapes
> on the map. Since the KLM file is in local, when a create a GGeoXml
> object to use the KML file, I can not use a url reference. I have
> tried "file.kml" as the url for the constructor but It seems that it
> does not work.
>
> The code is:
>
> geoXml = new GGeoXml("cta.kml");
> map.addOverlay(geoXml);
>
> the cta.kml file is in the same directory that the html file.
>
> How can I refer to kml file from the GGeoXml constructor?You can't. You could try EGeoXml or GeoXml as they process the KML file in your browser. However, if this is for an application that is compliant with the TOU, for local testing you should be able to access the file with its absolute URL that is on the web server. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
