Page 37 of 85

Re: [Script] WME Color Highlights - 2.28 July 2019

Posted: Wed Feb 26, 2020 12:08 pm
by lg1992
phuz wrote:I have the script failing to highlight any PLRs.
I suspect the script doesn't highlight segments below primary streets if the zoom in the URL is 0-4 (it doesn't matter what is the real current zoom level). To override this bug you can click the chain icon in the bottom bar to match zoom in the URL to the current zoom level.

Re: [Script] WME Color Highlights - 2.30 Sept 2020

Posted: Thu Sep 03, 2020 8:28 am
by lg1992
The script doesn't check for the current zoom level, but for the original one defined in the URL. As a result, if I open the editor with zoom level 2 or 3 and then zoom in, the script only marks primary streets ad higher types as locked.

To fix the problem it's enough to replace in 2 places W.map.zoom with W.map.getZoom()

Re: [Script] WME Color Highlights - 2.32 Sept 2020

Posted: Sun Sep 27, 2020 7:57 am
by lg1992
It's confusing that colors by a selected city differ for roads and places. I would prefer to see places pink too.

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Wed Nov 25, 2020 4:44 am
by lg1992
Please add one more option to "Filter by City" - to mark segments and places with undefined city name if they are present on the map.

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Tue Aug 22, 2023 10:40 am
by LihtsaltMats
Looks like version 2.180 has wrecked the script. Is it still actively supported?

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Tue Aug 22, 2023 3:10 pm
by LihtsaltMats
Timbones wrote: Tue Aug 22, 2023 1:54 pm What problem are you seeing with this script? Do you still see the problem when all other scripts are disabled?





 
With only this script enabled the filter by city isn't working. It happens when I try to open the selectbox for the cities. 

Code: Select all

Uncaught TypeError: Cannot read properties of null (reading 'attributes')
at HTMLSelectElement.updateCityList (userscript.html?name=WME-Color-Highlights.user.js&id=e80113cf-653e-46bf-94f9-6b4d359102ea:998:49)
 
cities.png
(11.22 KiB) Downloaded 94 times
In addition to the previously mentioned username changes. Maybe this will give you a little headstart:

Line 152:

Code: Select all

 var cityID = street?.attributes.cityID;
Line 663: 

Code: Select all

 var selectedCityMatch = (specificCity && venueStreet.attributes.cityID == selectedCityId);
 
(around line 990): 

Code: Select all

 for (var [cityId, city] of Object.entries(W.model.cities.objects)) {
  cityIds.push(cityId);
  cityObjs.push({
    id: city.attributes.id,
    name: city.attributes.name,
    state: city.attributes.stateID,
    country: city.attributes.countryID
  });
}
 
 

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Wed Aug 23, 2023 12:25 pm
by LihtsaltMats
VILLAformer wrote: Wed Aug 23, 2023 10:33 am Since yesterday, the "No Name (Orange)" option does not work for me. I have tried to reinstall the script and leave him alone active but nothing.

 
While the script is being updated you can temporarily fix it by changing line 155:

Code: Select all

var noName      = street?.attributes.isEmpty;

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Thu Aug 24, 2023 6:15 am
by LihtsaltMats
LihtsaltMats wrote: Tue Aug 22, 2023 3:10 pm In addition to the previously mentioned username changes. Maybe this will give you a little headstart:

Line 152:

Code: Select all

 var cityID = street?.attributes.cityID;
Line 663: 

Code: Select all

 var selectedCityMatch = (specificCity && venueStreet.attributes.cityID == selectedCityId);
 
(around line 990): 

Code: Select all

 for (var [cityId, city] of Object.entries(W.model.cities.objects)) {
  cityIds.push(cityId);
  cityObjs.push({
    id: city.attributes.id,
    name: city.attributes.name,
    state: city.attributes.stateID,
    country: city.attributes.countryID
  });
}
 
 
R66DE wrote: Thu Aug 24, 2023 5:21 am Thanks for the fix, but the option for "No City" doesn't work, too.
 
 These should fix that.
I hope the creator doesn't mind me sharing. It's just a very useful script.

Re: [Script] WME Color Highlights - 2.33 Sept 2020

Posted: Sat Jul 01, 2023 10:00 am
by linguasaltitante
An interesting suggestion to be implemented on this script is this one by @LostInMyMaps
  • A layer that highlights segments/places touched by new editors/L1
... that he made here .

We already have the advanced possibility to highlight (filter) by editor ... The possibility to filter by a specific level of editor (or multiple levels) would be a nice option  ;)
 
Thanks in advance
 

Re: [Script] Colour Highlights for Segments - v1.6.2 Apr 201

Posted: Sat May 25, 2013 5:20 am
by littlestlou
Thank goodness I am not the only one. I didn't realize Chrome updated but in the last 48-72 hours, the Highlights stopped working on my machine too. Found the 1.6.4 link and am back in business. Thanks again!