Project

General

Profile

Actions

Bug #12801

open

WLeafletMap may skip render after replacing marker

Added by Andrey Alekseev 2 months ago. Updated 25 days ago.

Status:
New
Priority:
Normal
Target version:
Start date:
06/28/2024
Due date:
% Done:

0%

Estimated time:

Description

When removing a marker and then immediately creating a new one, there is a possibility, that map won't be updated on client until page is reloaded.
This bug caused by comparing pointers, but not checking if unique_ptr exists, see this line.
In my case, unique_ptr, returned by removeMarker(), is being deleted, and then new marker is created and added, which may be located by the same address, so no changes are sent to the client.

Temporary workaround is to add new marker first and then remove the old one.

Actions #2

Updated by Matthias Van Ceulebroeck 25 days ago

  • Due date deleted (06/28/2024)
  • Assignee changed from Andrey Alekseev to Matthias Van Ceulebroeck
  • Target version set to 4.11.2
Actions

Also available in: Atom PDF