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'm having trouble with everything mouse related for an Openlayers map when the map is placed inside a DIV with position fixed. The map works fine when you're at the top of the viewport of the browser, but when you're scrolling down the page, you can see that the zooming/click effects are shifted. You can check here!search=KFC%2F0%2F0%2F0%2F%2F to see exactly what I mean.


share|improve this question
That site (an unidentified Egyptian server) is so slow and unresponsive that it doesn't seem to suggest any unusual behavior to me. – whuber Dec 28 '11 at 16:41
Cannot open URL – CaptDragon Jan 5 '12 at 15:51

I was using an outdated version of openlayers (2.01), updating to the latest version of openlayers solved the issue

share|improve this answer

you can solve the problem setting the search box a fixed 'height' and using overflow:auto.

The real problem, you suggests, seems related to the compute of map position/dimensions and the fact you move the slider without moving the map.

You can check if calling the 'map.updateSize()' when you move the scroll solves the problem, but IMO i think it is better to set an heigh in the search box to not go beyond the page limits.

share|improve this answer

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.