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.
The bottom two lines here are commented out. If you uncomment them, the WME light blue highlight for the selected segment should appear:
// 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;
// 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.
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.
Corrected issue where selected segments would not display the standard WME light blue line
Added textboxes for the different FC road types for user custom input
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.
You get a +1 for everything you said, but since you brought it up I did want to add that in area Canada is larger than the USA by 1.6%, but the USA has 620% of the roads in Canada. :mrgreen:
(Just keeping you honest my Canadian brother. )
To be fair, that request was made well before the external source concerns came to the forefront in the Toolbox thread.
Apart from the recent turmoil surrounding the use of external sources in WME, I don’t think it would be reasonable or fair to do this for just one state. Once you start looking at individual states, however, it becomes a much larger effort due to lack of consistency in the technology used by each state. It looks like CalTrans serves up their road layer using a KML file in any case. AFAIK, that file needs to reside on the same web server as the host site, and it’s just a hunch, but I’m guessing that Waze wouldn’t host it… Michigan serves up FC as a single ARCGIS layer. Louisiana has each road type as a different ARCGIS layer. And so on for each state… Too specialized to do for “fun” even if it were condoned by Waze.
I cannot replicate even with the 64-bit version of Chrome or by enabling a number of scripts that all use that section. The script tabs eventually create a second and third row, and I always have “FC Highlight” visible. Any more info about your setup that could help track it down?
Thanks! I’ll incorporate that into the next version later. That bootstrap is the same as the current one for WMECH, but Colour Highlights is working for you with dummyElem.setAttribute(‘onclick’, ‘return window’); ?