Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to do some complex thing. I wonna have:

  1. popup with a name of a feature on mouse hover,
  2. popup with more complex info ( name, foto, etc.) after mouseclick on the same feature - the same layer.

It is possible to have those two things at the same time??

share|improve this question

Think so.

OpenLayers.Handler.Feature -

Just check if the feature is selected (onClick / selected) for the 2. popup and for the first one if its touched.

I'm not sure if it will work cross layer - don't think so though.

share|improve this answer
Thanks for fast answer. Well I'm just a beginner with javascript. Can U help me with some piece of code, handled this issue? – alex Nov 18 '11 at 9:53
Would like to help you, but have not a single running WebServer at the moment in my dev env. just trying to migrate to ngineX. Sorry. :( -- But check this: -- Did help me a few times! – Styp Nov 18 '11 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.