Thursday, April 29, 2010

How to add multiple kml files to google map web page?

I have two kml files that I would like to add to my google map, one
file represents sanitary sewer manholes and the other sanitary sewer
pipes. I can only get one to show up. My code is below:

var kml = new GGeoXml("http://niraengineers.com/map/harr_sanmh.kml");
var kml2 = new GGeoXml("http://niraengineers.com/map/
harr_sanpipe.kml");
map.addOverlay(kml);
map.addOverlay(kml2);

My website: map.niraengineers.com

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate