Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-13 Thread Adrian Popa
Hello Esteban, Most likely after the popup closes there is a javascript error in your page and navigation breaks (zooming in/out shouldn't work at this point). Use firebug to see if you get an error in the console. Esteban olm wrote: Hi, I'm sorry, but I have a problem. When I implement th

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-13 Thread Alexandre Dube
Hi, Esteban olm wrote: > Hi, > > I'm sorry, but I have a problem. > > When I implement this, I can "pan" the map, and when I go over a > marker, A popup appears, and when I go out of the marker, the popup > disappear. > > That's ok, but after the popup has appear an disappear, now I can not > "

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-13 Thread Esteban olm
Hi, I'm sorry, but I have a problem. When I implement this, I can "pan" the map, and when I go over a marker, A popup appears, and when I go out of the marker, the popup disappear. That's ok, but after the popup has appear an disappear, now I can not "pan" the map. Maybe the popup has deactivate

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-05 Thread Adrian Popa
Following Alexandre's suggestion, here's what I did: ... //in init() map.addLayer(markers); //add the main select (for regular popups) select = new OpenLayers.Control.SelectFeature(markers, {toggle:true, clickout: true}); markers.events.on({ "featureselected": onMarkerSelect, "featureunselected"

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Adrian Popa
Thank you for your suggestion - I will try it and let you know how it works! Regards, Adrian Alexandre Dube wrote: > Hi Adrian, > > Take a look at this example (1). You can use 2 SelectFeature > controls for what you need, one with hover:true and > highlightOnly:true, the other with hover fal

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Alexandre Dube
Hi Adrian, Take a look at this example (1). You can use 2 SelectFeature controls for what you need, one with hover:true and highlightOnly:true, the other with hover false. The first one won't actually select the feature and you can register 3 kinds of "highlight" events (see the source) to

[OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Adrian Popa
Hello everyone, This is sort of a repeat message of "Re: [OpenLayers-Users] Labels/Tooltips on mouse over a Vector layer" - but with a slightly different idea. Problem: I want to display a small div/popup with the marker's name when the user hovers his mouse over the location, and I want to