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 Reply
Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] Live Map UR Layer v3.3 (20231011)

Post by Twister-UK
This is a first stab at hacking together a UR/map problems layer for the Waze livemap view. This version is intended for users to test the core functionality required in such a layer - namely the ability for a third-party script to retrieve UR/problem data from the Waze server when no such data is already present on the page, and to then display it somehow over the existing map view.

After installation, you should see a new checkbox at the bottom of the Live Map window, titled "Update Requests". Tick this box to activate the script. Once active, the script monitors for any movement/zooming of the live map view, and requests the current UR/problem data from the Waze server for the area being viewed. The locations of any received URs are then plotted on the map as a small red/blue box (map problems are not plotted at present).

The Waze servers will not return any data for an area wider or taller than 1 degree of lat/lon, so if the livemap is zoomed out too far the script will only retrieve data for the central area. The area in which data is being requested should show up as a translucent yellow box.

Note that the Waze server will only return data if there is a logged-in user, and the data returned is filtered according to the editable areas assigned to that user - this script cannot display ALL the URs/problems in a given area, ONLY those that the logged-in user would be able to edit.


Userscript version for Tampermonkey etc: https://greasyfork.org/scripts/1948-livemap-ur-overlay

Due to a combination of the additional effort required to generate web store release packages, plus the increasingly overbearing control-freak behaviour exhibited by Google with regards their policing of web store content, I no longer maintain or support the web store versions of this script, and users should migrate to the Userscript version in order to continue receiving updates.

Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
 
 
 
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Answers: 2
Has thanked: 736 times
Been thanked: 4679 times

POSTER_ID:16778143

1

Send a message
Last edited by Twister-UK on Wed Oct 11, 2023 10:05 pm, edited 58 times in total.
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 for the bug report, 0.4 should now have solved that problem... In fixing that error, I've also resolved the problem where the editable area would appear and disappear if you were panning across certain parts of the map at certain zoom levels.

Linking the UR/problem markers to WME is my long-term intention for this script, but I don't want to rush into this until I'm happy that the foundations of the code are OK, hence all of these proof of concept versions.

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4679 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
V0.3 now shows the users managed and editable areas - since the UR and problem data is only returned within these areas, displaying them on the livemap makes it clearer whether or not an area is genuinely devoid of problems or simply appears so because you don't have editing rights there...

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4679 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
A few improvements for the 0.2 proof of concept release

* should now work on the NA server as well as the world one
* prompts users to log-in if they aren't already
* now shows map problems as green dots

Note - the script will only be activated if you are using the secure live map server - if you do not see the checkbox at the bottom of the live map window, you're probably on the non-secure server...

http://userscripts.org/scripts/show/150276
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4679 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 twist3r
I was expecting that but no bar was visible. However I missed the part were it was written that you have to be on https version of livemap, not the http. I always used the default one that is http and never thought using a more secure one.

Now with https:// the bar is visible and the script is working just fine. My bad
twist3r
Map Raider
Map Raider
Posts: 732
Has thanked: 59 times
Been thanked: 124 times
Send a message

Post by twist3r
Is this script supposed to work on Chrome ? Because I can't see anything new in Livemap even if there are UR's that I have the right to edit.
twist3r
Map Raider
Map Raider
Posts: 732
Has thanked: 59 times
Been thanked: 124 times
Send a message

Post by Timbones
I think "Petrol Station Checker" option can be removed - that project was finished a long time ago. Iain would have swept up any left over URs by now. :mrgreen:
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Timbones wrote:Twister - how about a table of URs instead?
What did you think about this idea? A different script perhaps? I know you're short of time, but it would be nice to have. (I'd make it myself if I could find the time) :)

via mobile
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Twister - how about a table of URs instead?

You already know how to get all the URs within the editable area, so listing them in a table would be nice and easy, no? Maybe as a popup tab in the editor and/or the dashboard, with appropriate icons (UR, MP, conversation, etc), colours, dates and a link to the map position. Just like we had in 'the good old days'.

For example: (ordered by date, popup description on hover)
:!: Turn not allowed - 1 comment - Sept 30
:!: Missing road - 3 comments - Sept 29
:?: User didn't follow route - no comments - Sept 29

Let me know if you want a hand with the coding or testing...
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Or just click on the "Update map" link at the top of the screen.

The Livemap Navigation addon fixes this link to be a proper edit permalink for the current location.
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries