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] Street Vector Layer

Post by bedo2991
The Road layer for the editors, made by editors.
Please click here to install it (new Repository since 11/03/2021, v. 5.1.5)

Edit: New screenshots
Pasted image at 2016_06_18 04_28 PM.png
(1 MiB) Downloaded 4912 times
Pasted image at 2016_06_18 04_29 PM.png
(1.03 MiB) Downloaded 4844 times
As some (or most) of the people here is not liking the new Road layer (incl. me), I've asked to myself:

Why does Waze have to choose which colors we like? Wouldn't it be nice to let the user choose? Wouldn't it be better for color-blind people to choose colours they can distinguish?
Unfortunately this is not possible with the current tiles, as they are generated on a Waze server and we just download them.
In order to do so, the tiles has to be generated by our browsers.

That said, after one afternoon of work I've created this vector layer.
Pros: :)
  • It's possible to customize it (color of the road, size of the road, ...)
  • It keeps working if the tile server is down
  • Saves bandwidth (i guess not much, but better than nothing).
  • What you see is what you can edit. When the elements are loaded they are drawn. No more clicking on segments that can't be selected.
  • You don't have to save to see the edit, segments are redrawn when you move/delete them (less confusion when deleting/moving segments).
  • Tries to take the good things of the old and new layers and puts them together (mostly old colors for street, primary and highways and new colors for non-drivable/dirty/parking lot streets, plus restrictions and toll).
  • If the segment is closed a purple dashed line is shown on top of it.
Cons (so far): :(
  • Makes your CPU work a little bit more
  • Names placements is not as nice as in the new road layer but, as far as I know, with this version of OpenLayer, is not possible to do better. Names might overlap.
Some screenshots:
svl521_.jpg
(1.21 MiB) Downloaded 762 times
Some (edit: OLD) screenshots:
Highway.png
(1.93 MiB) Downloaded 8232 times
major.jpg
(620.19 KiB) Downloaded 8269 times
parking private restriction.jpg
(553.25 KiB) Downloaded 8280 times
-- OLD --
The script is currently in "alpha" status. Some things still needs to be fixed or improved.
Let me know what you think about it, so I can see if it's worth keeping developing it.

If you would like to try it, please send me a PM, I'll let you know in the following hours/days when I have something usable.
-- OLD --
 
 
 
 
 
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2380
Answers: 2
Answers: 2
Has thanked: 235 times
Been thanked: 625 times

POSTER_ID:4945632

1

Send a message

Post by AndyLaode
@patti: ahh okay...
AndyLaode
Posts: 808
Has thanked: 13 times
Been thanked: 242 times
Send a message
andylaode (andylaode@outlook.com)
okay, mate, see you on the road and on the map too, cheers

Post by AndyLaode
bedo2991 wrote:Version 3.5 is out!

+ Implemented a user request:
Option to show geometry nodes on all segments except roundabouts (disabled by default). It's in the menu under:
Rendering Parameter > Close zoom > Render geometry nodes

Moved the "Render map as level" into the "Rendering parameter" section.
i cried a tear of joy

thanks so much
AndyLaode
Posts: 808
Has thanked: 13 times
Been thanked: 242 times
Send a message
andylaode (andylaode@outlook.com)
okay, mate, see you on the road and on the map too, cheers

Post by AndyLaode
hi Bedo

how to enlarge the geo nodes in existing script?
AndyLaode
Posts: 808
Has thanked: 13 times
Been thanked: 242 times
Send a message
andylaode (andylaode@outlook.com)
okay, mate, see you on the road and on the map too, cheers

Post by AndyLaode
juliansean wrote:There are no errors in the console.
1) Click on a place
2) Click on a road while already on a place -- can't select a road
3) esc to get off the place - now can select a road

turn off your script, I can click from place straight to a road.

My initial problem of not being able to click on a place at all wasn't happening this morning.

Not a big deal. Just one extra click and since no errors, I'm not much help.
me too
AndyLaode
Posts: 808
Has thanked: 13 times
Been thanked: 242 times
Send a message
andylaode (andylaode@outlook.com)
okay, mate, see you on the road and on the map too, cheers

Post by Ardillon42
vagabond_8_1 wrote: Fri Oct 15, 2021 12:57 pm I keep getting this error message: "Street Vector Layer failed to initialize. Please check that you have the latest version installed and then report the error on the Waze forum. Thank you!"

I have the latest version installed. Anyone else having this issue?

 
I also have this issue, I'm using the last chrome version.
Ardillon42
Waze Mentor
Waze Mentor
Posts: 783
Has thanked: 686 times
Been thanked: 99 times
Send a message

Post by Ardillon42
I don't know if is WAD or to hard to fixe but on segment if you add width on one way the display is made in the two ways.
Can we have width display only on the segment side affected ?
 
Ardillon42
Waze Mentor
Waze Mentor
Posts: 783
Has thanked: 686 times
Been thanked: 99 times
Send a message

Post by Ardillon42
Did you try to use the link on the first post?
Ardillon42
Waze Mentor
Waze Mentor
Posts: 783
Has thanked: 686 times
Been thanked: 99 times
Send a message

Post by bedo2991
Quick update, the script is available for the one who request it.
I still want to improve it before making it available for everybody.
So far I'm quite proud of the result, seems to run rather smoothly also in dense places like London and Rome.
minor.jpg
(251.35 KiB) Downloaded 8091 times
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2380
Answers: 2
Has thanked: 235 times
Been thanked: 625 times
Send a message

Post by bedo2991
sketch wrote:but it would also be nice to have the road name text match the road type color (as an option), especially if it's not possible to make OpenLayers show the text at an angle along the road.
I didn't even think about it! It was so easy to make the layer look a little bit better!
color.jpg
Road Names
(454.35 KiB) Downloaded 7974 times
And here is a preview of the window to personalize the style:
changeStyle.jpg
Style is saved locally, it can also be exported and imported.
(39.62 KiB) Downloaded 7973 times
Changes v. 0.2
  • Less arrows are generated on roundabouts
  • Style editor window (to show it click on the attribution bar).
  • Labels are colored matching the street type. The outline white/dark is automatically computed for better readability (might need to be fine tuned).
  • Some small changes on the default colours for better visibility
  • Code optimization to improve speed
    • TODO:
      • So far is possible only to change the street types, I want to let you also change the toll, restriction and closure decorations.
      • Consider the level attribute of the segments when drawing them

        Known issues
        • Nodes are still not redrawn until you save (the WME event for nodes changes doesn't get triggered until you save).
        • Sometimes moving the segment the previous segment position doesn't gets deleted.
Download link (remember, it's still a beta version, might not work properly).
bedo2991
Waze Global Champs
Waze Global Champs
Posts: 2380
Answers: 2
Has thanked: 235 times
Been thanked: 625 times
Send a message