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
turbomkt wrote:Justin uses one for RA Utility, right?
That's "just" a static window that can't be dragged around. But I guess that would be sufficient as well if I can condense the controls a bit. I'll play around with some of the ideas I've got for this.
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
JustinS83 wrote:Actually, it is draggable ;)
Weird. When I tried it before, I couldn't drag it around. It's working fine now.
My bad!
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've been playing around with the location of the controls, but eventually it felt best to me to just place the controls in the sidebar. That way most of the space remains on the map and then the opacity and parent layer fields aren't positioned weirdly compared to the other image overlay attributes.

I've just released version 1.4.0 of the script which has the adjusted controls, as well as the possibility to adjust an image overlay you've saved in the past. The button that adjusted only the name in the past will now open up the "Align image" step for that image overlay.

I've also been working a bit on making it possible to lock an image to a corner instead of the centre, but that isn't ready to release yet.

https://www.tomputtemans.com/waze-scrip ... ntrols.jpg
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Has thanked: 278 times
Been thanked: 946 times
Send a message
Last edited by Glodenox on Mon Jun 10, 2019 6:22 pm, edited 1 time in total.
Reason: Added a screenshot of the new layout for the controls
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Glodenox
You mean that the image disappears when you click on its name when the name is put in bold text (indicating that it is visible)? That is expected behaviour. That is how you're able to show and hide the images. It should always become visible if you click the edit button 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
Hmm, that is probably not going to be easy to do. Neither ECW or the TIFF format are supported within any modern browser. I'd say that including a whole JavaScript library (if an open source one exists) just to support those image formats is out of the scope of this userscript. I'd probably also need to look into the binary code to extract the coordinates contained within the file, which is really not something you want to do in JavaScript.

I'll create an issue for it in case browser support changes for these file formats, but I honestly don't see it happening any time soon (if ever) :?
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
Pretty much all scripts are broken at the moment ;) viewtopic.php?f=819&t=294063 If you install this helper userscript, most scripts should work again: https://greasyfork.org/scripts/391783-w ... map-object

I'll try to work on adjusting my scripts either this evening or tomorrow.
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 1.4.1 has been released with the fixes for the latest changes made by Waze.
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
Hmm, I think it would indeed be possible to do that if I were to use a canvas object instead of an image. But I'm a bit hesitant of supporting such features as I don't want to end up having to support all features that image editing software such as GIMP. I'll have to think about how far I would want to support that first.
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
Hmm, that shouldn't happen, indeed. I'll try to look into it tonight. Maybe I can identify a potential issue just by looking at that part of the code again.

I guess I should improve the error reporting in this script so any issues are much more visible than just printing a line in the web console.
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
It seems that the recent update of the WME requires some changes for the script to continue to work. Shouldn't take too long to fix.
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