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 Bookmarks

Post by GizmoGuy411
This script was originally discovered in the French forums in the following post:
viewtopic.php?f=68&t=106612&hilit=WME+Bookmarks#p878107

While my original post here about the script included my Google assisted French to English translation, an English translation is now available at the script's host site.

Please see the following site for the latest version and authors' English Description of the script:
https://greasyfork.org/en/scripts/4515-wme-bookmarks

The following is the author's description of version .71
Sebiseba wrote:This script will create bookmarks. It adds a new tab.

Simply click a button to add to your bookmark in your list.
You can rename your bookmark and add a comment (comment icon), relocate and share with yours friends
If there are a comment, the icon changes to blue. A simple mouseover allow to read the comment.
Languages available : french, english & german


• V0.64/0.65 Server change (IP seemed to be blacklisted in some countries)
• V0.66 Compatibility after WME update
• V0.67/0.68 Bug fix on the detection of permalinks pasted in the search bar / Design v2
• V0.69 MPs/URs are opened when paste a permalink. Bug fix about layers
• V0.71 Compatibility after WME update / Bug fix about synchro

Description :
• Bookmarks : This is the list of your saved locations.
• Sharing : Here comes bookmarks that editors have shared with you. You can rename, relocate, comment ans remove sharing. Sync automatically on all accounts
• History : List of previous locations. This lists show only permalinks you pasted in the search bar.
• Backup : List of your bookmarks (format : CSV)
• Parameters : Here you can choose to use the script online or not. To apply the zoom and layers contained in the bookmarks and delete the data contained in the localstorage and / or remote server
I would suggest postings comments only in the original French thread English and in then French as a courtesy.
GizmoGuy411
EmeritusChamps
EmeritusChamps
Posts: 1470
Has thanked: 340 times
Been thanked: 345 times

POSTER_ID:871703

1

Send a message
Last edited by GizmoGuy411 on Thu Jul 05, 2018 5:51 pm, edited 4 times in total.

U.S. based Global Champ Emeritus
U.S. Local Champ
U.S. Country Manager
U.S. Great Lakes ARC: IL, IN, MI, OH, WI
(and past GLR RC)
AM: NW OH, NE IN, SE MI
Wiki Profile
Verizon: Google Pixel XL3 & iPad "3"

Post by G_W1Z
g1220k wrote: Fri Aug 25, 2023 7:18 pm I'm sorry but I can't find any problems caused by WME Bookmarks.
Bookmarks works for me without any problems.
I didn't realize I was on v1.00.6. I updated to v1.00.8 and it works fine now. Thank you :D
G_W1Z
State Manager
State Manager
Posts: 1135
Answers: 1
Has thanked: 2039 times
Been thanked: 439 times
Send a message
G_W1Z
Pennsylvania SM | New Jersey LAM | District of Columbia & Maine AM
USA Regions: NOR, MAR, NER
A phoenix out of the ashes...together building a more perfect map.
» Waze Etiquette | PA Wiki | Glossary | Places | Lanes | Shields | JSG | Scripts «
https://storage.googleapis.com/wazeoped ... anager.pnghttps://j.mp/2X2TtcVhttps://www.dropbox.com/s/3o2pi4wjn6w1s ... .jpg?raw=1https://www.dropbox.com/scl/fi/yezyes6g ... 0rem&raw=1

Post by GizmoGuy411
I have removed my English translations from the opening post of this thread to reflect the fact that an English description of the script is now available by the author at the script's host site instead.

Merci beaucoup, Sebiseba
GizmoGuy411
EmeritusChamps
EmeritusChamps
Posts: 1470
Has thanked: 340 times
Been thanked: 345 times
Send a message

U.S. based Global Champ Emeritus
U.S. Local Champ
U.S. Country Manager
U.S. Great Lakes ARC: IL, IN, MI, OH, WI
(and past GLR RC)
AM: NW OH, NE IN, SE MI
Wiki Profile
Verizon: Google Pixel XL3 & iPad "3"

Post by Glodenox
Heads-up: this script will be affected by an upcoming change within the WME objects: W.location will no longer exist in the next (or one of the next) versions of the WME. This script seems to use W.location.code four times, see this sticky for more information.
Glodenox
Waze Global Champs
Waze Global Champs
Posts: 1567
Answers: 1
Has thanked: 278 times
Been thanked: 945 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 herrchin
After the latest update, the Chrome console is showing an error of "Uncaught TypeError: Cannot read property '0' of undefined" any time the map is moved around, or if you use a bookmark to jump locations. Something may have changed with one of the event handlers being hooked into?

I noticed because one of my scripts was behaving oddly after the update, and after testing I found it would only error if WME Bookmarks was also loaded. My script hooks into moveend, afteraction, afterundoaction, and noActions.
herrchin
Country Manager
Country Manager
Posts: 333
Has thanked: 199 times
Been thanked: 161 times
Send a message

Post by iainhouse
KuniaKid wrote:Bookmarks and FU are conflicting with the pin for adding a bookmark. Anything you can do to alleviate issue?
It's wasn't me! :lol:

The WME Bookmarks PIN and the WMEFU Zoom bar are not conflicting. In fact, the very opposite is the case. I use WME Bookmarks myself, so I position the zoom bar low enough not to interfere with the pin.

In this case, another script is causing the problem: I'm guessing it's the script that has added a button with a red power symbol that is just visible in the top RH corner of your screenshot. I estimate that the Bookmarks PIN has been pushed downwards by the height of that button, so it's likely that that script is interfering with WME Bookmarks. ;)
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

Post by iainhouse
WME Map Nav Historic is still showing a serious bug/behaviour that I reported some months ago - on the French language topic, I think.

When zooming in/out, MNH will re-select segments/places that were previously selected, even if those items are invisible off-screen. This can cause these items to be accidentally included in a delete action. This has caught me out many times in the past. I've zoomed in to select & delete some segments, only to find I've also deleted a segment I was looking at 5 minutes previously and some distance away. After accidentally deleting several segments of a major highway, I had to stop using MNH.

Could you please either:
  • Fix the bug that allows MNH to reselect segments/places when you haven't clicked it's buttons
  • Disable completely the re-selection of map items by MNH (Bookmarks reselection is OK)
  • Add an option to disable MNH as part of Bookmarks
I had a look through the code to see if I could disable the MNH part for now - because I'm very dependent on Bookmarks, but cannot afford the danger of MNH. I couldn't see any easy way - but on the plus side I learned something new about mouse events that may help me with my own script. :mrgreen:

[EDIT] It's not just zooming that triggers it. I have nothing selected in WME - but every time I pan WME, MNH is reselecting the complex Scottish Loch I just spend 15 minutes re-drawing. I definitely don't want to delete that by accident!
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

Post by iainhouse
Hi Seb

I'm afraid the Browsing History function is still selecting/de-selecting segments when panning/zooming the map, even when "Allow objects selection from history" is not ticked.

As soon as I untick "Activate browsing history", the unwanted changes in selection stop happening immediately.
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

Post by iainhouse
Sebiseba wrote:
iainhouse wrote:Hi Seb

I'm afraid the Browsing History function is still selecting/de-selecting segments when panning/zooming the map, even when "Allow objects selection from history" is not ticked.

As soon as I untick "Activate browsing history", the unwanted changes in selection stop happening immediately.
Hey Iain,
Items are selected only if only if both are checked : 'Activate browsing history' and 'Allow objects selection from history'.
Currently, with each movement, I do a "W.selectionManager.unselectAll();". Maybe I must unselect only if 'Allow objects selection from history' is unchecked, not every time.
I actually went through the script and commented out every single select/unselect call and that did seem to resolve my problem. Now you've done an update, those comments will be nuked, so I'll try and see - if it still happens - if I can reproduce the problem properly. But having items deselect when panning definitely sounds like a bad thing to do. ;)
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

Post by iainhouse
WazeWrap is a library of common functions used by many other scripts. Nobody actually uses it directly, but if you use several scripts, there's a good chance one of them is using WazeWrap.
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