[Script] WME Speeds

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, Glodenox, JustinS83

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 Speeds

Postby GeekDriverPeaceful » Wed Feb 15, 2017 12:53 am

This script causes the popup to give the message: "TypeError: Cannot read property 'checked' of null". It always occurs when I change from Event Mode to Default Mode. It will continue to give the same error when I change back to Event Mode. Here is the following console log:
Code: Select all
www.waze.com/:169 Uncaught TypeError: Cannot read property 'checked' of null
    at initialize.highlightSpeedsSegments (eval at <anonymous> (:2:297), <anonymous>:169:58)
    at initialize.triggerEvent (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:101:6363)
    at initialize.moveTo (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:105:30966)
    at initialize.setCenter (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:105:27363)
    at initialize.updateSize (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:105:25413)
    at https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:99:14924

Uncaught TypeError: Cannot read property 'checked' of null
    at n.highlightSpeedsSegments (eval at <anonymous> (:2:297), <anonymous>:169:58)
    at f (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:2:23736)
    at M (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:2:23528)
    at h (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:2:21471)
    at n.l.trigger (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:2:23421)
    at s.a.events.on.loadend (https://www.waze.com/assets-editor/js/app-331809ae6037103cf5c5.js:4:18025)
    at initialize.triggerEvent (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:101:6363)
    at s.e.onLoadEnd (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:104:25392)
    at initialize.triggerEvent (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:101:6363)
    at initialize.onImageLoad (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:107:10712)

highlightSpeedsSegments @ VM10072:169
f @ vendor-30792e8….js:2
M @ vendor-30792e8….js:2
h @ vendor-30792e8….js:2
l.trigger @ vendor-30792e8….js:2
a.events.on.loadend @ app-331809a….js:4
triggerEvent @ vendor-30792e8….js:101
e.onLoadEnd @ vendor-30792e8….js:104
triggerEvent @ vendor-30792e8….js:101
onImageLoad @ vendor-30792e8….js:107
initImage @ vendor-30792e8….js:107
renderTile @ vendor-30792e8….js:107
draw @ vendor-30792e8….js:107
drawTileFromQueue @ vendor-30792e8….js:104
(anonymous) @ vendor-30792e8….js:99
i.(anonymous function) @ vendor-30792e8….js:99
2017-02-14 19:50:46.354 VM10072:169 Uncaught TypeError: Cannot read property 'checked' of null
    at highlightSpeedsSegments (eval at <anonymous> (:2:297), <anonymous>:169:58)
    at initialize.changeLayer (eval at <anonymous> (:2:297), <anonymous>:471:5)
    at initialize.triggerEvent (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:101:6363)
    at Object.<anonymous> (https://www.waze.com/assets-editor/js/app-331809ae6037103cf5c5.js:15:24236)
    at d (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:26:22569)
    at Object.fireWith [as resolveWith] (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:26:23337)
    at s (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:27:26413)
    at XMLHttpRequest.<anonymous> (https://www.waze.com/assets-editor/js/vendor-30792e8abebc80c177fa.js:28:232)
highlightSpeedsSegments @ VM10072:169
changeLayer @ VM10072:471
triggerEvent @ vendor-30792e8….js:101
(anonymous) @ app-331809a….js:15
d @ vendor-30792e8….js:26
fireWith @ vendor-30792e8….js:26
s @ vendor-30792e8….js:27
(anonymous) @ vendor-30792e8….js:28
GeekDriverPeaceful
Beta tester
Beta tester
 
Posts: 702
Joined: Mon May 30, 2016 4:28 pm
Location: USA
Has thanked: 797 times
Been thanked: 238 times

Re: [Script] WME Speeds

Postby andrcondon » Tue Mar 14, 2017 2:03 pm

Hi. With the latest update in WME, I can't turn the script layer on to use it.

Thank you
Andrés Condón
andrcondon
[ img ] [ img ] [ img ] [ img ]
andrcondon
Map Editor - Level 6
Map Editor - Level 6
 
Posts: 241
Joined: Mon Jun 10, 2013 11:19 am
Has thanked: 93 times
Been thanked: 85 times

Re: [Script] WME Speeds

Postby martinkolar » Sat Apr 01, 2017 7:25 am

Hi, new version for updated WME is out!
martinkolar
Area Manager
Area Manager
 
Posts: 197
Joined: Fri Jun 08, 2012 3:52 pm
Has thanked: 63 times
Been thanked: 133 times

Re: [Script] WME Speeds

Postby HairyDrumroll » Mon Aug 21, 2017 6:46 am

Doesn't seem to be working for me. Have Tampermonkey installed, script installed, tab is visible in left, but roads aren't coloured. Ideas?
HairyDrumroll
 
Posts: 86
Joined: Fri Jan 22, 2016 12:13 am
Has thanked: 35 times
Been thanked: 6 times

Re: [Script] WME Speedlimits

Postby TimAThing » Mon Jun 25, 2018 1:26 pm

I'm getting problems whenever I try to change from Default Mode to Event Mode:
  • Popup message: http://www.waze.com says TypeError: Cannot read property 'checked' of null
  • Top panel of WME is blanked out (except for the Waze logo), so I can't change back to Default Mode, change layers, etc.
  • Feed in left panel is now blank
The only way to restore back to normal is by refreshing the entire page.

Tested in latest Chrome 67.0.3396.87 (Official Build) (64-bit), with WME Speedlimits 0.4.3.6 installed via Tampermonkey 4.6, all other Tampermonkey scripts disabled and all other WME-related extensions disabled.

Also, now that the script has changed name to WME Speedlimits, it'd be good to update the thread title too. :)

Thanks!
L4, AM for NSW and Tasmania
TimAThing
State Manager
State Manager
 
Posts: 730
Joined: Fri Jul 11, 2014 9:04 am
Location: Sydney, Australia
Has thanked: 216 times
Been thanked: 328 times

Re: [Script] WME Speeds

Postby Glodenox » Tue Jul 31, 2018 10:32 pm

Hey there! I'm happy to see most of the references to the Waze object in this script have been replaced with the W object. There is still one line that need changing to have this script fully ready though:

Code: Select all
525:  if (typeof(Waze) === 'undefined') {

Otherwise the script will never initialize.

Also, please be aware that today's update will affect the several repository APIs, which will also affect this script:
Code: Select all
185:      var segment = W.model.segments.get(seg); // <- should become .getObjectById
Script Writing Community Coordinator
[ img ][ img ]
Glodenox
Waze Global Champs
Waze Global Champs
 
Posts: 1043
Joined: Tue Aug 11, 2015 9:04 pm
Location: Belgium
Has thanked: 500 times
Been thanked: 1197 times

Re: [Script] WME Speeds

Postby martinkolar » Tue Aug 14, 2018 7:11 pm

Glodenox wrote:Hey there! I'm happy to see most of the references to the Waze object in this script have been replaced with the W object. There is still one line that need changing to have this script fully ready though:

Code: Select all
525:  if (typeof(Waze) === 'undefined') {

Otherwise the script will never initialize.

Also, please be aware that today's update will affect the several repository APIs, which will also affect this script:
Code: Select all
185:      var segment = W.model.segments.get(seg); // <- should become .getObjectById


Done.
martinkolar
Area Manager
Area Manager
 
Posts: 197
Joined: Fri Jun 08, 2012 3:52 pm
Has thanked: 63 times
Been thanked: 133 times

Re: [Script] WME Speeds

Postby lg1992 » Sat Nov 02, 2019 3:56 am

The add-on fails to start in the latest WME on Chrome. I've found the following error in the console:

Uncaught TypeError: W.map.getMapEventsListener is not a function
at initialiseSpeedsHighlights (userscript.html?id=a46cf566-6add-4522-9d51-12b568821d7c:626)
Leonid, Country Manager, Israel
lg1992
Country Manager
Country Manager
 
Posts: 3870
Joined: Fri May 04, 2012 9:50 am
Has thanked: 216 times
Been thanked: 729 times

Re: [Script] WME Speeds

Postby keilorca » Mon Nov 11, 2019 6:43 am

lg1992 wrote:The add-on fails to start in the latest WME on Chrome. I've found the following error in the console:

Uncaught TypeError: W.map.getMapEventsListener is not a function
at initialiseSpeedsHighlights (userscript.html?id=a46cf566-6add-4522-9d51-12b568821d7c:626)

The latest version seems to have bug. I found that if you downgrade to version 0.4.4 it works.
keilorca
Area Manager
Area Manager
 
Posts: 174
Joined: Thu Jun 14, 2018 7:33 am
Location: North East Victoria
Has thanked: 89 times
Been thanked: 33 times

Previous

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: ldriveskier, YanisKyr