Ticket #3096 (closed bug: fixed)
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
Note: See
TracTickets for help on using
tickets.
