Wed Jul 20, 2016 8:16 pm
Mon Oct 12, 2020 7:06 pm
W.map.addLayer(WMERC_lineLayer_route)
userscript.html?name=WME%20Route%20Checker.user.js&id=1bce74b7-4cb4-461f-8270-59aa6d7c4004:857 Uncaught TypeError: Cannot read property 'addLayer' of undefined
at initialiseRouteChecker (userscript.html?name=WME%20Route%20Checker.user.js&id=1bce74b7-4cb4-461f-8270-59aa6d7c4004:857)
Thu Dec 03, 2020 1:14 pm
ancho85 wrote:This lineis causing a TypeError in the console:
- Code:
W.map.addLayer(WMERC_lineLayer_route)
- Code:
userscript.html?name=WME%20Route%20Checker.user.js&id=1bce74b7-4cb4-461f-8270-59aa6d7c4004:857 Uncaught TypeError: Cannot read property 'addLayer' of undefined
at initialiseRouteChecker (userscript.html?name=WME%20Route%20Checker.user.js&id=1bce74b7-4cb4-461f-8270-59aa6d7c4004:857)
function bootstrap() {
if (W && W.map && W.model && W.selectionManager) {
console.log('"WME Route Checker: init route checker...');
initialiseRouteChecker();
} else {
console.log('"WME Route Checker: Bootstrap failed. Retrying...');
setTimeout(() => {
bootstrap();
}, 1000);
}
}
bootstrap();
Sun Oct 06, 2013 7:41 pm
Sun Oct 06, 2013 9:05 pm
I get it, but it's still in the same root domain (they are all *.waze.com)...Timbones wrote:AndyPoms wrote:One question, if it's based off the livemap data, why won't it work in WME Beta (i.e. if the routing is coming from the livemap, why does it matter what editor you are using)?
It's because the beta editor is on a separate domain, and browsers don't like you loading data from another domain for security reasons. I've asked Waze for some help with the matter, but there's a lot going on with the websites at the moment, so we'll have to see...
Sun Oct 13, 2013 1:00 pm
Thu Apr 09, 2015 7:16 am
Tue Apr 21, 2015 5:49 pm
Arnoniem wrote:The livemap routes are now implementing the uturn function, but the route checker script is not using those same uturns.
Could you have a look at that please?
Thanks!
Timbones wrote:
Wed Apr 22, 2015 2:53 pm
Sat Feb 29, 2020 4:34 pm
Timbones wrote:I've just uploaded version v1.32 to Greasyfork with some minor fixes, and a new feature that displays when a route goes through a restricted zone (like Clear Air or ZTL) or through a Toll.
Note: The Chrome extension is no longer supported. Use Tampermonkey instead.
Enjoy!