[Script] Street Vector Layer

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.

Moderators: Unholy, bextein

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

Postby bedo2991 » Thu Jul 09, 2015 10:30 am

The Road layer for the editors, made by editors.
Please click here to install it (new Repository since 28/03/2016, v. 3.0)

Edit: New screenshots
Pasted image at 2016_06_18 04_28 PM.png
SVL - Default settings
(1 MiB) Downloaded 1877 times

Pasted image at 2016_06_18 04_29 PM.png
Official Street Layer
(1.03 MiB) Downloaded 1879 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 (edit: OLD) screenshots:
Highway.png
Highway, ramps and toll ramps
(1.93 MiB) Downloaded 5261 times

major.jpg
Major Highway, dirty road
(620.19 KiB) Downloaded 5266 times

parking private restriction.jpg
Parking, private, restrictions
(553.25 KiB) Downloaded 5262 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: 1341
Joined: Sat Jan 07, 2012 12:45 pm
Location: Italy, Marche
Has thanked: 326 times
Been thanked: 811 times

Re: [Script][Preview] Street Vector Layer

Postby Twister-UK » Thu Jul 09, 2015 1:36 pm

So long as Waze continue to keep their heads stuck in the sand apparently not listening to any of the (mostly valid) criticisms of the new road layer, then this script could become very important to quite a few editors, myself included, and it's something I would have almost certainly ended up trying to write myself if no-one else had done so. So I'd say it's very definitely worth continuing with, and if there's anything I can help out with please don't hesitate to get in touch. PM has already been sent :D
Twister-UK
Beta tester
Beta tester
 
Posts: 2828
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 423 times
Been thanked: 2509 times

Re: [Script][Preview] Street Vector Layer

Postby steveningelbrecht » Thu Jul 09, 2015 2:21 pm

Looking forward to the script ;-)
steveningelbrecht
Waze Global Champs
Waze Global Champs
 
Posts: 6259
Joined: Wed Aug 01, 2012 3:11 pm
Location: Belgium
Has thanked: 1198 times
Been thanked: 1225 times

Re: [Script][Preview] Street Vector Layer

Postby bedo2991 » Thu Jul 09, 2015 3:15 pm

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 5194 times
bedo2991
Waze Global Champs
Waze Global Champs
 
Posts: 1341
Joined: Sat Jan 07, 2012 12:45 pm
Location: Italy, Marche
Has thanked: 326 times
Been thanked: 811 times

Re: [Script][Preview] Street Vector Layer

Postby sketch » Thu Jul 09, 2015 4:43 pm

Very nice! Perhaps a little decluttering of the road names ;)

[ img ]

[ img ]

Looking forward to the color change panel.

Also, I know not everyone likes this feature of the new road layer, 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.
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6133
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1584 times
Been thanked: 2133 times

Re: [Script][Preview] Street Vector Layer

Postby kdevries » Thu Jul 09, 2015 8:27 pm

I have tried it. At first sight it looks good.
kdevries
Waze Global Champs
Waze Global Champs
 
Posts: 2559
Joined: Thu Jan 05, 2012 10:28 pm
Location: Friesland, The Netherlands
Has thanked: 1248 times
Been thanked: 644 times

Re: [Script][Beta] Street Vector Layer

Postby bedo2991 » Thu Jul 09, 2015 10:27 pm

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 5116 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 5113 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: 1341
Joined: Sat Jan 07, 2012 12:45 pm
Location: Italy, Marche
Has thanked: 326 times
Been thanked: 811 times

Re: [Script][Beta] Street Vector Layer

Postby sketch » Fri Jul 10, 2015 1:08 am

Very slick using the attribution bar to change ;) The only problem, you can't change colors with satellite imagery turned off! :o
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6133
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1584 times
Been thanked: 2133 times

Re: [Script][Beta] Street Vector Layer

Postby papok » Fri Jul 10, 2015 2:42 am

Mi first impressions.

- At zoom level 3 the streets are not shown. I understand why (you cannot fetch the data), may be by scanning at zoom level 4...

- Street names hide arrows to many times (on ortogonal, regular, cities.)

- Would be nice to be able to change the width of the roads.

- Overal looks great! (I hope this will help me with the problem I have with openlayers tiles ,not only on Waze map, that for an unkown reason my computer sometimes fails to download)
papok
Waze Local Champs
Waze Local Champs
 
Posts: 889
Joined: Fri Oct 02, 2009 9:36 am
Location: Buenos Aires, Argentina
Has thanked: 138 times
Been thanked: 330 times

Re: [Script][Beta] Street Vector Layer

Postby sketch » Fri Jul 10, 2015 2:46 am

papok wrote:- Would be nice to be able to change the width of the roads.

You can do this – just change the number in the configuration panel.
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6133
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1584 times
Been thanked: 2133 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users