[Script] WME Enhanced Search

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.

Moderators: Unholy, bextein, Glodenox, JustinS83

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.

Re: [Script] WME Enhanced Search

Postby JustinS83 » Wed Jul 24, 2019 3:39 pm

Update: 2019.07.24.01

Fixes the bug with UR selection when following a WME URL
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1336
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 339 times
Been thanked: 2368 times

Re: [Script] WME Enhanced Search

Postby juliansean » Wed Jul 24, 2019 5:38 pm

Thank you Justin!
Sean Julian
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 963
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 448 times
Been thanked: 305 times

Re: [Script] WME Enhanced Search

Postby voludu2 » Wed Jul 31, 2019 11:28 am

Two suggestions for enhancement:
1) support marker=true in, just as it is supported when the URL is pasted into the browser address bar
2) support for the wmebr showpur / endshow to to open PURs. https://www.waze.com/en-US/editor?zoom= ... 07&endshow
Use case: loading WME + scripts takes too long, so I use WMEBR with a click, ctrl-C, ctrl-W, and paste
into the enhanced search window.

Thanks for considering these
[ img ]
[ img ]
USA Northeast Region Discord Chat
State Manager - Pennsylvania
Country Manager - USA and Thailand
Wiki Master, Global Mentor
utilitas, simplicitas, retentionis
voludu2
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 3069
Joined: Thu Jul 24, 2014 12:33 pm
Location: Chester County, Pennsylvania
Has thanked: 797 times
Been thanked: 1239 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Wed Jul 31, 2019 1:02 pm

voludu2 wrote:Two suggestions for enhancement:
1) support marker=true in, just as it is supported when the URL is pasted into the browser address bar

I don't believe there is a mechanism that can be triggered to display the marker - I believe it is only checked/displayed when the page is loaded, but I will check.


voludu2 wrote:2) support for the wmebr showpur / endshow to to open PURs. https://www.waze.com/en-US/editor?zoom= ... 07&endshow
Use case: loading WME + scripts takes too long, so I use WMEBR with a click, ctrl-C, ctrl-W, and paste
into the enhanced search window.

No, I won't support this. WMEBR's showpur/endshow is utilizing/relying on URO+'s implementation to display the PUR (URO+ is what adds and reads the showpur/endshow) and I do not like this implementation as it needlessly modifies the URL and adds extra parsing. WME Place Interface Enhancements as the "Automatically open PUR" option which works on normal WME URLs and can/should be used instead.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1336
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 339 times
Been thanked: 2368 times

Re: [Script] WME Enhanced Search

Postby voludu2 » Mon Aug 05, 2019 12:07 pm

Thanks for the info. I do like WMEBR for finding high-locked PURs in a state.
I had transitioned from URO+/ URcomments to URC-e, and would need to re-install URO+ in order to use WMEBR effectively for this purpose.
[ img ]
[ img ]
USA Northeast Region Discord Chat
State Manager - Pennsylvania
Country Manager - USA and Thailand
Wiki Master, Global Mentor
utilitas, simplicitas, retentionis
voludu2
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 3069
Joined: Thu Jul 24, 2014 12:33 pm
Location: Chester County, Pennsylvania
Has thanked: 797 times
Been thanked: 1239 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Mon Aug 05, 2019 12:52 pm

voludu2 wrote:Thanks for the info. I do like WMEBR for finding high-locked PURs in a state.
I had transitioned from URO+/ URcomments to URC-e, and would need to re-install URO+ in order to use WMEBR effectively for this purpose.

Or enable the aforementioned option in PIE and it will work.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1336
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 339 times
Been thanked: 2368 times

Re: [Script] WME Enhanced Search

Postby juliansean » Fri Aug 09, 2019 11:13 am

I have a minor bug to report. I have an Excel spreadsheet of PL's from UR's I am working. If a UR is closed but I still use my spreadsheet to copy and then paste into "enhanced search," the URL doesn't disappear from the search bar. If this happens too many times in a row (haven't found an exact number yet) when I finally get to a valid UR, "enhanced search" won't actually open the UR. I have to reload the page. I "think" if enhanced search was made to clear out the search bar every time whether the PL opened a UR or not, this would not be an issue.

***edit***

The search bar doesn't clear, even with a valid PL that pulls up a UR, if that UR is in the same screen frame as a previous UR.

http://prntscr.com/oqhv0f

If this isn't possible, no big deal. I am very capable of reloading a page. But, if this was an easy fix, I'd appreciate it. Thank you!

http://prntscr.com/oqhihw

Second picture is when a UR comes up then the search bar clears.

http://prntscr.com/oqhkdo
Sean Julian
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 963
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 448 times
Been thanked: 305 times

Re: [Script] WME Enhanced Search

Postby iainhouse » Wed Nov 20, 2019 11:05 pm

This script seems to be working after the latest WME update (one of the few!).

However, it is throwing an error on the Chrome console:
Code: Select all
Uncaught (in promise) TypeError: W.map.zoomTo is not a function
    at jump4326 (userscript.html?id=f8b8ae08-75e3-465f-932e-76c60923e55a:518)
    at parsePaste (userscript.html?id=f8b8ae08-75e3-465f-932e-76c60923e55a:290)
    at HTMLInputElement.readPaste (userscript.html?id=f8b8ae08-75e3-465f-932e-76c60923e55a:277)

That's when pasting a permalink into the Search box. Pasting a segment ID works fine. I haven't tried any other search types, so I'm not sure if any of them might be broken.

As long as it's still working, I won't worry too much, but you might want to look at it at some point. ;)
[ img ][ img ][ img ]
UK AdminsUK WikiWaze FAQWMEFU Script :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season
iainhouse
Country Manager
Country Manager
 
Posts: 10148
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity, with Waze HQ in the driving seat
Has thanked: 2672 times
Been thanked: 8295 times

Re: [Script] WME Enhanced Search

Postby juliansean » Thu Nov 21, 2019 2:40 pm

I am having an issue (and maybe I'm misunderstanding the script) where when a new editor asks for a downlock, and I copy their PL, enhanced search isn't just selecting the segment(s) but also allowing changes to my WME setup. In the past, ES would essentially strip &s=1234567890& from the pl, and it isn't doing that any more.

Thank you.

Example... https://www.waze.com/en-US/editor/?env=usa&lon=-96.57616&lat=33.13226&s=1630928343&zoom=6&segments=518202002,518202004 the $s=1630928343& from the editor's PL is no longer stripped in Enhanced Search
Sean Julian
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 963
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 448 times
Been thanked: 305 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Thu Nov 21, 2019 6:42 pm

juliansean wrote:I am having an issue (and maybe I'm misunderstanding the script) where when a new editor asks for a downlock, and I copy their PL, enhanced search isn't just selecting the segment(s) but also allowing changes to my WME setup. In the past, ES would essentially strip &s=1234567890& from the pl, and it isn't doing that any more.

Thank you.

Example... https://www.waze.com/en-US/editor/?env=usa&lon=-96.57616&lat=33.13226&s=1630928343&zoom=6&segments=518202002,518202004 the $s=1630928343& from the editor's PL is no longer stripped in Enhanced Search


ES doesn't even parse that part of the URL, sonit doesn't matter that it isn't stripped - ES won't mess with the layers except to turn on the segment or places layers if they aren't enabled and segments or places is found in the url
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1336
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 339 times
Been thanked: 2368 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: ramblinwreck_81, turnertr