LiveAtlas icon indicating copy to clipboard operation
LiveAtlas copied to clipboard

[Pl3xmap] Add marker updating

Open sudothefox opened this issue 3 years ago • 3 comments

I know this is already known, and I'm not reporting it as a bug. I'm looking for a place to ask why this is the case, and if this will ever change? I searched through old Github issues, and SpigotMC discussion posts, but couldn't find anything. Hopefully this ticket can be used by people in the future looking for the same answer.

sudothefox avatar Jan 03 '22 17:01 sudothefox

The main reason is that, unlike Dynmap, Pl3xmap/Squaremap don't have IDs for their markers. This means LiveAtlas can't determine which markers have been updated or removed between requests, so there'd be no way of reflecting those changes without recreating all markers from scratch (which is what the stock frontend does). This would quickly become expensive when many markers exist, so I decided to ignore updates instead.

At one point it was my plan to make a PR that added IDs, but I've never found the time to do so.

JLyne avatar Jan 03 '22 19:01 JLyne

The main reason is that, unlike Dynmap, Pl3xmap/Squaremap don't have IDs for their markers. This means LiveAtlas can't determine which markers have been updated or removed between requests, so there'd be no way of reflecting those changes without recreating all markers from scratch (which is what the stock frontend does). This would quickly become expensive when many markers exist, so I decided to ignore updates instead.

At one point it was my plan to make a PR that added IDs, but I've never found the time to do so.

Would it be possible to implement an option to enable rewriting all markers, but have it disabled by default?

I have player markers that are supposed to update every 30 seconds, but with LiveAtlas obviously this is broken atm.

sudothefox avatar Jan 03 '22 20:01 sudothefox

Will see what I can do once I find the time 👍

JLyne avatar Jan 03 '22 23:01 JLyne