[Script] WME Map Tiles Update

Heads-up: this script will be affected by an upcoming change within the WME objects: W.location will no longer exist in the next (or one of the next) versions of the WME. This script seems to use W.location.code twice, see this sticky for more information.

Script update (v1.36) :

  • Compatibility with last version of WME

It seems that in last version of this script is back the deprecated get function.

Damn ! It’s true :frowning:

Script update (v1.37) :

  • Compatibility with last version of WME

Script update (v1.38) :

  • New API for map time (Google has become paid)

WME Map Tiles Update breaks the Delete Feature button when viewing Point Places.

Error message generated when selecting a Place:

Uncaught TypeError: Cannot read property 'userName' of undefined at e.Check_MTU (<anonymous>:293:87) at initialize.triggerEvent (vendor-cf67c69610406094bb7d.js:1) at e.value (app-f5c6391a2800d32b00b7.js:1) at e.value (app-f5c6391a2800d32b00b7.js:1) at e.value (app-f5c6391a2800d32b00b7.js:1) at f (vendor-cf67c69610406094bb7d.js:1) at p (vendor-cf67c69610406094bb7d.js:1) at h (vendor-cf67c69610406094bb7d.js:1) at t.u.trigger (vendor-cf67c69610406094bb7d.js:1) at t.y [as triggerMethod] (vendor-cf67c69610406094bb7d.js:1)

Script update (v1.39) :

  • Compatibility with last version of WME

Hello,

I’m not able to close the window as it overlay in the ā€œiā€ icon and the layers buttons, please check the image.

Any help is appreciated.

–
Thanks.

That’s because you haven’t updated to the latest version, announced in the post above yours. :wink:

Script update (v1.40) :

  • Better compatibility with Fix UI

Seeing problems with the script now in the US.

Script update (v1.41/1.42) :

  • Compatibility with last version of WME Beta (thanks to MajkiiTelini)
  • ā€œRestricted Driving Areaā€ taken into account

Can I suggest a minor change to your script?

Lines 423 to 427

if (typeof (W.model.users.getObjectById(so.model.attributes.updatedBy)) !== 'unverified') { var updatedByRank = (W.model.users.getObjectById(so.model.attributes.updatedBy).rank+1), updatedBy = W.model.users.getObjectById(so.model.attributes.updatedBy).userName; } else { var updatedByRank='', updatedBy = so.model.attributes.updatedBy; } }

to

if (typeof W.model.users.getObjectById(so.model.attributes.updatedBy) == undefined || W.model.users.getObjectById(so.model.attributes.updatedBy) == null) { return; var updatedByRank = (W.model.users.getObjectById(so.model.attributes.updatedBy).rank+1), updatedBy = W.model.users.getObjectById(so.model.attributes.updatedBy).userName; } else { var updatedByRank='', updatedBy = so.model.attributes.updatedBy; } }

This will account for RRCs that have not been verified.

This will also help me with a script that I am currently writing.

Thanks for your consideration

Bug report, running v1.43 on Chrome, Windows 10. In certain instances the script causes the WME ā€œEdit House Numberā€ button to act as if it is the ā€œSelect Entire Streetā€ button.

Console Error on ā€œEdit House Numberā€ button press:

Click thru console to script - jumps to line 306:

Hi whathappened15,
Please try my last update (today) and tells me if it’s ok now

I believe I’ve found an issue with the feature that highlights the status of segments after a tile build. By this I mean how the segment update and created times are shaded red until the tile build occurs and than it is shaded green to indicate the change is now live.

Currently the times are being changed to green prematurely when the change is not yet included in a tile build. I think it is being updated to green 24 hours too early, assuming a tile build occurs daily. This is the NA server.

I have an example from a recent case.
Segment was edited Sat Jan 09 2021 09:54:37
Segment is now Green but tile build has not yet occurred.
Cut-off for the Jan 10 tile build was Jan 09 2021 0800 (1600 GMT).
The segment should not be turned to green until the next tile build, since the change was made after the cutoff.


I believe I’ve found a bug.
After update to v. 1.45 now the name of the last editor of a segment no longer appears with a username but with an ID number.

Yes, I made a mistake after adding the old request for jm6087.
It’s fixed now.

–> V1.46

@Trexer0
I will try to reproduce the issue

Hi, the script is not showing that updates were performed anymore, however they were performed… ?