[Script] FC Highlights

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] FC Highlights

Postby AdreNalinGuY » Wed Jul 02, 2014 6:30 pm

Do you have have any progress in realizing this idea?
AdreNalinGuY
-----------------------------------
Jesus Christ is the Lord!
-----------------------------------
IPhone 6 plus
IOS Beta Tester.

Image
AdreNalinGuY
 
Posts: 19
Joined: Tue Mar 25, 2014 2:05 am
Has thanked: 0 time
Been thanked: 2 times

Re: [Script] FC Highlights

Postby AdreNalinGuY » Tue Jul 29, 2014 5:51 am

How is the work going folks? Anything ready for beta testing or not? :D
AdreNalinGuY
-----------------------------------
Jesus Christ is the Lord!
-----------------------------------
IPhone 6 plus
IOS Beta Tester.

Image
AdreNalinGuY
 
Posts: 19
Joined: Tue Mar 25, 2014 2:05 am
Has thanked: 0 time
Been thanked: 2 times

Re: [Script] FC Highlights

Postby AdreNalinGuY » Thu Aug 07, 2014 7:13 am

tonestertm wrote:
AdreNalinGuY wrote:How is the work going folks? Anything ready for beta testing or not? :D
There's a (mostly) unwritten rule in Developer forums that the best way to ask about progress is to not. :)

Sometimes it is considered acceptable to post something like, "Really looking forward to this" or some such. Remember, this is all volunteer labor. ;)


I know it is volunteer labor man. Everything about Waze is volunteer labor. You are coding. I am editing. It is not like I want to make money with your script )) Though, I understand your concerns. So I am really looking forward to this. ;)
AdreNalinGuY
-----------------------------------
Jesus Christ is the Lord!
-----------------------------------
IPhone 6 plus
IOS Beta Tester.

Image
AdreNalinGuY
 
Posts: 19
Joined: Tue Mar 25, 2014 2:05 am
Has thanked: 0 time
Been thanked: 2 times

Re: [Script] FC Highlights

Postby AdreNalinGuY » Wed Aug 13, 2014 5:55 am

Is there anyway to overlay the CalTrans map lines on to the Waze map, so we would not have to switch from one window to another when checking the FC?
AdreNalinGuY
-----------------------------------
Jesus Christ is the Lord!
-----------------------------------
IPhone 6 plus
IOS Beta Tester.

Image
AdreNalinGuY
 
Posts: 19
Joined: Tue Mar 25, 2014 2:05 am
Has thanked: 0 time
Been thanked: 2 times

[Script] FC Highlights

Postby bz2012 » Fri Jun 06, 2014 11:07 am

As I fight to convert areas from old mapping standard roads to FC mapping standards,
I was wondering how difficult it would be to 'recolor' the roads on the map so that
1) the colors 'match' the US FC maps colors for the equivalent types of WAZE map types.
objective: make the WAZE map, if properly configured, MATCH the FC map. That way, a quick glance at an area should show which segments need to be fixed.

2) optionally add 'grey scale density variations' to the 'white types' so that they are easy to distinguish from each other 'at a glance'.

Not sure if this would be best done as options in Color Highlights or a separate extension.
State Manager, Louisiana
bz2012
Map Raider
Map Raider
 
Posts: 1273
Joined: Wed Nov 23, 2011 4:32 pm
Location: Baton Rouge, La
Has thanked: 577 times
Been thanked: 210 times

Re: [Script] FC Highlights

Postby bz2012 » Fri Aug 08, 2014 10:24 am

Thank you for this script. I am sure that when a few kinks are worked out and some of us are educated in the proper use, it will be very useful!

I am currently trying to figure out how to get it to work and how to use it.

When I activate or deactivate the roads flash briefly with the highlight colors but go back to 'default' immediately.

If I turn off roads and activate/deactivate I get a brief glimpse of the FC'd colored segments.

Am I missing some magic words or arcane gestures?

When active, selected segments disappear except for their end points.
When active, 'shift-r' no longer toggles the roads layer. It must be turned on and off with the cursor.

Actions change when I pick a different 'left bar function' (like I go to 'Me' and go back to FC) or I alt tab to the forum window and then back to WME.
Now it is 'flashing' FC roads and the 'shift-r' is working.
Flashing continues even when I uncheck the FC roads enable box.
State Manager, Louisiana
bz2012
Map Raider
Map Raider
 
Posts: 1273
Joined: Wed Nov 23, 2011 4:32 pm
Location: Baton Rouge, La
Has thanked: 577 times
Been thanked: 210 times

Re: [Script] FC Highlights

Postby bz2012 » Sat Aug 09, 2014 9:33 am

doctorkb wrote:
With regards to the flashing: do you have WME Colors & Highlights or the Highlight Places script installed and enabled? At the moment, they collide and are likely to produce that symptom.

If you don't, I'd love to do what I can... first off, I'd suggest trying WMECH (alone) to see if it does the same thing.


I have WME color highlights. Will test with with it disabled. Thanks again.
EDIT: That stops the blinking.
State Manager, Louisiana
bz2012
Map Raider
Map Raider
 
Posts: 1273
Joined: Wed Nov 23, 2011 4:32 pm
Location: Baton Rouge, La
Has thanked: 577 times
Been thanked: 210 times

Re: [Script] FC Highlights

Postby bz2012 » Wed Feb 04, 2015 10:30 pm

Shifting:
davielde wrote:
bz2012 wrote:A recent WME update seemed to break something.
WME FC color highlights 0.6.2 (from greasy fork, installed via tampermonkey) seems to now conflict with WME toolbox 1.5.6
When WME FC color highlights is 'enabled' in tampermonkey, the 'Toolbox Highlight Layers' pop-up is empty.

Disabling WME FC colorhighlights 'fixes' the problem.

This is a different and unrelated script from WMECH. We can shift this discussion to that thread, but I am not able to replicate the issue in Chrome between the FC highlights and Toolbox. More details are needed.
https://www.waze.com/forum/viewtopic.php?f=819&t=95473


Not sure what has changed, (nothing that I know of, except perhaps WME(?!) but I can't reproduce the problem either now!
This morning, I did a 'binary search' by turning off half my extensions, and eventually narrowed down the problem to FC Highlights. Problem would go away when it was turned off.
Now, the problem is gone. I have not even rebooted my computer.

Sorry to have bothered you.
State Manager, Louisiana
bz2012
Map Raider
Map Raider
 
Posts: 1273
Joined: Wed Nov 23, 2011 4:32 pm
Location: Baton Rouge, La
Has thanked: 577 times
Been thanked: 210 times

Re: [Script] FC Highlights

Postby davielde » Fri Aug 08, 2014 9:06 pm

KuniaKid wrote:Also, a selected segment looses its' blue color just leaving the geometry nodes and the underlying color. This happens whether checkbox is selected or not.


The bottom two lines here are commented out. If you uncomment them, the WME light blue highlight for the selected segment should appear:

Code: Select all
// check that WME hasn't highlighted this segment
      var opacity = line.getAttribute("stroke-opacity");
      var lineWidth = line.getAttribute("stroke-width");
      //if (opacity == 1 || lineWidth == 9)
      //  continue;


Code: Select all
// check that WME hasn't highlighted this segment
      var opacity = line.getAttribute("stroke-opacity");
      var lineWidth = line.getAttribute("stroke-width");
      if (opacity == 1 || lineWidth == 9)
        continue;


I'm also noticing that it's not saving to localStorage, at least on Chrome.
Image
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan
davielde
Country Manager
Country Manager
 
Posts: 1217
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 466 times
Been thanked: 749 times

Re: [Script] FC Highlights

Postby davielde » Sat Aug 09, 2014 11:23 pm

After getting the okay from doctorkb, I made a few bug fixes and other changes.
The script still uses WMECH as a foundation, so in order to use FC Highlights, you'll need to disable WMECH. In v0.1, the flashing was caused by WMECH code changing the segment line color if it didn't match what was expected, and the same code in FC Highlights fought back... In v0.2, I commented out that part of the code, conceding victory to WMECH. If you enable both scripts, you will only see the FC colors flash once when you check the "Highlight FC Road Types" box. I don't really see a good way around that unless we eventually add FC to a new map layer as Timbones suggested or combine FC with WMECH.

Download v0.2

Version 0.2 Notes
1) Corrected issue with ramp highlighting
2) Corrected issue where selected segments would not display the standard WME light blue line
3) Added textboxes for the different FC road types for user custom input
4) Corrected issue with saving to localStorage and added FC road type textbox values (Chrome only)

While considering the change to add selections for each state, unless someone wants to hire a Waze intern to track down the colors for each state and keep them updated over time, it might be a better use of dev time to just let each user add their custom colors. We could eventually over time post the state colors here or in the wiki, but the user would control what colors display rather than the developers.

Colors don't need to be the hex color values (i.e. #ffffff)--you could just type "White" or any other common color. Please provide some feedback on this change since it was not part of the requested direction to add the states as a dropdown selection.

Image
Image
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan
davielde
Country Manager
Country Manager
 
Posts: 1217
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 466 times
Been thanked: 749 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users