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 Glodenox
I'd still like to improve the controls to add the image, but adding those without fighting with the existing WME controls is a bit difficult. For now those buttons should suffice though :)
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
iainhouse wrote:Would it be possible to add some buttons for finer adjustments to the image size when aligning it?
The buttons already allow for finer adjustments the more you are zoomed in :) They basically scale with the zoom level of the map. Only the rotation buttons keep working in multiples of 0.5 degrees at all times. I've tried several small and big images and that always worked well enough. It's not always possible to have a 100% match, but it should be good enough to draw roads or add places.
iainhouse wrote:An opacity slider or control during alignment might be useful too. :mrgreen:
An opacity slider already becomes available in the image overlays tab after you've selected an image to align. Perhaps you moved to another tab and didn't notice it that way? I decided to leave the opacity slider and parent map selector there as they were already present there for later adjustments.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
The only thing the script currently doesn't allow is stretching images in a horizontal or vertical way only. But I'm not certain whether I should try to add that as such images generally can't be relied on to accurately draw roads on the map.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
Has the English (GB) identifier changed again then? :( At least it's consistent now. I'll get it fixed later today.

I could provide a sensitivity slider below the controls, though I've always seen those controls as a temporary solution anyway. My current train of thought is to add handles to the image that allow you to resize/rotate/transform it, but make the buttons show up in a corner of the map whenever you've zoomed in on the image so much that you can't use those handles any more to adjust the image. I know that it's possible to implement this and mostly know how to do it. I just need to check how practical it would be to use.

I had thought about adjusting the image after it has been attached, but I couldn't find any often occurring use case that warrants the changes in the work flow that would be needed. Allowing adjustments later on would also make it slightly harder for me to implement an alternative way of aligning the image to the map, but I'd rather not talk about that yet before I've actually tried it out.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
Version 0.8.1 is out now.
This version includes the en-GB language strings bugfix and adds a one-time warning message about which data sources are allowed to be used in the Waze map.

I had reasoned that this script would most likely not be used by lower leveled editors who aren't aware yet about which data sources are fine to use and which aren't, but just to be on the safe side I've added a one-time warning that can't be clicked away immediately that explains which sources are safe to use and which aren't. Please note that you won't get to see this warning message if you are rank 4 or higher already.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
Version 0.8.2 has just been released.
This version fixes the issue with the script activation with a missing trailing slash in the URL and adjusts the link used at the version to point to this topic instead of to GreasyFork.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
Version 0.8.3 has been released. This includes a fix for a breaking issue in beta WME and some improvements to how the script works if the WME is using a language other than English.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
I haven't said I wouldn't do them. I just said I currently don't see that functionality as a priority ;)
When I get around to implementing what I have in mind, you should be able to stretch the image any way you want. Just know that I won't even be using the Waze soon™ indication for it as it might take me even longer than that to get started on it.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
voludu2 wrote:While I am attempting to adjust the image, If I use the "-" control, the image I am trying to overlay disappears, and I cannot find it again. Adjusting opacity makes no difference.

Is there something I can do to bring it back?
Hmm, I haven't had it happen that an image really disappears, but I do notice that when you are zoomed out, the minus button for some reason makes the image a LOT smaller in one click. I intended to have the minus and plus buttons decrease and increase the size in the same amounts, so something seems to go wrong there. Perhaps that is what you experienced?

If not: have you looked in the web console of your browser for any error messages when this occurs? (Firefox: Ctrl+Shift+K, Chrome: Ctrl+Shift+i > "console" tab)
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
Weird. It still shows up fine here. I had prepared almost all of my scripts for the new WME design in advance and this one didn't even need any changes.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png