Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Post by Twister-UK
2.43 adds Iain's suggestion to highlight *all* the segments which match the road and area name of the one currently selected, and also reintroduces an old friend sorely missed... yes, OS maps are back, and hopefully for more than just a fleeting visit.

On a slightly more annoying note, it appears the conversion tool I'm using to extract the name data from the new-style OS data files has become somewhat self-aware and has gained the ability to randomly ignore certain names in the data, causing them to then not show up in WME... I'm actively investigating this as a matter of urgency, and once I figure out just what the hell is going on I'll get the corrected data files pushed onto the server.


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Chrome packaged version: https://chrome.google.com/webstore/deta ... mdbdnmcfei
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.44 updates the setTimeout/setInterval calls to avoid runtime errors following recent Chrome/Tampermonkey updates

Firefox+Greasemonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Chrome packaged version: https://chrome.google.com/webstore/deta ... mdbdnmcfei
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.45 adds a "WME" button in the lower right corner of the roadworks.org map window.

If there is already a WME tab/window open (within the same browser), clicking this button will cause WME to recentre its own map view on the location currently being viewed on roadworks.org.

If no WME tab/window is available, clicking the button will open a new WME tab centred on that location, and subsequent clicks on the button will then recentre this tab provided it remains open.

If multiple WME tabs are opened, clicking the button will only recentre one of them - typically the one that was first opened.


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Chrome packaged version: https://chrome.google.com/webstore/deta ... mdbdnmcfei
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
It's actually the code used to hide the WMEOD draggable window when the layers menu is visible that's the problem - the changes to the latter meant the code wasn't detecting that the menu was hidden, and so defaulted to hiding its own window...

Anyhoo, 2.46 fixes this, so whilst WME itself might still be struggling with all of its own changes, this little corner of the scripting world can get back to business as normal ;)

Tampermonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
And before anyone notices, 2.47 fixes some lint errors that were re-introduced by 2.46 due to it having been built from a pre-release version of the 2.45 source :oops:

I've also taken the opportunity to remove the code that pointed the update link to greasyfork or the Chrome webstore based on the detected browser - as the webstore version is no longer being developed, there's no need for the link to point anywhere except greasyfork...

Tampermonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.48 reduces the number of 404 errors thrown when searching for name data in areas where none exists, provides additional information (road type/classification/PRN & TRN membership) for the highlighted segment, and automatically sets an alternate name for segments when the OS data contains bilingual (Welsh or Gaelic) names.

On this last change, when bilingual names are provided in the OS data, the non-English version is always given as the primary name, with the English version as the secondary. In the WMEOD search results list, the primary OS name is then associated with the standard radio button used to select that result, and the secondary name is associated with a second radio button immediately below this one. If the first radio button is selected and the name data applied to the segment, the primary segment name is set to the primary OS name, and the secondary OS name is set as an alt name. If the second radio button is instead selected, the primary segment name is set to the secondary OS name and the primary OS name is set as an alt name... Whenever you see a bilingual result appear, it's advisable to double-check with streetview to see which version of the name actually appears on the local road signage.


Tampermonkey version: https://greasyfork.org/scripts/1941-wme-to-os-link
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.49 adds some more segment information, improves the accuracy of matching names to segments, and takes bilingual names into account within NameCheck.

https://greasyfork.org/scripts/1941-wme-to-os-link
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Thanks, I'll look into that
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Took a while before I was able to replicate this - the segments I used to test the altname feature originally didn't have a city name set already, so the "Add alternate name" UI would always open up with the "None" checkbox already ticked, and WME never complained...

Investigating this has revealed that WMEOD currently completely ignores the city name setting when adding an altname, so not only does it fail to tick the None checkbox if no city name is being set, it also fails to clear it and add the city name if you've asked it to use a city name. All I can say about this glaring omission from the code is, umm, oops :oops: Expect a fix soon.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
2.50 correctly sets/clears city names when applying alternate names, and deletes any existing altnames on a segment before applying new name data...

https://greasyfork.org/scripts/1941-wme-to-os-link
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4683 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
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/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png