Scripts/WME Junction Node Fixer: Difference between revisions View history

imported>PesachZ
m (Reverted edits by Waztorage (talk) to last revision by PesachZ)
imported>Forumtestuser
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{:Scripts/Script subpage}}</noinclude>
#REDIRECT [[USA:Scripts/WME Junction Node Fixer]]
{{#ifeq:{{{summary|}}}|yes|<!--
## DO NOT EDIT ABOVE THIS LINE
## PLACE ALL SCRIPT CONTENT BELOW THIS LINE
## --><!-- VERY BRIEF SCRIPT SUMMARY GOES BELOW THIS LINE
## --------------------------------------------------------->
This script performs a handful of functions, triggered by the {{Key press|q}} key, fixing junctions and segments. It also tweaks the WME UI a bit.
<!--##----------------------------------------------------
## VERY BRIEF SCRIPT SUMMARY GOES ABOVE THIS LINE -->|<br><!--
## FULL SCRIPT DESCRIPTION GOES BELOW THIS LINE
##------------------------------------------------------->
 
by {{Username|bgodette}}
 
Junction Node Fixer has several features. The primary focus of JNF is that it overloads the 'q' (disallowAllTurns) [[keyboard shortcut]] to preserve existing turn restrictions. 'Overloading' means that it takes over all functionality of the 'q' hotkey only. The 'q' keyboard shortcut performs the following actions
* Fixes any self and reverse connectivity issues
* Fixes closed loop roads (by splitting into two segments with a joining junction)
* Terminates dead-ends with a junction
* Makes dead-ends two-way (only if both ends of the segment are visible)
* Sets the Type of a roundabouts using lowest of two highest rule and sets country/state if needed
* For UK sets Type of roundabouts using highest type excluding Freeway rule.
* Does a traditional 'qw' (clears reverse connectivity, and locks turns)
* Causes the turn arrows to refresh (the side effect of 's' but without the shifting).
 
Since you end up with the same turns restricted, that means you need to press 'w' if you really want all turns allowed. This is why it overloads 'q' instead of 'w'. Ultimately this will be a separate hotkey that's editable through WME's '?' interface.
 
JNF also:
* Saves the state of WME's ShowAllTurns, ShowTurns, and Full-screen mode across Refresh/F5/Permalink.
* Forces data model reload after successful save.
 
This has been tested only in Chrome; it has been reported to work in Firefox with GreaseMonkey.
 
<!-- PLACE ALL SCRIPT DESCRIPTIONS ABOVE THIS LINE. DOWNLOAD LINKS GO BELOW -->
 
↓ {{U|'''DOWNLOAD'''}} ↓
* [http://chrome.google.com/webstore/detail/wme-jnf/dhnjmbmlldgfomcdmflifibpappdadcm Chrome extension now available]
 
{{Clear}}
{{ForumLink
|http://www.waze.com/forum/viewtopic.php?t=35237}}
 
<!-- PLACE CATEGORIES BELOW THIS LINE -->
<noinclude>[[Category:Script Subpage]]</noinclude>}}

Latest revision as of 18:18, 8 January 2022