Ticket #3096 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

EventPane layers broken after #3062

Reported by: ahocevar Owned by: euzuro
Priority: minor Milestone: 2.11 Release
Component: Layer.EventPane Version: 2.10
Keywords: mobile Cc:
State:

Description

Pixel based panning (using Map::moveByPx) does not update EventPane layer positions. To move them, the Layer::moveByPx method (#3095) should be overridden.

For EventPane layers that have a dragPanObject, this is easy to fix, because the dragPanObject can also be moved by pixel deltas. For others, we need to investigate if the API provides a "move by pixel delta" method and use it. Those that don't have either will need to use Map::getCachedCenter() and call Layer::moveTo to move to the new center.

Change History

Changed 2 years ago by ahocevar

(In [11486]) make moveByPx work with EventPane layers (see #3096)

Changed 2 years ago by ahocevar

  • status changed from new to closed
  • resolution set to fixed

Fix included in latest patch for #3062.

Note: See TracTickets for help on using tickets.