Iāve tried to make a dashed line similar to the Live map but it didnāt look so nice. The same was with the black border around the line. This simple red line was the best result of my testing.
I think the icons are not necessary in WME they could hide some other segments. It would be more annoying than helping. The same is with the information about the closure details. The Editor usually does not need this information for editing; he needs information that there is a closure, which means: āDonāt touch the segmentsā. If he needs in an exceptional case some additional information, he can easily switch to the Live map.
My intention was to make a simple script without any bells and whistles, which is fast and can be switched on all the time.
Right now, you are hardcoded for the ROW routing server. There is a sample function located in WME Live Map Alerts Overlay that can get the server name from Waze.location.code (or W.location.code) since the routing servers differ.
I also like wlodek76ās suggestion in trying to build the dashed line similar to LiveMap. While itās not the same red line as a segment without any information, we already have āred roadsā for that purpose.
Iāve posted new version 0.2 which should use the right routing server but I didnāt find any road closure in the USA to test it there. Please could you test it or send me a permalink of a road closure?
I will try to make the line nicer but it needs more testing.
This doesnāt work. When I draw two lines with the same geometry, only the second one is shown. It doesnāt mater if the second one is solid or dashed.
It doesnāt look the best, but IMHO itās better than having it look like an unconfirmed (red) road.
It would actually be better with the black borders.
Remember, this isnāt being presented to the drivers on the app. This is a tool for editors. We can handle a reduction in aesthetics if it helps to clarify what we are looking at without having to select the segment.
New version 0.3 is available.
Iāve found an error in generating the overlapping lines and the dotted line works now with one layer only.
Additionally Iāve improved the design of the line (check the updated picture in the first post).
Iāve prepared a new version which changes index of āRoad Closuresā layer (Z-Index change didnāt help) to be lower than āLiveMap Alerts Overlayā layer. It works fine the Road Closure line is shown under the alert icons but the āLiveMap Alerts Overlayā doesnāt show the alert details in this case therefore I dint not post the new version and I will contact davielde directly to find common solution.
Yes, I thought about it but it is not so important and it has no priority I will do it probably later together with changing width of the line based on the zoom.
Could you send me a permalink to this or does it not work everywhere?
I think it is not necessary to set same values when they are in correct order therefore I didnāt use sorting.
I think the width should depend on zoom but it should completely cover the road.
Iāve tested the version 0.4 in FF and Chome, both with and without WME LiveMap Alerts Overlay and everything worked correct. It is strange. I will try to test it with different script order in the Mokeys.
Iāve changed the execution order of the scripts but it works fine too.
There are two differences between your and my code.
I donāt search for my own layer because I have it in the variable closuresLayer
I donāt set setZIndex if there is no change
WÅodzimierz could you apply this two changes to your version to see if some of them is the reason of the problem in your browser?
It is strange with your new version is the road closure line in the front of alerts icons. With the old version was the line behind the icons.
This means now I have the behavior as WÅodzimierz has and I can test it.
This cold be the differnce. WÅodzimierz probably modified both scripts and I did may test with unmodified WME LiveMap Alerts Overlay.
Iāve tested my script with your code with the new version of WME LiveMap Alerts Overlay an the behavior is same as with my code. The line is in the front of the icons on my computer in both browsers.
It works on my computer now; the new version of WME LiveMap Alerts Overlay has different uniqueName = ā__livemap_alertsā. Therefore my script didnāt find the layer.
I will wait with the new release for WÅodzimierzās tests.