[OpenLayers-Users] Open layers - Open Street Map and KML

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Sat Aug 13 13:13:34 EDT 2011


Only shows one for me. Did you try clearing your cache?

-- Chris

On Aug 13, 2011, at 10:48 AM, ext Noelette wrote:

> Hi
> I have an openlayers OpenStreetMap displaying showing a college campus. I'm
> trying to place markers over particular buildings so the user can click and
> view additional information. I made a simple KML file, and following the
> examples I get 3 simple clickable markers to display. Today I tried to edit
> the KML file to store additional markers and I also tried to extend the
> amount of information displayed for the existing marks
> The HTML file and the KML file are on a web server. 
> I updated the KML file, I did nothing to the HTML but the updates to the KML
> file did not display.
> Would anyone know why this might be? I've simplified the KML file down to
> one place marker but it still shows the original 3 that I had working
> 
> Link to map http://cs1.ucc.ie/~nmh2/openlayer/examples/layerUCCEx.html
> 
> Simplified KML file
> 
> 
>    <?xml version="1.0" encoding="UTF-8"?>
>    <kml xmlns="http://earth.google.com/kml/2.2">
>    <Document>
>    <Placemark>
>        <name>Western Gateway Building</name>
>        <description>WGB</description>
>        <Point>
>            <coordinates>-8.499781,51.893349,0.000000</coordinates>
>       </Point>
>    </Placemark>
>    </Document>
>    </kml>
> 
> Larger KML file
>    <?xml version="1.0" encoding="UTF-8"?>
>    <kml xmlns="http://earth.google.com/kml/2.2">
>    <Document>
>    <Placemark>
>        <name>Western Gateway Building</name>
>        <description>WGB- Shiny and New</description>
>        <Point>
>          <coordinates>-8.499781,51.893349,0.000000</coordinates>
>        </Point>
>      </Placemark>
>     <Placemark>
>      <name>Quad</name>
>      <description>UCC's Quad - Don't walk on the grass</description>
>    <Point>
>       <coordinates>-8.492107, 51.893905,0.000000</coordinates>
>    </Point>
>   </Placemark>
>    <Placemark>
>    <name>Boole Library</name>
>    <description>UCC's Library</description>
>        <Point>
>           <coordinates>-8.491518,51.892793,0.0000000</coordinates>
>        </Point>
>    </Placemark>
>    <Placemark>
> 	<name>Kane Building</name>
> 	<description>Kane Building UCC</description>
> 	<Point>
> 		coordinates>-8.493941,51.892792,0.000000</coordinates>
> 	</Point>
> </Placemark>
> </Document>
> </kml>
> 
> I also tried displaying an image but decided to leave that out until I got
> the basics displaying. (not certain it can display images)
> 
> Any help would be much appreciated
> 
> Noelette
> 
> 
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Open-layers-Open-Street-Map-and-KML-tp6683329p6683329.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list