On Aug 11, 3:10 am, Noelette <[email protected]> wrote:
> Link to Maphttp://cs1.ucc.ie/~nmh2/placeMarks.html
> If I try to link to the kml file directly I get
>
> Forbidden
>
> You don't have permission to access /~nmh2/placeMarks.kml on this
> server.
>
> I thought I had set the permissions on the kml file to all, so I'm not
> sure why I'd get a forbidden error

Your server probably isn't configured to serve kml files.

> I'll try using an xml file.

The xml files works for me:
http://cs1.ucc.ie/~nmh2/mapPoints.xml

I seem to see three markers.  I do see what looks to be an extra space
in the <coordinates> for one of your markers, that could cause
problems (spaces are used between coordinate groups, and are not
allowed within the Longitude,Latitude,Altitude triplet).

  -- Larry


>
> Thank you for the help.
>
> Noelette
>
> On Aug 10, 11:15 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Aug 10, 9:24 am, Noelette <[email protected]> wrote:
>
> > > 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..
>
> > The most common problem is that the server isn't configured to serve
> > kml files (I use a .xml extension on thehttp://www.geocodezip.com
> > server because it doesn't allow .kml files to be served)
>
> > What happens if you enter the public url of the kml file into your
> > browser?  (you haven't followed the posting guidelines and provided a
> > link to your map or your kml so we can do that... I know you have
> > indicated you are on a local machine, but it is much easier to help
> > you if you follow the posting guidelines and make everything public)
>
> >   -- Larry
>
> > > 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.

Reply via email to