[Script] Live Map UR Layer v2.24 (20160202)

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.

Moderator: Unholy

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] Live Map UR Layer v2.5 (20140102)

Postby Szata76 » Tue Feb 11, 2014 9:57 pm

Is there any option to make a filter to show only that URs where I wrote some comments (or what I'm following)?
Hardware: LG G3 (D855) / OS: 5.0
Editor level: 5; Area: Magyarország / Hungary ● Corfu (GR)
feedthe.waze.hu: Country Feed Manager (Roadworks reporting)
facebook.com/waze.hu ● google.com/+WazeHUN ● wiki.waze.hu
Szata76
Waze Global Champs
Waze Global Champs
 
Posts: 1640
Joined: Fri Jun 10, 2011 5:07 pm
Location: EU, Hungary, Budapest
Has thanked: 277 times
Been thanked: 476 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby Twister-UK » Tue Feb 11, 2014 10:38 pm

Support for UR comments filtering will be included in the next release.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1929
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 256 times
Been thanked: 1501 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby Szata76 » Tue Feb 11, 2014 10:50 pm

Twister-UK wrote:Support for UR comments filtering will be included in the next release.


This is based on the text, or the submitted? I think the first won't be so good.
Thank You,

Tapatalked by SGS2
Hardware: LG G3 (D855) / OS: 5.0
Editor level: 5; Area: Magyarország / Hungary ● Corfu (GR)
feedthe.waze.hu: Country Feed Manager (Roadworks reporting)
facebook.com/waze.hu ● google.com/+WazeHUN ● wiki.waze.hu
Szata76
Waze Global Champs
Waze Global Champs
 
Posts: 1640
Joined: Fri Jun 10, 2011 5:07 pm
Location: EU, Hungary, Budapest
Has thanked: 277 times
Been thanked: 476 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby Twister-UK » Wed Feb 12, 2014 7:11 am

It should work the same way as the comment filters in URO+
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1929
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 256 times
Been thanked: 1501 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby Szata76 » Wed Feb 12, 2014 12:07 pm

Twister-UK wrote:It should work the same way as the comment filters in URO+

I think it's not adequate. I can't enter a word what is common in every comment so the filtering isn't successful.

Tapatalked by SGS2
Hardware: LG G3 (D855) / OS: 5.0
Editor level: 5; Area: Magyarország / Hungary ● Corfu (GR)
feedthe.waze.hu: Country Feed Manager (Roadworks reporting)
facebook.com/waze.hu ● google.com/+WazeHUN ● wiki.waze.hu
Szata76
Waze Global Champs
Waze Global Champs
 
Posts: 1640
Joined: Fri Jun 10, 2011 5:07 pm
Location: EU, Hungary, Budapest
Has thanked: 277 times
Been thanked: 476 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby Twister-UK » Wed Feb 12, 2014 3:27 pm

I'd prefer not to include filtering based on the comments text itself, as this would significantly increase the amount of data that LMUR needs to store, and it's already storing more than I'd like...
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1929
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 256 times
Been thanked: 1501 times

Re: [Script] Live Map UR Layer v2.5 (20140102)

Postby iainhouse » Sun Feb 16, 2014 1:32 am

[EDIT] This entire post can be ignored because the author has now provided this functionality and - of course - much better than me. :D

I have a couple of hacks for the LMUR script: a simple one that will hide closed URs on the Livemap and a more complex one that will change them to orange instead.

Please note: these are only for somebody who is confident altering an installed script - I'm not going to provide instructions (which I could only do for Chrome on Windows anyway). Also, I am not a genius like wot the bloke who wrote this script is. :lol: The second hack is inelegant because I couldn't work out how to use a variable or conditional for the colour. :oops:

Hide Solved URs

At line 294 of my script I have this line:
Code: Select all
if(ureq.markerObj.description != null) desc = ureq.markerObj.description;

Immediately after that line, add this line:
Code: Select all
if(ureq.markerObj.open == false) return true;


Turn Solved URs Orange

Bearing in mind I've hacked my version a bit already, somewhere close to line 600 you will find this code:
Code: Select all
         if(ureq.markerType == 1)
         {
            svgSrc += '<rect x="'+ureq.px+'" y="'+ureq.py+'" transform="rotate(45,'+ureq.px+','+ureq.py+')" width="10" height="10" style="fill:orange;stroke:blue;fill-opacity:'+fillOpacity+';stroke-opacity:1"/>';
         }

Change it to
Code: Select all
         if(ureq.markerType == 1)
         {
            if(ureq.markerObj.open == false)
            {
               svgSrc += '<rect x="'+ureq.px+'" y="'+ureq.py+'" transform="rotate(45,'+ureq.px+','+ureq.py+')" width="10" height="10" style="fill:orange;stroke:blue;fill-opacity:'+fillOpacity+';stroke-opacity:1"/>';
            }
            else
            {
               svgSrc += '<rect x="'+ureq.px+'" y="'+ureq.py+'" transform="rotate(45,'+ureq.px+','+ureq.py+')" width="10" height="10" style="fill:red;stroke:blue;fill-opacity:'+fillOpacity+';stroke-opacity:1"/>';
            }
         }


These are only temporary fixes. I have no doubt that soon (and not a Waze "soon"), these will be optional selections in the script with proper checkboxes in the interface.

[EDIT] This entire post can be ignored because the author has now provided this functionality and - of course - much better than me. :D
Last edited by iainhouse on Sun Feb 16, 2014 1:33 pm, edited 1 time in total.
Reason: superseded by script update
UK Country Administrator
AM: London (DELETED), S Wales
Waze 3.7.3 • iPhone 4S (iOS 6.1.3) • Chrome/W7x64
ImageImage
UK WikiWaze FAQ
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: 6432
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity
Has thanked: 1005 times
Been thanked: 3251 times

Re: closed URs

Postby dbraughlr » Sun Feb 16, 2014 2:32 am

[obsolete]
Last edited by dbraughlr on Sun Feb 16, 2014 7:33 pm, edited 1 time in total.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: [Script] Live Map UR Layer v2.6 (20140216)

Postby Twister-UK » Sun Feb 16, 2014 11:41 am

Taking longer than I'd like to add in support for UR comments, so 2.6 is an interim release which includes support for filtering solved URs and problems. When the solved filters aren't enabled, the markers for solved URs and problems are shown with a white circle background to differentiate them from the unsolved markers. The popup shown when you hover the mouse over the marker also now shows how long ago the UR/problem was resolved.


Firefox+Greasemonkey version: http://userscripts.org/scripts/show/150276
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1929
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 256 times
Been thanked: 1501 times

Re: closed URs

Postby iainhouse » Sun Feb 16, 2014 1:42 pm

dbraughlr wrote:If it works for you, you may edit your preceding post with the shorter code and I'll delete mine. If it doesn't work, I'll still delete mine.


Thanks for that. I realise why nothing I tried worked - I hadn't noticed I was editing a string quoted inside another string. I was using the wrong quotes to insert my variable in the middle. :oops:

I probably wouldn't have bothered altering my original hack. Inelegant as it was it was only a quick hack which has (unsurprisingly) been promptly superseded by a properly coded & better solution in the latest update from Twister-UK.

I'll remember your teachings, Master Yoda, next time I try to hack a script. :lol:
UK Country Administrator
AM: London (DELETED), S Wales
Waze 3.7.3 • iPhone 4S (iOS 6.1.3) • Chrome/W7x64
ImageImage
UK WikiWaze FAQ
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: 6432
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity
Has thanked: 1005 times
Been thanked: 3251 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: CedricvonDK, Jujuapika, russwd