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 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 Panel Swap (0.2.3)

Post by Cardyin
Hi all! I've taken over the maintenance of this script that was originally written by JJohnston84 and updated by SAR85.

Description:
This script allows a user to switch between the segment side-panel and the user side-panel (the one with all your tabs) while there are segments selected. This allows you to utilize scripts that have their UI in the side-panel, but might work with selected segments.

Current version: 0.2.2

Version History:
0.2.3 Fixed additional bug with CSS layers.
0.2.2 Fix bug that prevented clicking of WME links when no segment selected. Also, additional optimization of code.
0.2.1 Shifted location of the toggle button to prevent overlap with KML Prod/Beta toggle switch.
0.2.0 Fixed to work with latest WME release. Also, rework and optimization of code using jQuery syntax.

Installation:
Get the script here. You will need GreaseMonkey (Firefox) or TamperMonkey (Chrome) before you can install the script. If you are using an version older than 0.2.0, please uninstall the other version first.

To use:
Once you have a segment selected - you can click the small icon in the top right of your WME side-panel to toggle between the segment and user side-panels. Adding or removing selected segments will reset the view per normal WME behavior. This is particularly useful for scripts like WME Route Speeds that act on segments, but have their UI in the side-panel.

http://jjohnston.com/Waze/WmePanelSwap.png[/quote]
Cardyin
Map Editor - Level 4
Map Editor - Level 4
Posts: 59
Has thanked: 16 times
Been thanked: 71 times

POSTER_ID:17080483

1

Send a message
Last edited by Cardyin on Tue Jun 21, 2016 9:30 pm, edited 3 times in total.

Post by Cardyin
I shifted the location over to the left a little for now. I may put some code to put it back in the original position if it annoys people who don't have that toggle switch activated, but I'll see what feedback I get (if any).

Version 0.2.1 posted.

Cardyin
Cardyin
Map Editor - Level 4
Map Editor - Level 4
Posts: 59
Has thanked: 16 times
Been thanked: 71 times
Send a message

Post by Cardyin
Citeman,

I have the same setup as you and do not have any problems. I'm wondering if there is a conflict with another script that is running. Can you please try the following things to see what result you get?

1. When you hover over the link, do you get the expected behavior of the text becoming underlined and the cursor changing from a [pointy arrow] to [a hand with one finger pointed]?

2. If you right click on this link, can you "open link in new tab"?

3. Also, can you please give me the result of the following?
a. Right click on link.
b. [Left] click on copy "Copy link address"
c. Paste the result in your response post.

Thanks!

Cardyin
Cardyin
Map Editor - Level 4
Map Editor - Level 4
Posts: 59
Has thanked: 16 times
Been thanked: 71 times
Send a message

Post by Cardyin
Citeman,

I was finally able to reproduce the issue and updated the code. Version 0.2.2 released.

Cardyin
Cardyin
Map Editor - Level 4
Map Editor - Level 4
Posts: 59
Has thanked: 16 times
Been thanked: 71 times
Send a message

Post by Cardyin
Hi laurenthembprd,

It should be fixed now. Published version 0.2.3.

Cardyin
Cardyin
Map Editor - Level 4
Map Editor - Level 4
Posts: 59
Has thanked: 16 times
Been thanked: 71 times
Send a message

Post by citeman
Cardyin,

Thank you so much for working on this script. I think I might have found a bug, when I have this script activated, I cannot click on the Wiki, Forum, Status, and Keyboard links in the bottom left area of the WME. Thanks for looking into this.

CITEMAN

EDIT: I am using chrome on a Windows 10 PC.
citeman
State Manager
State Manager
Posts: 743
Answers: 1
Has thanked: 769 times
Been thanked: 304 times
Send a message
- CITEMAN
Remember to keep Wazing!

https://s.waze.tools/c5s.png https://j.mp/3aCaEGq https://storage.googleapis.com/wazeoped ... -01sml.png
Closure & Restrictions Fanatic

Post by citeman
When I hover over the the links I am getting nothing, like they are not there. I also tried turning off all scripts except Tampermonkey (so I could run your script) and that did not change anything. It is very strange.
citeman
State Manager
State Manager
Posts: 743
Answers: 1
Has thanked: 769 times
Been thanked: 304 times
Send a message
- CITEMAN
Remember to keep Wazing!

https://s.waze.tools/c5s.png https://j.mp/3aCaEGq https://storage.googleapis.com/wazeoped ... -01sml.png
Closure & Restrictions Fanatic

Post by dspille
Justin's changes do not work for me either. The changes keep panel swap from interfering with other scripts, but I am unable to see or select the panel swap button.
dspille
Country Manager
Country Manager
Posts: 416
Has thanked: 477 times
Been thanked: 139 times
Send a message

Post by hawkeygoal
Thanks for taking up maintenance of this script!

I installed the new version after going without this script for awhile. When I'm using it in conjunction with Keep My Layers, it appears the swap button is rendered partially atop the KML prod/beta switch. It'd be helpful if the panel swap button were rendered at least one button-width to the left to be clear of the KML control.

Thanks again.
hawkeygoal
State Manager
State Manager
Posts: 252
Has thanked: 91 times
Been thanked: 95 times
Send a message

Post by iainhouse
As far as I can see, Cardyin hasn't been on the forums for a while and he hasn't read a PM I've sent him. Hopefully he's just taking a break and will be back with us.

In the meantime, I'm aware the WME FixUI has often interfered with the controls of WMEPS. I've therefore decided to add the same function to WME FixUI with the control in a different location. More details are here.
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