The KML file via GGeoXml is actully downloaded by a Google server, and
transformed to a different representation before being transfered to
the browser - thats why this will not work.



On Thu, Nov 6, 2008 at 4:06 PM, 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?
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
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