Google Maps API v2 provides GGeoXML for accessing KML layers. GGeoXML will follow network links. The files are actully fetched an parsed by Google's servers so needs to be publically accessible URLs.
Simillly v3 provides a kmlLayer - with the same restrictions. I would think kmlLayer follows network links - dont know for sure. however there are alternative KML parsers GeoXML and EGeoXML last time I checked. Not sure if they include support for network links, but being 'open' source, can tweak them as required. Might need to interact with a proxy on your server, if the destinations of the NetworkLinks are not on the same hostname. (and then would need to be destinations your server could access) On 24 June 2010 14:49, GlanT <[email protected]> wrote: > I want to display kml data from a network link on google maps > (enterprise non public data). I searched over the forum and did not > see much help for basic example of code that shows how to add a > network link to google maps as you do in google earth( fetchkml). > > I am easily able to add url to google earth (entrprise api) with code > below > > google.earth.fetchKml(ge, pageLink, function(kmlObject) { > if (kmlObject) > ge.getFeatures().appendChild(kmlObject);}); > > what would be equvialent code for this google maps > > > I guess my search turned these post but no real response > > http://groups.google.com/group/google-maps-api/browse_thread/thread/db3d877e550e2524/5edf21c6e6a51490?lnk=gst&q=anyone+know+how+to+add+network+links+to+Google+Maps#5edf21c6e6a51490 > > http://groups.google.com/group/google-maps-api/browse_thread/thread/d8fde870fcc387f3/c9ea71095612248b?lnk=gst&q=anyone+know+how+to+add+network+links+to+Google+Maps#c9ea71095612248b > > -- > 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. > > -- 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.
