Selected feature moves outside the map on mouse events

المشرف العام

Administrator
طاقم الإدارة
When I select a feature, move my cursor outside the map (still within the canvas) and trigger a mouse event such as scrolling down, the selected feature moves outside of the map. This always happens despite setting the wrapX property of both the map and vector sources to false.

I've created this jsFiddle to demonstrate the problem. To reproduce the issue:

  1. Click on the blue circle on the map to select it
  2. Move your cursor outside the map square (left or right)
  3. Scroll up or down
The circle will move to the side of the map where your cursor is.

Is there a way to remove this behavior? I'd like to make the feature stay on the map regardless of where mouse events are triggered.



أكثر...
 
أعلى