Thank you, I knew I had missed something vital. I've moved the files in to the public HTML folder and still no marker. Would I be correct in assuming that I need to change the access permissions to the file..
Thanks again Noelette On Aug 6, 9:22 pm, "[email protected]" <[email protected]> wrote: > On Aug 6, 1:09 pm, "[email protected]" <[email protected]> > wrote: > > > > > > > > > > > On Aug 6, 8:03 am, Noelette <[email protected]> wrote:> I'm > > currently working on a local machine - I've not moved anything to the > > > server yet. I want to create a KML file with a number of placemarkers like > > > in Googles own example > > >http://code.google.com/apis/maps/documentation/javascript/examples/la... > > > > However when I take the source code but change the KML file URL to kml > > > file > > > in the same directory as the source code no marker is displayed. (I'm > > > using > > > the centre point of the map as the test maker I want to display) > > > Your KML file must be publicly accessible to use KmlLayer (Google's > > servers need to fetch it). > > > Your test page can be on a local machine, not on the web, but the kml > > file must be on the web. > > See:http://code.google.com/apis/maps/documentation/javascript/overlays.ht... > > Which states: > + These data formats are displayed on a map using a KmlLayer object, > whose constructor takes > + the URL of a *publicly accessible* KML or GeoRSS file. > > (note the *publicly accessible*) > > -- Larry > > > > > > > > > > MY KML looks like this > > > > <kml xmlns="http://www.google.com/earth/kml/2"> > > > > <Placemark> > > > > <name>Library</name> > > > > <description>Main Campus</description> > > > > <Point> > > > > <coordinates>40.65, -73.95, 0</coordinates> > > > > </Point> > > > > </Placemark> > > > > </kml> > > > > Any help would be much appriciated! -- 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.
