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 iainhouse
I get what you mean. But you are only "currently using" a preset the moment you apply it.

Sticking with WME layers for the example, if you apply a preset that turns off your UR layers, then it's "current". But your next action might be to turn one of the layers back on. The preset will therefore no longer be current: leaving it highlighted would be inaccurate and monitoring any layer changes to unhighlight it when that happens isn't something I wanted to do. ;)
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
Version 1.1 is published on GreasyFork. :mrgreen:

First off are adjustments to the UI to deal with the absence of WME FixUI. When designing the UI for WME Presets, I made efforts to re-use formatting from the native WME UI, and early versions of the script worked well with & without FixUI running. But at some point that has apparently changed. This update, along with an update to FixUI which I published a short while ago, should see the scripts interact properly and this script work without FixUI.

Whilst making the above adjustments, I discovered that Firefox is rendering the WME UI slightly differently from Chrome - so there are additional changes for Firefox.

Lastly, whilst testing in Firefox (where I only have 2 scripts installed), I discovered that the Font Awesome icons I was using for renaming/re-ordering/deleting sets weren't actually part of the native WME. They must be loaded by some other script I have installed on Chrome. I therefore had to change to only use the icons loaded by WME.
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
RussPA wrote:Will this work in wne production and beta? It would be nice to save all your presets in production and then easily apply them to the same scripts in beta
jm6087 wrote:It does not appear to bring your presets over between Prod and Beta
It does work in Beta, but the settings aren't common between Production and Beta. This is also true for WME FixUI, my other script. The reason is simple to explain: Production and Beta WME are hosted on 2 different domains and the browser localStorage is keyed to the domain.

I did some quick Googling on the subject. Whilst it is possible to use a common storage for different subdomains of waze.com, it doesn't look very easy or elegant and it isn't something I'm likely to try.

However, I may consider implementing some sort of import/export of the settings via the clipboard. I know several other scripts implement similar functionality. It would be useful not just to transfer presets from Production to Beta, but also for copying settings between browsers on different computers (home/work).
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
jm6087 wrote:I was thinking your next script would have an acronym of PITA or something
PITA would have been a good acronym, but not for the reason you think! :lol:

WME FixUI's acronym does make a statement of my opinion about the designers of the WME UI. When they first moved to zoom bar without reason, I decided to take action. At one point, I hoped that we could get them to listen to reason and WMEFU could wither away. Instead, in the years since then, my contempt for the UI design team has only deepened and WMEFU has only grown in scope.

This script is not designed to fix something done by Waze. It isn't adding a function that I believe should be part of the native WME. I've created it as an "expert" tool to condense the multiple clicks involved in changing a bunch of settings into a single click; to automate something I do all the time (or at least I would if it wasn't so inconvenient without the script).

However, the script itself has been a PITA to me. If I had to quantify the amount of work I've put into this script so far, I would say that it breaks down as follows:
  • 10% - creating the functions to read/store/apply settings
  • 10% - deciding what to call it :lol:
  • 80% - creating an acceptable UI
I've been working seriously on this script for the last 4 weeks - and the last functional addition was over 2 weeks ago. The rest of the time has gone on making the buttons work and display properly. I didn't publicly release this script until I was happy that the UI was simple, clear and usable without detailed instructions.

As for the native WME UI: yes, making a good UI is a lot of work. It's not easy. But that's why you pay developers to create a good UI and it's what you should expect to get. And it isn't what we get. :(
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
abc1357 wrote:I'd like to request if it's possible to "link" the presets so that 1 click will set all 3.
I've had that request already from one of my Beta testers. ;)

It wasn't something I initially wanted to do. Each preset reduces clicks/actions from half a dozen to one. It doesn't seem to me to be too much trouble to then need 3/4 clicks to load 3/4 presets. However, since it was originally asked of me I've been thinking about it.

What I'm thinking is that you could "link" presets in the different sections by giving them the same name; then using CTRL+CLICK on one of them to apply all with the same name. Without actually having tried to write any code, I think that would be relatively easy to implement.

If you have any alternative ideas for how to load multiple presets with only one click/action, then I would like to hear it. But please don't come up with anything that requires adding extra menu items or even a menu hierarchy. I'm concerned that, once I start adding requested scripts, the menu might get quite big; and multi-level menus is just more new UI than I can bear to face. ;)
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
abc1357 wrote:I just found an issue with the WME Layers section. I have several scripts that add check boxes to the layers menu to enable/disable. The WME layers section does not manage them. Thanks.
From the first post:
Within the menu is a section for WME Layers, plus a section for every other script it handles. If you don't have that script installed, the section won't be shown. Please note that WME Layers presets only include "standard" WME Layers. Where a script (like Magic) adds a layer to the Layers menu, it will not be picked up by this script.
One of the reasons I decided to start on this script was the discovery that the WME Layers Manager is exposed in the data model. It makes it easy to read the native layer settings as a single data structure, store it, and apply the settings.

I'm aware that there are scripts that add layer checkboxes to the menu; some of them add a LOT of checkboxes. I decided not to try and handle all of them, as it would likely make that function a great deal more complicated. If I later have a request to handle one of the scripts that adds a whole batch of layers, I might consider it as a separate set type; but I don't currently intend to pick up any "added" layers.
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
AquaZR1 wrote:Installed and set up yesterday. Logged in this morning and it was showing red and my presets are gone. What would cause them not to save? Running on Chrome.
I don't know of anything that would stop the settings saving. In common with most WME scripts, this script picks up the window.unload event to save the settings. It's possible that if the browser crashed, or a shutdown forcibly closed it, that could prevent the save function running.

Other, possibilities are creating settings in Beta which aren't linked to Production (and vice versa) or using different browsers or computers. If you use an in-private tab, local storage changes are dumped on browser close.
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by jm6087
Thanks Iain,

Can't wait to see what this will do for me.
jm6087  
Waze Global Champs
Waze Global Champs
Posts: 9424
Answers: 21
Has thanked: 825 times
Been thanked: 2929 times
Send a message
Thanks,
John
US Global Champ



Post by jm6087
Already installed and trying out. My first thought is maybe something that points out which one is currently active.

Maybe a highlight


Or bolding


I am leaning toward bolding the active option
jm6087  
Waze Global Champs
Waze Global Champs
Posts: 9424
Answers: 21
Has thanked: 825 times
Been thanked: 2929 times
Send a message
Thanks,
John
US Global Champ



jm6087  
Waze Global Champs
Waze Global Champs
Posts: 9424
Answers: 21
Has thanked: 825 times
Been thanked: 2929 times
Send a message
Thanks,
John
US Global Champ