[Script] WME Road Width Helper (WRWH)

After fighting a little bit with the WME’s UI, here is a simple script that helps inputting the road width values.

Installation link: https://github.com/bedo2991/wme-road-width-helper/releases/latest/download/release.user.js

Instructions

  • Select one or more one-way segments.
  • Use one of the keyboard shortcuts listed below to change the segments’ lane width.

The first time you use a shortcut, a preference panel appears on the WME. There you can set a value for the lane width to be used every time a shortcut gets pressed. When empty, the WME’s default lane-width for the selected road type gets used.

Default Shortcuts

  • 1 to 9 (not from the NumPad): set the selected segments as x lanes width.
  • 0 (not from the NumPad): remove all width-related lanes information from the selected segments.
    • increase the lanes width of 0.1m (fixed*)
    • decrease the lanes width of 0.1m (fixed*)

*You may change the numeric shortcuts in the WME’s key shortcuts panel. Plus and minus can’t be changed.

Known issues:

  • The preference panel can’t be moved.
  • It only supports one-way segments.
  • Values set in the preference panel are not persistent.

I am open to ideas and suggestions, but I am not planning to put too much effort in this script.

Recommended accessory script, to see the road width on the WME (SVL): https://github.com/bedo2991/svl/releases/latest/download/release.user.js

F.A.Q.
About this script:

  • “Apply default value” checkbox (enabled by default): when selected, the current WME’s default value gets inserted as the segment lane width. This assures that if the country-specific default values change, all values that you have inserted don’t change. This is also a clever choice for countries which have lane widths which are not related to the WME road type (i.e.: mapping stuff as major highway for routing…). When unchecked, if you try setting the same width as the current default, the input field is left empty (and Waze will use the road-type default value for your country).

About SVL:

  • The width that SVL shows includes the entire drawn segment, not just the colored part. For example, if the segment is a bridge, i.e. elevation > 0 (shown with 2 black lines at the edges), those lines are also part of the total segment width.
  • The width shown by SVL takes into consideration that Earth isn’t flat, so the width displayed should be rather accurate (if you don’t believe me, you can try it yourself on a place with a known size like a volleyball court).
1 Like

@WazingArch I can’t reproduce it / I can’t understand what you mean, maybe.
That checkbox mostly makes sense if you have the “Width” field set to “Waze default” (Empty).
When the “Apply default value” checkbox is disabled, the script tells WME to use the checkbox “default width”, if it’s checked, the script sets the current WME’s default value as the actual road width.

What I expect is when I use WRWH shortcut to input a number of lanes, the script to keep the option “Use default lane width” checked. Currently the script unchecks the option. This way if ever the default WME widths get updated, the box will be updated. It seems that the script is not working this way or perhaps I misunderstand it.Waze-Map-Editor (1).png

That’s a WME glitch. If you can’t type the lane width there it means it’s using the default one (and after you save the checkbox is shown as checked).

V. 0.4.3 is out!

  • Fix for the new WME selectionManager

V. 0.4.4 was released yesterday to fix the changes of the newest WME production release.
As today the WME was rollbacked, those fixes are now errors that make the script break.

I won’t be able to release a new version in the meanwhile. You may manually install V. 0.4.3 again and disable TM’s automatic updates for a while.

Hi @bedo2991 ,
is it possible that when the housenumber mode is active, to disable the listener?
With the script active it is possible to set Roadwith in Housenumber mode, when for example the cursor in the HN Bubble is not active. That causes that is not possible to save anymore.
Regards
Peter

Thanks, I am tracking it here. https://github.com/bedo2991/wme-road-width-helper/issues/1

It will either be fixed today or in September :smiley:

And… it was today.
V. 0.4.5 is out

  • Don’t set the road width while the editor is not allowed to edit.

Version 1.1.1 is out!

  • Fix: Increase/decrease lane width was not working as expected on B to A segments.#
  • Fix: SVL can now be detected properly (as soon as the new SVL version gets released, v. 6.2.5+)
1 Like