Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 http://41.32.148.178:82/#!search=KFC%2F0%2F0%2F0%2F%2F to see exactly what I mean.

Thanks.

share|improve this question
1  
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
add comment

2 Answers

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.