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
With the international editor out of action, I decided to dust off the LMUR source and do some long overdue updates...

0.5 fixes a data retrieval glitch which exhibited itself in the northern reaches of the UK (and would most likely also appear in other parts of the world too), it moves the script info/activation checkbox up to the top of the livemap view, and, saving the best till last, it now features overview popups for the UR and problem markers.

Note that, unlike the popups in my UROverview script, these ones are (for the moment at least) just for information - there's no links to open WME at the UR/problem location etc.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
foxitrot wrote:I do not see the the overview popups for URs+MPs on INTL server - because of the shut down WME?
No, the script has been working OK for me all throughout the shutdown. If the red/green markers have been placed on the livemap, then the script has all the information it needs to generate the popups, so there must be some other reason why they're not appearing. Do you see any errors in the javascript console?
foxitrot wrote:Never mind. The script uses a vertical yellow rectangle, sized approx. 70 x 100 km, as a looking glass for the markers. Is there any specific reason to make it vertical (if not already a square), like an API constraint? A horizontal orientation would suit more...
When requesting the UR/problem data from the Waze server, the largest area you can ask for in a single request is 1 degree * 1 degree, and so this is what the script currently requests each time you move/zoom the map. The reason this 1*1 area appears to be rectangular rather than square is due to the projection method used to generate the live map - the further north or south you move from the equator, the more the projection vertically stretches the map. If you view the livemap near the equator, you should see the script bounding box appears to be a square, and as you then pan north or south, you'll see it slowly elongating into the portrait-oriented rectangle more familiar to users in non-equatorial regions...

One of the things I'll be looking into for future versions of the script is a more intelligent data request process, so that the script doesn't ask for more data than necessary if you're zoomed right into the map, and also so that it can request multiple blocks of data to cover more of the map when you're zoomed further out.

foxitrot wrote:The Extended Tools for Papyrus and one more Timbones' script contain (or contained) code for maximizing the usable area by (at least) hiding the upper black Waze banner and navigation bar. Could you try to bind such change (hide the "body_bg.png", "content_wrapper"/"navigation" and "content_wrapper"/"navigation_bottom_wrapper" in order to vertically enlarge the LiveMap's "map_container" area) on the "Show URs/map checkbox problems" state?
Possibly...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
0.6 resolves what I suspect was a long-standing problem which would incorrecly trigger the "unable to access..." handler if the server returned partial data for any other users in addition to the data expected for the logged-in user.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
Which browser? I've got an update for LMUR in the pipeline, so if there is a problem I'll look to fix it as part of that release.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
0.7 is now available...

Bug fixes:
Now allows use of the Livemap search/directions functionality (thanks to Kuhlkatz for reporting this one)
Allows UR/problem popups to be displayed if the livemap window has been scrolled

New features:

Loads UR/problem data for a wider area initially (3 degrees x 3 degrees as opposed to the 1 degree x 1 degree area used in prior versions), caching this data and adding to the cache as the map is panned/zoomed. The data is still retrieved in 1x1 degree blocks (limited by the Waze server), and each of these cached 1x1 degree areas is shown on the map with a pale yellow highlight. The cached data persists for the duration of the browser session, so to refresh it simply reload the page.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
foxitrot wrote:The AM (manageable?) and EA (updatable?) areas' highlights are gone. Intentionally I suppose. If it was not a big code/data overhead, it was a very nice feature of the v0.6.
Yes, it's an intentional side-effect of caching multiple 1x1 degree blocks of data in order to expand the UR/problem markers across the whole map - I'd also have to cache the multiple fragments of editable area data and stitch them together for display, and for editors with large areas that could easily mean the script ends up caching a lot of data for each session...

I might look into re-instating the area higlighting in some way, but for this release I felt it was more important to implement the wider UR/problem marker coverage since that's been requested several times. I also needed to get the two bugfixes rolled out as well, so I didn't want to hold back this release any longer than necessary.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
Wasn't planning another release so soon, but with Turn Problems now making their way out of beta I decided a quick update to support those was in order - 0.8 now marks them with a green dot.

0.8 has also given me the chance to fix a long-standing bug - if the livemap was panned too quickly, the UR/problem markers could end up being drawn slightly out of alignment with the underlying map - which had become more obvious recently, either as a result of other changes in LMUR or changes to the Livemap code itself.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
foxitrot wrote:If the automatic map movement could be noticed by the script...
...it can, if you install the shiny new 0.9 release :D Thanks for the bug report, I rarely have LMUR enabled at the same time as the Waze-generated markers (too much clutter for my liking), so I hadn't spotted this one.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
mrgrumpy wrote:I can't get this to work. :cry:
Are you on the secure livemap server?
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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
mrgrumpy wrote:Am now, still won't wor k.:cry:
OK, let's take this one step at a time to see where the problem lies. I know it does work OK on Win7 64bit + Chrome, because I've tested it with that combination on both my home and work PCs, so it's not a general incompatibility issue...

Step 1 is done, we're on the secure server.

Step 2 - are you logged-in?

Step 3 - do you see the "Show URs/map problems" checkbox sandwiched between the Search Address | Get Directions bar and the map display area?

Step 4 - is the box ticked?

Step 5 - do you see a pale greeny-yellow rectangle overlaid on the centre of the livemap?
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4684 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