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 by PesachZ
bedo2991 wrote:Version 1.2
  • In the preference menu you can choose whether the layer should be enabled on startup or not.
  • Tunnels are slightly lighter.
  • (from the prev. version, but I forgot to write it) "Street vector layer" is added in the attribution bar.
Couldn't reproduce the "new line" problem in the exporting/importing settings.
it must be one of the settings I have which I changed since my original posted export above is causing it, because when I export now manually, I'm getting the same error.

This is a direct copy of the export string from 1.2

Code: Select all

{"version":"1.2.1","clutterCostantNearZoom":"350","clutterCostantFarZoom":"410","streets":[null,{"strokeColor":"#fefde8","outlineColor":"#000","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#fdfba8","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#676ec6","strokeWidth":"6","strokeDashstyle":"solid"},{"strokeColor":"#b3bdb5","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#b1ae9b","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#42a1bd","strokeWidth":"5","strokeDashstyle":"solid"},{"strokeColor":"#69c288","strokeWidth":"4","strokeDashstyle":"solid"},{"strokeColor":"#847347","strokeWidth":"3","strokeDashstyle":"solid"},null,{"strokeColor":"#858585","strokeWidth":"2","strokeDashstyle":"dash"},null,null,null,null,{"strokeColor":"#86afab","strokeWidth":"3","strokeDashstyle":"dashdot"},{"strokeColor":"#6a6a6a","strokeWidth":"2","strokeDashstyle":"dash"},{"strokeColor":"#b7bb80","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#ffffff","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#000000","strokeWidth":"3","strokeDashstyle":"longdash"},{"strokeColor":"#aaaaaa","strokeWidth":"3","strokeDashstyle":"solid"}],"red":{"strokeColor":"#ff0000","strokeWidth":"3","strokeDashstyle":"solid"},"roundabout":{"strokeColor":"#111","strokeWidth":1,"strokeDashstyle":"dash"},"toll":{"strokeColor":"#25f5fd","strokeWidth":"2","strokeDashstyle":"solid"},"closure":{"strokeColor":"#ff0000","strokeWidth":"8","strokeDashstyle":"dash"},"restriction":{"strokeColor":"#efc02e","strokeWidth":"2","strok
eDashstyle":"dash"},"arrowDeclutter":"10","labelOutlineWidth":"3","disableRoadLayers":true,"startDisabled":false}
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
bedo2991 wrote:Script updated to version 1.3 (requires preferences update)
Changelog
Speed limits!
  • See new options in the Speed limits section in the menu.
  • Show the segments' speed limits using colors
  • Show the segments' speed limits appending it to the street names (this method supports showing two different speedlimits A->B, B->A)
Again I had the issue I copied the JSON string from the update popup, but when I try to import it,it fails. I'm including the exact string I copied below.

Code: Select all

{"version":"1.2.6","clutterCostantNearZoom":"350","clutterCostantFarZoom":"410","streets":[null,{"strokeColor":"#fefde8","outlineColor":"#000","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#fdfba8","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#676ec6","strokeWidth":"6","strokeDashstyle":"solid"},{"strokeColor":"#b3bdb5","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#b1ae9b","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#42a1bd","strokeWidth":"5","strokeDashstyle":"solid"},{"strokeColor":"#69c288","strokeWidth":"4","strokeDashstyle":"solid"},{"strokeColor":"#847347","strokeWidth":"3","strokeDashstyle":"solid"},null,{"strokeColor":"#858585","strokeWidth":"2","strokeDashstyle":"dash"},null,null,null,null,{"strokeColor":"#86afab","strokeWidth":"3","strokeDashstyle":"dashdot"},{"strokeColor":"#6a6a6a","strokeWidth":"2","strokeDashstyle":"dash"},{"strokeColor":"#b7bb80","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#ffffff","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#000000","strokeWidth":"3","strokeDashstyle":"longdash"},{"strokeColor":"#aaaaaa","strokeWidth":"3","strokeDashstyle":"solid"}],"red":{"strokeColor":"#ff0000","strokeWidth":"3","strokeDashstyle":"solid"},"roundabout":{"strokeColor":"#111","strokeWidth":1,"strokeDashstyle":"dash"},"toll":{"strokeColor":"#25f5fd","strokeWidth":"2","strokeDashstyle":"solid"},"closure":{"strokeColor":"#ff0000","strokeWidth":"8","strokeDashstyle":"dash"},"restriction":{"strokeColor":"#efc02e","strokeWidth":"2","strok
eDashstyle":"dash"},"arrowDeclutter":"10","labelOutlineWidth":"3","disableRoadLayers":true,"startDisabled":true,"showSLcolor":true,"
showSLtext":true}
I was able to get the import to work by removing two line breaks at the end like this manually:

Code: Select all

{"version":"1.2.6","clutterCostantNearZoom":"350","clutterCostantFarZoom":"410","streets":[null,{"strokeColor":"#fefde8","outlineColor":"#000","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#fdfba8","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#676ec6","strokeWidth":"6","strokeDashstyle":"solid"},{"strokeColor":"#b3bdb5","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#b1ae9b","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#42a1bd","strokeWidth":"5","strokeDashstyle":"solid"},{"strokeColor":"#69c288","strokeWidth":"4","strokeDashstyle":"solid"},{"strokeColor":"#847347","strokeWidth":"3","strokeDashstyle":"solid"},null,{"strokeColor":"#858585","strokeWidth":"2","strokeDashstyle":"dash"},null,null,null,null,{"strokeColor":"#86afab","strokeWidth":"3","strokeDashstyle":"dashdot"},{"strokeColor":"#6a6a6a","strokeWidth":"2","strokeDashstyle":"dash"},{"strokeColor":"#b7bb80","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#ffffff","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#000000","strokeWidth":"3","strokeDashstyle":"longdash"},{"strokeColor":"#aaaaaa","strokeWidth":"3","strokeDashstyle":"solid"}],"red":{"strokeColor":"#ff0000","strokeWidth":"3","strokeDashstyle":"solid"},"roundabout":{"strokeColor":"#111","strokeWidth":1,"strokeDashstyle":"dash"},"toll":{"strokeColor":"#25f5fd","strokeWidth":"2","strokeDashstyle":"solid"},"closure":{"strokeColor":"#ff0000","strokeWidth":"8","strokeDashstyle":"dash"},"restriction":{"strokeColor":"#efc02e","strokeWidth":"2","strokeDashstyle":"dash"},"arrowDeclutter":"10","labelOutlineWidth":"3","disableRoadLayers":true,"startDisabled":true,"showSLcolor":true,"showSLtext":true}
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
updated WME colors for Fwy and PS for those interested.

Code: Select all

{"version":"1.4","clutterCostantNearZoom":"350","clutterCostantFarZoom":"410","streets":[null,{"strokeColor":"#fefde8","outlineColor":"#000","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#f0ea58","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#c577d2","strokeWidth":"6","strokeDashstyle":"solid"},{"strokeColor":"#b3bdb5","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#b1ae9b","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#42a1bd","strokeWidth":"5","strokeDashstyle":"solid"},{"strokeColor":"#69c288","strokeWidth":"4","strokeDashstyle":"solid"},{"strokeColor":"#847347","strokeWidth":"3","strokeDashstyle":"solid"},null,{"strokeColor":"#858585","strokeWidth":"2","strokeDashstyle":"dash"},null,null,null,null,{"strokeColor":"#86afab","strokeWidth":"3","strokeDashstyle":"dashdot"},{"strokeColor":"#6a6a6a","strokeWidth":"2","strokeDashstyle":"dash"},{"strokeColor":"#b7bb80","strokeWidth":"3","strokeDashstyle":"solid"},{"strokeColor":"#ffffff","strokeWidth":"3","strokeDashstyle":"dash"},{"strokeColor":"#000000","strokeWidth":"3","strokeDashstyle":"longdash"},{"strokeColor":"#aaaaaa","strokeWidth":"3","strokeDashstyle":"solid"}],"red":{"strokeColor":"#ff0000","strokeWidth":"3","strokeDashstyle":"solid"},"roundabout":{"strokeColor":"#111","strokeWidth":1,"strokeDashstyle":"dash"},"toll":{"strokeColor":"#25f5fd","strokeWidth":"2","strokeDashstyle":"solid"},"closure":{"strokeColor":"#ff0000","strokeWidth":"8","strokeDashstyle":"dash"},"restriction":{"strokeColor":"#efc02e","strokeWidth":"2","strokeDashstyle":"dash"},"arrowDeclutter":"10","labelOutlineWidth":"3","disableRoadLayers":true,"startDisabled":true,"showSLcolor":true,"showSLtext":true,"hideMinorRoads":false}
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
TheLastTaterTot wrote:
bedo2991 wrote:
TheLastTaterTot wrote:after another script took the alt+l shortcut

Who is this bad guy? :evil:
LOL rickzebel's new WME Lock Level highlighter. I don't even use the add-on, so I now greatly regret having installed it, since I can't get the alt+l shortcut back for the Streets Vector Layer.
Did you try uninstalling the Rick script then reinstalling SVL, and see if it defaults back to using alt+l?

Sent from Android using Tapatalk
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
TheLastTaterTot wrote:
PesachZ wrote: Did you try uninstalling the Rick script then reinstalling SVL, and see if it defaults back to using alt+l?
I have, but it doesn't work. I think there may be a cookie or something of that sort that has saved my shortcut keys... To get alt+l back for Street Vector Layer, I would have to reset all my shortcuts to the default.
You can try to manually edit the browser local storage the setting I have is in the key

Code: Select all

keyboardShortcuts
, and in there the value for SVL I have is

Code: Select all

"toggleStreet(Vector)":"4,76",
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
TheLastTaterTot wrote:That has been what I was looking for! Where do I find that?
You need a way to edit the browser local storage. I use an extension which makes it really simple.
HTML5 Storage Manager All in One
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
andylaode wrote:
PesachZ wrote:
TheLastTaterTot wrote:That has been what I was looking for! Where do I find that?
You need a way to edit the browser local storage. I use an extension which makes it really simple.
HTML5 Storage Manager All in One
teach us on how to do it... i face the same problem as patti
  1. Install the chrome extension HTML5 Storage Manager All in One
  2. Open WME
  3. Click the orange stack icon on the right side of the omnibox address bar
  4. choose the Storage tab and the local storage button
  5. scroll down the list of keys till you find keyboardShortcuts (it was near the bottom of the list for me)
  6. click edit on the right side of the value column
  7. look through the text in the value column till you find the setting for SVL, it looks like this (the numbers may be different if your shortcut is set to something different than Alt+L)

    Code: Select all

    "toggleStreet(Vector)":"4,76",
    If you currently have "none" by the shortcut it may look like this,

    Code: Select all

    "toggleStreet(Vector)":"0,-1",
  8. If there are other numbers in there, replace them with "4,76", if the entire string is not in there at all, copy it from above and paste it in the list.
  9. Click confirm on the right side
  10. Reload WME (the whole page, not just the layers)
  11. Try pressing Alt+L to toggle the SVL script.
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
TheLastTaterTot wrote:This is one of those times I wish there was an option to favorite a post so I can come back to it later when I need it. :D I suppose a bookmark should suffice.
Glodenox wrote:And at the same time it would probably be best to wrap the whole script inside a function to prevent a collision of function names or variables with other scripts (which seems very likely due to the very generic function names). It's not that hard to do as it won't impact your script:

Code: Select all

(function() {
  // All function and variable declarations go in here as they are now
})();
For the console issue, I personally use a different function for that:

Code: Select all

function log(obj) {
  if (localStorage.svlDebug) { // just a suggestion, feel free to do something else
    console.log(obj);
  }
}
Also, there is a global variable svlAttempts that could be put as a var at the top of the script as it is not useful anywhere else (inside the function declaration I showed in this post). The risk of a collision with other scripts is very minimal though.

Just trying to make your script even better :)
Exactly, I have several bookmarks to validator posts as well for things like the complete list of checks, and typeRank lists

Sent from Android using Tapatalk
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
Glodenox wrote:I've already proposed some changes in the talk page of that article. I'll discuss this further with Timbones first before making any changes there.
In waze we don't monitor the talk page for change discussions, please post your proposal for a wiki update to the wiki update and discussion forum.

Sent from Android using Tapatalk
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum

Post by PesachZ
Yes still using this script. WME Street View Availability has already added it.
JustinS83 wrote:[Adding a script to the layer panel] has to be done manually for each script. Working on putting something in WazeWrap to make it easier (day job currently getting in the way of that ;) )
PesachZ
Wiki Master
Wiki Master
Posts: 4516
Has thanked: 1365 times
Been thanked: 1572 times
Send a message
https://s.waze.tools/gc.pngNYhttps://j.mp/1xPiWC8https://j.mp/1C9mUY2
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum