Openlayers中的缩放和鼠标事件问题 [英] Problems with zooming and mouse events in Openlayers

查看:1547
本文介绍了Openlayers中的缩放和鼠标事件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当将Openlayers地图放置在位置固定的DIV内时,与鼠标有关的所有问题都给我带来麻烦.当您位于浏览器视口的顶部时,地图可以正常工作,但是当您向下滚动页面时,可以看到缩放/单击效果发生了变化.您可以在此处检查 http://41.32.148.178:82 /#!search = KFC%2F0%2F0%2F0%2F%2F 准确地了解我的意思.

这个家伙似乎正面临着同样的问题,但没有得到任何回应 http://lists.osgeo.org/pipermail/openlayers-users/2010-July/018769.html

解决方案

这是我使用的OpenLayers版本(2.1)中的一个错误,我更新到了最新版本(2.11),现在一切正常,谢谢. /p>

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.

This guys seems like he's facing the same problem but didn't get any responses http://lists.osgeo.org/pipermail/openlayers-users/2010-July/018769.html

解决方案

It was a bug in the OpenLayers version I was using (2.1), I updated to the latest version(2.11) and everything works fine now, thanks.

这篇关于Openlayers中的缩放和鼠标事件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆