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 Reply
Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] WME Mobile Support - Firefox (0.3.5)

Post by Glodenox
This userscript augments the Waze Map Editor by providing additional styling for mobile devices. At the moment the aim is just to allow for mobile changes when you are provided a permalink by another community member.

This script requires a mobile browser that allows for extensions such as TamperMonkey to be added. Chrome for mobile currently doesn't allow extensions. The browsers I currently know of that support extensions are:
  • Firefox Mobile on Android
More will (hopefully) be added later. TamperMonkey also exists in some browser extensions, but I am under the impression that these use quite old browser rendering engines, which appear to be unable to load the WME properly. This is currently the biggest limitation for this script.

Please be aware that many (even basic) functionalities don't work yet. This is still a work in progress and better support for things like handling input fields are still to come.

Also, I'm fully aware of the WMEditor Lite apps. I just preferred using my own browser instead as that also allows me to install any other userscript alongside it (turns out that is supported), I prefer not to have too many apps on my phone and I think will be much easier to maintain (I wrote this in about 4 hours, just to give an idea). Both projects have their merits though!

https://tomputtemans.com/waze-scripts/i ... port-1.jpg

https://tomputtemans.com/waze-scripts/i ... port-2.jpg https://tomputtemans.com/waze-scripts/i ... port-3.jpg

There's also support for landscape orientation, where the desktop layout is more or less followed:

https://tomputtemans.com/waze-scripts/i ... port-4.jpg

Installation instructions
If you have a browser installed on your mobile device that supports extensions, make sure you have TamperMonkey installed. The menu list should now contain a TamperMonkey option.

For WME Mobile Support you should be able to install the script from Greasy Fork. There will be a big green install button which you will have to press to install the script. Do note that if you had the editor open before installing the userscript, you will probably first need to refresh the page.

TamperMonkey will occasionally check for new versions of these scripts. You will get a notification when a new version has been found and installed.

Feedback and suggestions
Any issues found can be reported at the GitHub project page or in this forum thread.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1568
Answers: 1
Answers: 1
Has thanked: 278 times
Been thanked: 946 times

POSTER_ID:17118915

1

Send a message
Last edited by Glodenox on Sun Mar 18, 2018 10:43 am, edited 4 times in total.
Belgium & Luxembourg Coordinator • Script Writing Community Coordinator
https://www.tomputtemans.com/images/WazeBelgium.pnghttps://www.tomputtemans.com/images/WazeWMEbeta.png

Post by Inactive user -1697532064-
This is really good. Thank you!
Inactive user -1697532064-
Wiki Master
Wiki Master
Posts: 1308
Has thanked: 549 times
Been thanked: 703 times
Send a message
Galaxy S20 FE on Mint
Retired SM Ohio
Then you will know the truth, and the truth will set you free.
-John 8:32

Post by AILe85
Hi,

I love this mobile support, promising !
Works on Samsung Galaxy Note 3 (Android 5.0) with Firefox.

Here's my short experience, to help improving it. First, it's slow, but usable with a little patience :D
Deselected all layers but roads and closures for first testing.

Tried several things (testing in French editor, prod version) :
  • portrait and landscape modes ok
  • full screen mode ok
  • 2 fingers zoom/unzoom ok
  • layer menu ok but difficult to get rid of (apparently need to select a segment to make it disappear? A single clic anywhere on the map isn't enough, nor a clic on the menu icon). Maybe screen is too small and finger too big :lol:
  • selecting one segment ok, but difficult to keep it selected, mostly when segment had a closure (?) : segment first appears selected (can see its properties for a second), but deselect immediately (it remains me of a bug that existed some time ago in wme)
  • editing segment properties, creating or modifying closure ok
  • little bug with full screen mode : as soon as keyboard appears, full screen mode seems disabled ; had to clic twice on full screen icon to get full screen again
A little regret : the "Show my location" icon is missing ?

So, my first feeling is : wme needs more than 6" display to be usable :lol:

Beginning to test on Samsung galaxy tab 2 (rom changed, I have to update it), will post later about my results if I manage ;)

Thanks for this work !
AILe85
Emeritus Local Champ
Emeritus Local Champ
Posts: 2080
Has thanked: 557 times
Been thanked: 455 times
Send a message

Post by carloslaso
Glodenox wrote:Also, I'm fully aware of the WMEditor Lite apps. I just preferred using my own browser instead as that also allows me to install any other userscript alongside it and is much easier to maintain (I wrote this in about 4 hours, just to give an idea). Both projects have their merits though!
WMEditor Lite has a scripts folder in the apk/ipa that loads any scripts I add in it (I only load JAI), it also monitors an Amazon S3 folder that checks if there is a more recent version and loads that one. You could add that functionality to your script, to load other scripts that are on a local folder, that's the way I load JAI.
carloslaso
Waze Global Champs
Waze Global Champs
Posts: 3300
Answers: 1
Has thanked: 729 times
Been thanked: 1225 times
Send a message

Coordinador de Comunidad en México / Foro MX
Supervisor Noroeste México

iPhone 15 Pro Max / iOS 17ß / Waze ß 4.x

Post by Glodenox
Ah, apparently extensions don't work on iOS as Apple requires Firefox to use Apple's version of the webkit rendering engine. Hadn't thought of that... Sorry about that! I'll clarify that in the main post.
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
Ah, I hadn't noticed that was possible, nice! I've removed that part now.

I just released a new version that allows you to zoom in and out by pinching the map. The controls provided by Waze didn't seem to work properly and this feels much more natural.
Additionally a fullscreen mode has been added which can be toggled with the new button in the bottom right corner of the map.

Please be aware this is still very much a work in progress. I'm aware of interfaces not being visible or impractical to use. I doubt I'll ever manage to support all WME functions on mobile devices, but we'll see how far we'll get.
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'm pretty certain it won't be related to your phone itself. Did you manage to install Firefox on your phone? Did you manage to install the TamperMonkey plugin on there as well? Can you see the script listed on the plugin page? Did you refresh the editor on your mobile device?
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
Yeah, there are still some issues with handling clicks within the map area. That's also why I had to remove buttons such as the 'move to my location' button. Clicking on them didn't do a thing due to these issues. Considering that having a location is one of the most important advantages of a mobile device, that's certainly something I want to include again :) I just haven't figured out what is happening to those clicks.

I hadn't yet noticed the difficulty to close the layers menu again. It disappears when you select another tab in the details screen (like the drives tab or so), but that's not practical. The reason why it does this is that the layers menu remains visible for as long as its button receives the focus. On a mobile device, that's the equivalent of hovering over a button. So you'll need to move the focus to something else to get the layers menu to hide again. I'll try to make it behave better though.

About the keyboard during fullscreen: I'm afraid that is either a bug in Firefox Mobile or a limitation of Android. Either way: that is out of my reach.
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
Just released a minor version that handles some changes in the toolbar buttons and it should be marginally easier to select a segment in this version (though it is still a pain). I think I might end up overriding the drawing style of segments to fix that, but don't expect that any time soon...
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 juliansean
Tampermonkey says it’s not supported for iOS Firefox.

[img]https://uploads.tapatalk-cdn.com/201803 ... 2d2d00.jpg[/img]


Sent from my iPhone using Tapatalk
juliansean
Country Manager
Country Manager
Posts: 1349
Answers: 1
Has thanked: 351 times
Been thanked: 379 times
Send a message
Sean Julian
CM
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS