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

Noelette noelettehurley at gmail.com
Sat Sep 10 08:32:03 EDT 2011


Hey

I tested my map on an iPad and it didn't pan as expected. I'm trying at the
moment to implement exactly what I had but using openlayers 2.11 as its
optimised for mobile

It is showing the KML markers however they are not clickable - I can't find
any example that works they way I feel this should. Click the marker - pop
up appears - click x popup disappears

Main page is here http://cs1.ucc.ie/~nmh2/mobile-layers2.html
KML is the same. I've attached the JS file

Any help regarding generating a popup with the new version of openlayers
would be greatly appreciated.

Noelette


On 16 August 2011 07:53, Simon Appelt [via OSGeo.org] <
ml-node+6690251-1509896238-351033 at n2.nabble.com> wrote:

> Hi Noelette,
>
> the "problem" is not ur browser cache. Google is caching your kml too ;).
> Look at:
>
> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/31a589c622c77366?pli=1
>
> One Solution: Add a random string behind your kml name  (like
> SimpleKml123.kml) with e.g php rand().
>
> regards,
> Simon
>
> Am 15.08.2011 14:10, schrieb Noelette Hurley:
>
> It seems to have updated now. Strange.
>
> On 13 August 2011 18:13, <[hidden email]<http://user/SendEmail.jtp?type=node&node=6690251&i=0>
> > wrote:
>
>> 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
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=6690251&i=1>
>>
>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>
>
> _______________________________________________
> Users mailing list[hidden email] <http://user/SendEmail.jtp?type=node&node=6690251&i=2>
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
> --
> Visit me at
>  - Blog   : http://www.maptags.de
>  - Twitter: http://twitter.com/maptagsde
>  - youtube: http://www.youtube.com/maptagsde
>
>
> _______________________________________________
> Users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=6690251&i=3>
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1803224.n2.nabble.com/Open-layers-Open-Street-Map-and-KML-tp6683329p6690251.html
>  To unsubscribe from Open layers - Open Street Map and KML, click here<http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6683329&code=bm9lbGV0dGVodXJsZXlAZ21haWwuY29tfDY2ODMzMjl8LTExNTI1NDc3Ng==>.
>
>


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Open-layers-Open-Street-Map-and-KML-tp6683329p6778641.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110910/983ab5c3/attachment-0003.html


More information about the Users mailing list