I got the KML layer working by making the URL public, as suggested by Rossko but now I cannot get more than three markers to show. In the example linked and shown below there are four markers but only three are shown in the layer, why? As usual any assistance will be gratefully received.
Here is a link to my attempt to use a KML layer http://steveyoung.myftp.org/maps/KMLreader1.html . Although the code is short enough to list here. JavasScript file http://steveyoung.myftp.org/maps/kmlAustria.js var map; function load() { var latlng = new google.maps.LatLng(48,16); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map"), myOptions); var kLayer = new google.maps.KmlLayer('http://steveyoung.myftp.org/ maps/austria.kml'); kLayer.setMap(map); } KML file http://steveyoung.myftp.org/maps/austria.kml <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Placemark> <name>a</name> <Point> <coordinates>16.930489,47.784239</coordinates> </Point> </Placemark> <Placemark> <name>b</name> <Point> <coordinates>16.585914,48.009983</coordinates> </Point> </Placemark> <Placemark> <name>c</name> <Point> <coordinates>15.256436,48.702892</coordinates> </Point> </Placemark> <Placemark> <name>d</name> <Point> <coordinates>15.2564,48.7028</coordinates> </Point> </Placemark> </Document> </kml> -- 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.
