Switch to full style
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.

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.
Post a reply

[Script] WME LiveMap Alerts Overlay

Fri Sep 19, 2014 1:14 pm

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

[ img ]
[ img ]
Last edited by davielde on Wed Nov 05, 2014 2:54 pm, edited 5 times in total.

Re: [Script] WME LiveMap Alerts Overlay

Fri Sep 19, 2014 2:20 pm

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.

Re: [Script] WME LiveMap Alerts Overlay

Sun Sep 21, 2014 1:40 pm

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[i].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!

Re: [Script] WME LiveMap Alerts Overlay

Mon Sep 22, 2014 4:30 pm

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.

[ img ]
Last edited by davielde on Mon Sep 22, 2014 5:13 pm, edited 1 time in total.

Re: [Script] WME LiveMap Alerts Overlay

Mon Sep 22, 2014 5:11 pm

It's not the link to 'WME LiveMap Alerts Overlay' but to 'WME Road Closures'...

Re: [Script] WME LiveMap Alerts Overlay

Mon Sep 22, 2014 5:16 pm

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...

Re: [Script] WME LiveMap Alerts Overlay

Wed Sep 24, 2014 2:01 am

:D

Re: [Script] WME LiveMap Alerts Overlay

Thu Sep 25, 2014 5:17 pm

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

Re: [Script] WME LiveMap Alerts Overlay

Thu Sep 25, 2014 8:31 pm

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

Re: [Script] WME LiveMap Alerts Overlay

Fri Oct 10, 2014 6:27 pm

Version 0.5.1 is available on GreasyFork, which gradually increases an alert's transparency as it ages. It works in increments of 15 minutes, where an alert will be fully opaque initially, but as it gets older, it gradually fades.

This screenshot illustrates the difference between an alert that is less than fifteen minutes old and one that is just over 30 minutes old:
[ img ]

https://greasyfork.org/scripts/5138-wme ... ts-overlay

NOTE: Since road closures published by Waze are refreshed continually, they never age like standard alerts do. As a result, transparency is not affected for these closures.
Post a reply