[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.

Moderators: Unholy, bextein

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 Color Highlights - 1.81 Mar 2014

Postby sketch » Mon Jun 09, 2014 4:02 pm

doctorkb wrote:Given sketch's comments, I'm not sure I'm ready to entirely take this on, but there are a couple caveats I'd mention before going further with it.

Highlights merely overlays a colour, with a degree of transparency. I don't believe we can recolour the roads -- though we might be able to put some colour overtop to get it close to the FC map colours. Alternatively, we don't set transparency, and it blocks out street names...

I'm also assuming you mean that it basically colours the Waze map to match the colour scheme on the FC map, let's start with one state -- if you get me the colours (in HTML #xxxxxx format), I can look at making something simple (it would be a separate script) that adds that overlay. Once we have it working for one state, we could look at expanding it out.

Oh, some other hurdles: it's not a 1:1 match from type to class; a Waze Freeway can be in FC either Interstate or Other Freeway, for example. Also, some states color rural classes differently than urban (others use the same colors, but dashed lines, which is no big deal).

Without further ado, here are the colors for two sample states – Louisiana and Michigan

Louisiana
Freeway: #007aff (Interstate) and #ffba00 (Fwy/Exp)
Major Highway: #ff3511 (Principal Arterial)
Minor Highway: #39ad00 (Minor Arterial)
Primary Street: #be3eec (Major Collector) and #ffff3e (Minor Collector)

Michigan
Freeway: #1474fb (Interstate) and #a821e3 (Other Freeway)
Major Highway: #f73723 (Other Principal Arterial)
Minor Highway: #885a46 (Minor Arterial)
Primary Street: #fda929 (Major Collector) and #3da61c (Minor Collector)

Not sure what to do about FW and PS; maybe two alternating colors?
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6021
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1487 times
Been thanked: 2031 times

Re: [Script] WME Color Highlights - 1.81 Mar 2014

Postby doctorkb » Sun Jun 08, 2014 10:13 pm

sketch wrote:
bz2012 wrote: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.

There are 2 hurdles here:
  1. Each state uses its own color scheme.
  2. It would not account for US and state highways, although this could be programmed in for each state too.
Believe, though, that if I knew how to write one of these things, I would be all over this. :D



Given sketch's comments, I'm not sure I'm ready to entirely take this on, but there are a couple caveats I'd mention before going further with it.

Highlights merely overlays a colour, with a degree of transparency. I don't believe we can recolour the roads -- though we might be able to put some colour overtop to get it close to the FC map colours. Alternatively, we don't set transparency, and it blocks out street names...

I'm also assuming you mean that it basically colours the Waze map to match the colour scheme on the FC map, let's start with one state -- if you get me the colours (in HTML #xxxxxx format), I can look at making something simple (it would be a separate script) that adds that overlay. Once we have it working for one state, we could look at expanding it out.
doctorkb
Coordinators
Coordinators
 
Posts: 4055
Joined: Wed Nov 04, 2009 9:17 am
Location: Edmonton, Alberta, Canada
Has thanked: 621 times
Been thanked: 1605 times

Re: [Script] WME Color Highlights - 1.81 Mar 2014

Postby sketch » Fri Jun 06, 2014 3:41 pm

bz2012 wrote: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.

There are 2 hurdles here:
  1. Each state uses its own color scheme.
  2. It would not account for US and state highways, although this could be programmed in for each state too.
Believe, though, that if I knew how to write one of these things, I would be all over this. :D
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6021
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1487 times
Been thanked: 2031 times

Re: [Script] FC Highlights

Postby davielde » Wed Feb 04, 2015 10:39 pm

bz2012 wrote: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.

Thanks. I do not have this script enabled much anymore, but it seemed to behave okay for me with Toolbox enabled in Chrome. If it happens again, please post.
davielde
 
Posts: 1219
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 469 times
Been thanked: 757 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.
bz2012
Map Raider
Map Raider
 
Posts: 1485
Joined: Wed Nov 23, 2011 4:32 pm
Location: Baton Rouge, La
Has thanked: 1220 times
Been thanked: 276 times

Re: [Script] FC Highlights

Postby davielde » Fri Dec 05, 2014 5:02 pm

It would probably be a few weeks before anything gets released. Yes on 1. I can look into 2 and 3.
davielde
 
Posts: 1219
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 469 times
Been thanked: 757 times

Re: [Script] FC Highlights

Postby PesachZ » Thu Dec 04, 2014 11:34 pm

I haven't been following this thread closely, and didn't notice all the great work already accomplished here. I was discussing this earlier today and think I may have some useful suggestions.

1st I recommend also including streets (FC: Local)

2nd as mentioned earlier some Waze types may be used for multiple fc types (Fwy = interstate, fwy, and possibly other, Expwy) would it be possible to assign multiple colors to one type as thinner stacked lines or as a dashed line and alternate those colors as a dashed line (similar to the line in livemap closures overlay). If you can do this, it would be nice to have a color choice for each of the official FC types.

3rd goes along well with 2, a check box for each color to display as a dashed line. (NYS for example draws Principal Arterial as a dashed green line, so I'd put green as the color and check off dashed. This would be even nicer in concert with request 2, which could then display solid green for Principal arterial - expressway, and principal arterial- other freeway, and dashed green for principal arterial.

Thanks for considering these suggestions, hopefully they help and don't sound ridiculous.

PS I haven't installed this yet though I do plan on it, so I'm just going off the posted screen shots above.

Sent using Tapatalk for Android 4.4.2
PesachZ
Wiki Master
Wiki Master
 
Posts: 4401
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2235 times

Re: [Script] FC Highlights

Postby voludu2 » Mon Nov 17, 2014 4:44 pm

Cleaning my glasses again....
so many interfaces. so little brainpower.

Thanks
voludu2
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 2422
Joined: Thu Jul 24, 2014 12:33 pm
Location: Chester County, Pennsylvania
Has thanked: 502 times
Been thanked: 759 times

Re: [Script] FC Highlights

Postby davielde » Mon Nov 17, 2014 4:38 pm

voludu2 wrote:I am finding this quite useful. Thanks!

Would it be possible to include a checkbox or button to temporarily turn it off while investigating something else nearby? Sometimes FC hightlighter, Color Highlighter, and toolbox all want to highlight the same segment(s), and it is useful to see just one at a time, without refreshing the whole browser.

Thanks again for a useful extension.


There is a "Functional Classification" option in the layer switcher (no keyboard shortcut though). Will toggling that work for you?
davielde
 
Posts: 1219
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 469 times
Been thanked: 757 times

Re: [Script] FC Highlights

Postby voludu2 » Mon Nov 17, 2014 4:35 pm

I am finding this quite useful. Thanks!

Would it be possible to include a checkbox or button to temporarily turn it off while investigating something else nearby? Sometimes FC hightlighter, Color Highlighter, and toolbox all want to highlight the same segment(s), and it is useful to see just one at a time, without refreshing the whole browser.

Thanks again for a useful extension.
voludu2
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 2422
Joined: Thu Jul 24, 2014 12:33 pm
Location: Chester County, Pennsylvania
Has thanked: 502 times
Been thanked: 759 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: JimboBaggins1966