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] WME LiveMap Alerts Overlay

Post by davielde
LiveMap Alerts Overlay provides the alerts from LiveMap in WME. As you hover over a closure or other alert, a popup will appear in the upper left corner of the map with the raw details from LiveMap as well as the calculated "age" of the report. The report age is particularly helpful to see as what might initially appear as heavy traffic along a route may actually be old. This is something that is available with the LiveMap data, but which is not displayed on the LiveMap.

Many thanks to Timbones and Twister-UK for scripts like WMECH and URO+, which provided an initial foundation for LiveMap Alerts Overlay. If the popup looks familiar, it's because the styling was meant to maintain continuity with URO+.

Version 0.5.2 is currently available for Tampermonkey and Greasemonkey here:
https://greasyfork.org/scripts/5138-wme ... ts-overlay


davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times

POSTER_ID:16797636

1

Send a message
Last edited by davielde on Wed Nov 05, 2014 2:54 pm, edited 5 times in total.
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by atrophicshiner
Since the release of WMEv2.0 this script stops me from selecting or hovering over items (segments, places, cameras etc) within the map area on first load. I am still able to drag the map and use the control. I must first use a menu to add a new item to the map, this then allows me to select again. I can cancel adding the new item and still able to select again.

OSX - Chrome Version 62.0.3202.94 (Official Build) (64-bit) - All other scripts disabled.
atrophicshiner
Waze Local Champs
Waze Local Champs
Posts: 5989
Answers: 8
Has thanked: 1600 times
Been thanked: 2326 times
Send a message
- Chris - (Catching up with the Ia{i}ns one Chris at a time)

https://cottagepi.uk/proud-wazer.gifhttps://cottagepi.uk/pirate.pnghttps://cottagepi.uk/Beta_app.pnghttps://cottagepi.uk/tolls.pnghttps://cottagepi.uk/Iain.png
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention

Post by aureozb
this script has stopped working since yesterday
aureozb
Waze Global Champs
Waze Global Champs
Posts: 107
Has thanked: 114 times
Been thanked: 32 times
Send a message

Post by aureozb
in addition, it has completely stopped working
aureozb
Waze Global Champs
Waze Global Champs
Posts: 107
Has thanked: 114 times
Been thanked: 32 times
Send a message

Post by davielde
wlodek76 wrote:Is it chance to center an icon more accurately like in LiveMap ?
Yes. I'll plan on adjusting this in a future version. When I first starting working on this, I discovered that the necessary offset actually differs depending on the zoom level. Otherwise, it would already be shifted up a few pixels.
davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by davielde
wlodek76 wrote:Hello Davielde,

Can we fix a shortcut grabbed by your script ?
Normally SHIFT + L is used as a shortcut for Landmarks and your script grabbed it ;)

So your unique layer should be ex. __livemap_alerts.
I think that shortcut is not so important here besides we can switch visibility of the layer using layer's list too.

LiveMapAlerts_Layer = new OL.Layer.Vector("LiveMap Alerts",{
rendererOptions: { zIndexing: true },
uniqueName: '__livemap_alerts'
}
);

I18n.translations.en.layers.name["__livemap_alerts"] = "LiveMap Alerts";
...
if(Waze.map.layers.uniqueName == '__livemap_alerts') lmaoLayer = i;
...


I proposed a common solution (zindex fix) to pvo11 so these both scripts could work together nicely now.

This section I18n.translations.en.layers.name is needed to avoid this error too:
wme_livemap_alerts_overlay_shortcut_name_missing.jpg
If you will decide to change unique layer's name, then pvo11 should to do it the same in proposed fix by me :)
Here is a talk about it: WME Road Closures and WME LiveMap Alerts Overlay fix

About icon offset:
Probably not perfect (mouse hover doesn't take into account this offset) but works and it presents icon's location more accurately :)
var style = {
graphicWidth: 30,
graphicHeight: 32,
graphicYOffset: -30,
};
graphicYOffset.jpg
I hope guys you will appreciate my good intension here :)
Both scripts do a similar thing but shows different useful informations, so both are very very handy and I liked them both.

Regards.
Włodzimierz
Version 0.2 has been released incorporating the layer changes and offset. Thanks!
davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by davielde
Version 0.3.1 of LiveMap Alerts Overlay has been released, which adds friendlier Type and Subtype text (i.e. "Road Closed" instead of "ROAD_CLOSED"). It also fixes a bug where the popup would not display after the user saves.

davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
Last edited by davielde on Mon Sep 22, 2014 5:13 pm, edited 1 time in total.
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by davielde
Demagogue2 wrote:It's not the link to 'WME LiveMap Alerts Overlay' but to 'WME Road Closures'...
Thanks. :oops:
I edited it correctly in the original post, but I didn't check the link in the latter post. As you probably know, we've been working to get these two scripts to work better together over the past few days. Cross marketing...
davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by davielde
Version 0.4.1 adds support for shifting the Alert Detail popup when either the UR or MP panel is visible. Images have also been encoded and saved with the script in case Waze changes their name or location in the future.

https://greasyfork.org/scripts/5138-wme ... ts-overlay
davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan

Post by davielde
wlodek76 wrote:I've noticed that popup is shown when we turn off "Livemap Alerts Overlay" layer and hover mouse over the point of not visible icon.
Just a small "thing" ;)
I thought that I had accounted for that at some point, but looking back through the history, I guess not. In any case, version 0.4.2 is now available that will hide the popup detail if the "LiveMap Alerts" layer is disabled.

https://greasyfork.org/scripts/5138-wme ... ts-overlay
davielde
Posts: 1219
Has thanked: 454 times
Been thanked: 735 times
Send a message
https://www.waze.com/wiki/images/6/69/W ... 00k_5c.png
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan