On Feb 4, 3:24 pm, trw <[email protected]> wrote:
> Hi there,
> I'm struggling to get a simple map going with three KML files which
> (hopefully) users will be able to toggle on and off.  I believe at least
> part of my problem is that I am working with snippets of code from different
> versions of the API.  I just can't seem to debug this:
>
> https://mywebspace.wisc.edu/twallace2/web/wca/co_go.html
>
> I have looked at the following but can't seem to translate them to helpful
> examples:http://www.patrickcain.ca/maps/100901_railways-NU.htmlhttp://www.mappingsupport.com/forum_post/preserveViewport_kml_35.htmlhttp://www.duneratt.com/RenoDev/http://www.mappingsupport.com/forum_post/toggle_kml_good.html
>
> Any ideas?

Fix your javascript errors?

Do not mix v2 and v3 syntax
You are including both versions of the API, don't do that unless you
know what you are doing.

v2 syntax G* namespace, the group for v2 is:
http://groups.google.com/group/google-maps-api

v3 syntax: google.maps.* namespace

Although for what you want to do GeoXml (Lance Dyas' third party
parser) with the v2 api would probably be pretty simple, it is pretty
mature an full featured (and your kml is pretty simple).

  -- Larry


>
> Thanks!
> Tim

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