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 Twister-UK
iainhouse wrote:Shrink the black bar at the top of the map
This bar was another gift to us from the Waze UI team. Nobody wanted it, it used up valuable map space and it interferes with at least one other script. :x I haven't worked out how to banish it yet, but at least I can make it smaller. :)
Only "tested" this quickly in the Firebug console and in WME Production, so no guarantees it'll work in Chrome or in WME Beta, or that it won't royally bugger up another script along the way, but it may be helpful as a starting point... I'm sure there's also a more elegant way to script the DOM node traversal from WazeMap in order to set all the parent element height styles, but I leave that as an exercise for the reader (as all the best sci/eng text books are legally obliged to mention at least once per chapter :D )

Code: Select all

document.getElementById("street-view-container").style.height="100%";
document.getElementById("street-view-container").childNodes[1].style.height="100%";
document.getElementById("WazeMap").style.height="100%";
document.getElementById("WazeMap").parentElement.style.height="100%";
document.getElementById("WazeMap").parentElement.parentElement.style.height="100%";
document.getElementById("WazeMap").parentElement.parentElement.parentElement.style.height="100%";
document.getElementById("WazeMap").parentElement.parentElement.parentElement.parentElement.style.height="100%";
document.getElementById("topbar-container").style.display="none";
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 3904
Has thanked: 549 times
Been thanked: 3323 times
Chris (not to be confused with Chris or Chris...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0300.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Oh yes, and if there are any other generic UI tweaks you want to adopt from URO+ (e.g. background colour alteration), feel free to shamelessly rip the relevant parts of the code and reuse them as you see fit.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 3904
Has thanked: 549 times
Been thanked: 3323 times
Chris (not to be confused with Chris or Chris...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0300.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
You may, or may not, also be interested in considering the effects of the following line of code...

Code: Select all

document.getElementsByClassName('save-popover-container')[0].getElementsByClassName('close-popover')[0].click();
...particularly if you're starting to get a tad irritated by the oh so cheery "Saved Successfully!" popup that blocks further editing for a few seconds after each save operation. I was planning to do something about this in the next URO+ release, but if you want to make use of it instead then be my guest.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 3904
Has thanked: 549 times
Been thanked: 3323 times
Chris (not to be confused with Chris or Chris...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0300.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
iainhouse wrote:It wouldn't surprise me in the slightest to find that the Waze UI team decided to move the zoom bar because "that's where we like it in RTL layout" - and a big middle finger to editors everywhere who don't use RTL. :evil:
Pretty much every time something in WME gets changed, I get the feeling it's due to someone in the WME dev team having what seems to them to be a "really great idea" and then refusing to acknowledge any criticism of said change, let alone accept that their idea might actually be, even just the tiniest bit, flawed. If there isn't at least one big fan of Steve Jobs within the senior dev team, I'd be quite surprised - their approach to product development and user feedback management reminds me all too often of the way the Jobs-era Apple would behave. And I don't mean that as a compliment...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 3904
Has thanked: 549 times
Been thanked: 3323 times
Chris (not to be confused with Chris or Chris...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0300.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
iainhouse wrote: My script actually never does nothing to the zoom bar & UR box. It either sets the CSS to put them on the left or on the left. But in RTL mode, setting the UR box to position "left:70px" does, indeed, put it almost entirely off the LH side of the screen. I had to increase it to "left:370px" just to get it back again!
RTL mode and the left/right offset values for absolute-positioned elements don't appear to follow the usual rules of sanity or logic, and you're therefore probably best off avoiding them entirely.

Note that the UR box is actually contained in its own element within panel-container, so a cleaner solution to moving the UR box appears to be to leave panel-container well alone and just manipulate the offset of the box element itself:

Code: Select all

document.getElementById('panel-container').children[0].style.left="70px";
This also works on MP and PUR boxes too...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 3904
Has thanked: 549 times
Been thanked: 3323 times
Chris (not to be confused with Chris or Chris...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0300.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by turbomkt
I have a 4k screen on my laptop and the browser is at 80% zoom. The layers menu is worthless without modification.
turbomkt
Coordinators
Coordinators
Posts: 1730
Answers: 2
Has thanked: 398 times
Been thanked: 381 times
--Mike
ARC for Southwest Region

Post by turbomkt
I'm saying that I have a high definition screen and stock WME Layers are still worthless. You need a BIG screen, regardless of pixel count, for WME Layers to fit. This is what I have in incognito mode on a 4K laptop display.
turbomkt
Coordinators
Coordinators
Posts: 1730
Answers: 2
Has thanked: 398 times
Been thanked: 381 times
Attachments
--Mike
ARC for Southwest Region

Post by turbomkt
I posted in the WME Release thread. viewtopic.php?f=8&t=291348
turbomkt
Coordinators
Coordinators
Posts: 1730
Answers: 2
Has thanked: 398 times
Been thanked: 381 times
--Mike
ARC for Southwest Region

Post by turbomkt
skubko wrote:There is still some issue with this script, when activated, satellite map disappears /it was the same with previous version/. I am using Chrome and Tampermonkey. When this script is disabled, satellite map background is back. When I enable and refresh, satellite image again disappears leaving me with gray-black background... Please fix this because I really like this script but with this issue I am not able to use it at all.

Thanks!
You probably have, but did you verify your area managers layer was off? Shift+A.
turbomkt
Coordinators
Coordinators
Posts: 1730
Answers: 2
Has thanked: 398 times
Been thanked: 381 times
--Mike
ARC for Southwest Region

Post by turbomkt
Mapman44 wrote:When adjusting geometry of segments it is often difficult to find the handle in the center of the segment needed to create a new node, especially when it is in the middle of the road name or the segment is quite long. Would it be possible to tweak that handle to make it more obvious?

Thank you so much for all you do with this script. It boosts my productivity greatly.
Justin wrote a script to enlarge the geo-handles. https://greasyfork.org/en/scripts/41293 ... eo-handles
turbomkt
Coordinators
Coordinators
Posts: 1730
Answers: 2
Has thanked: 398 times
Been thanked: 381 times
--Mike
ARC for Southwest Region