I have an OpenLayers map in an HTML element which is fixed to a particular
location in the browser window via the following CSS:

#map {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 256px;
  height: 256px;
}

The problem I am encountering is that when the *browser window* is scrolled
down, even though the map stays in place (as I expect it to), when I use the
mouse-wheel to zoom in or out of the map, OpenLayers is taking into account
the scrolled Y-position of the browser window.  This is causing the zoom
feature to zoom elsewhere than where I intend to zoom.

Is there an easy solution for this, or do I need to intercept the
mouse-wheel event?

-- 
Jeffrey Pinyan
"Praying the Mass: The Prayers of the People" -
http://www.PrayingTheMass.com/
A Guide to the New English Translation of the Mass (My first book, now in
its second edition!)
The Cross Reference - http://thecrossreference.blogspot.com/ (My blog)
Follow me on Twitter @PrayingTheMass

[Mary said,] "Do whatever he tells you." ~ John 2:5
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to