On May 25, 4:02 pm, Israel Brewster <[email protected]> wrote:
> I have a problem that has me completely baffled. I have a google map
> embedded in my webpage using the Javascript API V3. When I click a button,
> some javascript runs that adds a KML overlay. For testing purposes I am
> using the KML
> from

http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml

> This all
> works properly, the map displays the lines from that KML file.
>
> Next, I downloaded the above sample KML file to our server, and changed the
> URL in my Javascript to point to our server. This broke things- not only did
> the lines from the KML file not show up, but I don't even see any evidence
> of anything attempting to access our server.
>
> Thinking that I had a typo in my url, I went to the google earth app and
> copied the URL from my Javascript into the Google Earth app. Lo and behold,
> it worked perfectly- the lines drew, and I saw the access in my logs.
>
> The only thing that changed in my javascript from when it did work to when
> it didn't was the URL, and the URL works fine in Google Earth. What am I
> missing here?

The URL of the kml file?

Can't tell what the problem is without it. Does it work in Google
Maps?

Some servers don't server kml by default, but if it works in google
earth (with an external URL), it should work from the internet.  It
also _has_ to be publicly available to work with KmlLayer.

  -- Larry

>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to