[OSM-dev] keepright.at bug - distructive inspection of problems
Harald Kleiner
e9625163 at gmx.at
Sat Jan 31 14:02:46 GMT 2009
Hi, Milo!
I did something evil, I admit.
I didn't figure out how to activate that red X icon for bubble closing.
But I found out that changing line 926 from
if(!sameMarkerClicked){this.layer.map.addPopup(this.createPopup());}
to
if(!sameMarkerClicked){this.layer.map.addPopup(this.createPopup(true));}
would activate it. That's the reason why I hosted my own copy of
OpenLayers.js.
>
>
> Are you using standard functionality? Did you copy from a sample? I
> cannot find any reference in your sourcecode to the event(s) that open
> and close the bubbles
All I do is add the layer, nothing else. I don't know how to add events.
Switching back to the hosted version looks like this:
http://keepright.ipax.at/report_map2.php
(not really beautiful). So I'm still looking for a legal way to reduce
font size of the headline and add the close button.
Can you give me a pointer to a helpful example?
Thank you very much,
Harald
>
> Any more hints would be welcome.
>
>
>
>
> Harald Kleiner wrote:
>> Hi Eddy! Hi OpenLayers-Experts!
>>
>> This is an OpenLayers-related issue. Maybe someone out here can help.
>>
>> This page http://keepright.ipax.at/report_map.php uses an
>> OpenLayers.Layer.Text layer to display bubbles showing error messages
>> if one of the images (lightning arrows) are clicked.
>>
>> You may close these bubbles by clicking on the red X or by clicking
>> the lightning arrows again. But when using the X you cannot re-open
>> the bubble until the page is reloaded.
>>
>> Any hints are welcome!
>>
>> Best Regards,
>> Harald
More information about the dev
mailing list