Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.
Post by Twister-UK
Just a quick status update to say that despite the best efforts of RealLifeTM to minimise the amount of time I've had to spend on Waze this month, some progress has been made towards fixing the performance issues, however it's probably safe to assume there won't be a release until some time next month...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Thanks to a late night hackathon, 2.15 has turned up a bit sooner than expected...

Getting the routine changes out of the way first:
  • Added filter for URs with/without descriptions.
  • Master enable state is saved between sessions.
  • JS console debug output can be toggled on or off by clicking the version number at the top of the LMUR UI - when output is enabled "(dbg)" is shown after the version.
And now for the biggie.

Major reworking of the data retrieval code...

The LMURs of old would try to request as much data as possible in a single trip to the server (which translated into requests for blocks of data spanning a 1x1 degree area of the map), and would also perform all the required requests in a single tight loop, locking out the rest of the script until all the data had been received. With the growth in the amount of data required to service both the existing UR/MP filtering, plus the significant extra data now required for PUR filtering, this "big hit" approach to data retrieval was starting to struggle, with retrieval errors becoming more frequently experienced by more users.

2.15 adopts a two-pronged approach to this problem. Firstly, and quite sensibly, the data requests are now made for much smaller blocks at a time - 0.2x0.2 degree areas. This cuts down the amount of data returned in each request, making it more likely that the server will be able to return something other than an error. Secondly, each block request is now placed in a download queue, so that the required blocks can be streamed back and processed on an as and when available basis, leaving the script free to do other stuff in the meantime.

The most obvious evidence of this change is that, if you're viewing an area of the map wider/taller than 0.2 degrees, you'll now see each block rendered as it arrives, rather than (as in previous versions) seeing no change at all until everything had been downloaded and then having the whole screen change at once.


It's not all entirely sweetness and light however, as the UI is momentarily blocked each time one of the chunks is returned from the server and LMUR runs its rendering task, so if you notice the occasional click not being registered, or the occasional popup not, umm, popping up, then it's almost certainly because the render task is doing its thing. On my two development systems it doesn't cause any real problems, so I'm hoping it'll be acceptable for other users too - now I've got the new streaming code in place I'll look into improving this behaviour, but with all the problems the older "big hit" retrieval code is now causing, I wanted to release the streaming code as soon as I was happy with its core performance, and worry about the UI side of things later on...

The other glitch I'm aware of and intend to fix sooner rather than later is that enabling any of the script sections, or the master enable itself, doesn't intitiate the data download required to show any of the newly-enabled items - you'll have to persuade the download to begin by dragging or zooming the map view.


Given how much of the core code has been modified with this release, I'd really appreciate as much feedback as possible, especially comparing the networking performance of 2.15 against the previous releases. I fully expect there to be a fair bit of fine-tuning required before it's working nicely for everyone, but I hope the performance is good enough for you all to see the potential of this redesign. Having spent the last week or so living with this code as it went through pre-release shake down, I certainly wouldn't want to go back to the pre 2.15 way of doing things...


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
You're on the livemap site, right?
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Do you mean the area gets filled in block by block and then immediately clears, or that it fades out and then clears after a few minutes? The latter is by design, to prevent the display of data that may no longer be valid, and to keep the memory usage of the script under control.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
I can make the fade out period user definable in the next version. The maximum area it will queue up in a single operation is 1x1 degree, which is why you're seeing uncached strips either side of the map when you're zoomed out - to fill those in you'll need to pan left or right to trigger a separate set of download requests.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
After the major overhaul that was 2.15, 2.16 takes things nice and easy, and is best described as a tweaks and twiddles update...
  • Removed "Petrol Station Checker" UR filter option
  • Cache decay period is now user-definable
  • Automatic selection of download server (row, usa or il) can now be overriden
  • Data visualisation now occurs without user needing to drag/zoom
  • Settings are now preserved if user reloads the Livemap session whilst logged-out
  • Script no longer busy-waits when user logs-in
To accommodate the growing number of script options, there's now a grey-tinted Options section at the bottom of the UI...


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
noney82 wrote:Yeah live map i'm using. I'm looking for a add on to filter the URS i'm taking care of.
Unless something went wrong during the script installation, I can't think what could be causing this. Have you tried doing the uninstall-reinstall dance? If that doesn't/didn't work, which browser are you using?
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
The major code reworking that produced 2.15 also brought with it a bit of over-zealous optimisation resulting in some UR object properties being loaded with unexpected values if the UR had no comment data associated with it. This has the potential to cause these URs to be incorrectly shown/hidden when comment-based filtering options are used.

2.17 now initialises all properties with the required values, and uncommented URs now seem to be filtering as expected once more...


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.18 correctly hides turn problems if the master MP enable switch is turned off but other markers are still being rendered, and adds a new "Disable marker clustering" option to prevent the markers being merged into the numbered black circles at wider zoom levels. Also, to help with UI responsiveness, all data requests are now performed asynchronously.


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Hard to tell from the resolution of the vid (although as a way to clearly illustrate the issue, it's a hell of a lot clearer than a static screengrab - thanks!), but this could be a pair of stacked URs where the natively rendered markers in WME are stacked in the reverse order to the LMUR rendered ones.

Note how LMUR and URO disagree on how many days ago those two URs were submitted - this may just be an artifact of the code used by both scripts to derive the elapsed days display, but it could also indicate the presence of two URs at each location, submitted a day apart. Wouldn't be the first time the render order of stacked URs has led to confusion like this - one of these days I'll come up with a way to make stacks more obvious in both scripts...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4670
Answers: 2
Has thanked: 736 times
Been thanked: 4677 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png