[Script] WME Toolbox 1.9.30+

@lacmacca will you take a look at this bug during your migration to SDK, please. thank you

Can’t make it to work on Chrome (Linux Mint), it appears on the WME, but when I click to take an action it doesn’t do anything.

It’s installed, toolbox appears on top as usual, but when I press the button, e.g. simplify segment it doesn’t work.

Toolbox v1.10.2 (pending Google review)

  • UPDATED: Migrated majority of functionality to the WME SDK. Please be on the lookout for any pesky bugs that may have crept in.
  • UPDATED: The simplifiable segments highlight now shows the redundant geonodes.
  • UPDATED: The simplifiable segments tool no longer touches geometry nodes close to junctions to prevent the angle from changing too much.
  • UPDATED: SM user list for Australia.
  • FIXED: Suppress unneeded junctions is now aware of traffic lights (please test different configurations)
1 Like

In this new version, I feel that too many segments that need simplifying stand out compared to before. Is it possible to revert to a less strict configuration for segment simplification?

2 Likes

This may be a bit difficult as the code has changed from using OpenLayers to Turf which does not have the exact same simplifying algorithm. I tried to match it as close as I could.

Do you have a permalink I can have a look at it so I can compare the old and new versions?

2 Likes

I have it already.
Thank you!

3 Likes

The link for Firefox will be updated?

2 Likes

Ok. Thank you. I’ll see that when i could update Chrome Extension.

3 Likes

Hi! After the last update, the “simplifiable segments” item is no longer showing up for me (Brazil). Have the permissions for Brazil changed?

2 Likes

Hi! After the last update, the “simplifiable segments” item is no longer showing up for me (Brazil). Have the permissions for Brazil changed?

Just saw the same thing here :frowning:

2 Likes

UPDATED: The simplifiable segments tool no longer touches geometry nodes close to junctions to prevent the angle from changing too much.

That’s perfect, thank you for improving this function! I’ll review the other updates, but it looks very good.

3 Likes

lock layer is not shown. the console is as shown

WME_Toolbox.prod.min.js:3 Uncaught TypeError: Cannot read properties of null (reading ‘roadType’)
at WME_Toolbox.prod.min.js:3:37382
at Array.filter ()
at WME_Toolbox.prod.min.js:3:37306
at Array.filter ()
at WMETB_Highlight_Obj.ComputeSoftTurns [as highlightFunc] (WME_Toolbox.prod.min.js:3:37225)
at WMETB_Highlight_Obj.refresh (WME_Toolbox.prod.min.js:3:8527)
at WME_Toolbox.prod.min.js:3:8782
at Array.forEach ()
at WMETB_Highlight_Obj.refreshAllLayers (WME_Toolbox.prod.min.js:3:8753)
at WME_Toolbox.prod.min.js:3:5983
(anonymous) @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
ComputeSoftTurns @ WME_Toolbox.prod.min.js:3
refresh @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
refreshAllLayers @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
setTimeout
#debounce @ WME_Toolbox.prod.min.js:3
#onMapEvent @ WME_Toolbox.prod.min.js:3
trigger @ app-6d1e72426b5df5c7.js.gz:1
(anonymous) @ app-6d1e72426b5df5c7.js.gz:1
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
pan @ third_party-a01ccd19ad494ec4.js.gz:2
panMapDone @ third_party-a01ccd19ad494ec4.js.gz:2
callback @ third_party-a01ccd19ad494ec4.js.gz:2
dragend @ third_party-a01ccd19ad494ec4.js.gz:2
mouseup @ third_party-a01ccd19ad494ec4.js.gz:2
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
handleBrowserEvent @ third_party-a01ccd19ad494ec4.js.gz:2
(anonymous) @ third_party-a01ccd19ad494ec4.js.gz:2
WME_Toolbox.prod.min.js:3 Uncaught TypeError: Cannot read properties of null (reading ‘roadType’)
at WME_Toolbox.prod.min.js:3:37382
at Array.filter ()
at WME_Toolbox.prod.min.js:3:37306
at Array.filter ()
at WMETB_Highlight_Obj.ComputeSoftTurns [as highlightFunc] (WME_Toolbox.prod.min.js:3:37225)
at WMETB_Highlight_Obj.refresh (WME_Toolbox.prod.min.js:3:8527)
at WME_Toolbox.prod.min.js:3:8782
at Array.forEach ()
at WMETB_Highlight_Obj.refreshAllLayers (WME_Toolbox.prod.min.js:3:8753)
at WME_Toolbox.prod.min.js:3:5983
(anonymous) @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
ComputeSoftTurns @ WME_Toolbox.prod.min.js:3
refresh @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
refreshAllLayers @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
setTimeout
#debounce @ WME_Toolbox.prod.min.js:3
#onMapEvent @ WME_Toolbox.prod.min.js:3
trigger @ app-6d1e72426b5df5c7.js.gz:1
(anonymous) @ app-6d1e72426b5df5c7.js.gz:1
m @ third_party-a01ccd19ad494ec4.js.gz:2
f @ third_party-a01ccd19ad494ec4.js.gz:2
c @ third_party-a01ccd19ad494ec4.js.gz:2
(anonymous) @ third_party-a01ccd19ad494ec4.js.gz:2
trigger @ app-6d1e72426b5df5c7.js.gz:1
triggerEvent @ app-6d1e72426b5df5c7.js.gz:1
mergeGetFeaturesResponse @ app-6d1e72426b5df5c7.js.gz:1
sy @ app-6d1e72426b5df5c7.js.gz:1
_updateModelWithFeaturesResponse @ app-6d1e72426b5df5c7.js.gz:1
fetchOnlineEditors @ app-6d1e72426b5df5c7.js.gz:1
await in fetchOnlineEditors
sendReadFeaturesNoMemo @ app-6d1e72426b5df5c7.js.gz:1
sendReadFeatures @ app-6d1e72426b5df5c7.js.gz:1
buildFeatureRequests @ app-6d1e72426b5df5c7.js.gz:1
updateFeatures @ app-6d1e72426b5df5c7.js.gz:1
onMapMoveEnd @ app-6d1e72426b5df5c7.js.gz:1
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
pan @ third_party-a01ccd19ad494ec4.js.gz:2
panMapDone @ third_party-a01ccd19ad494ec4.js.gz:2
callback @ third_party-a01ccd19ad494ec4.js.gz:2
dragend @ third_party-a01ccd19ad494ec4.js.gz:2
mouseup @ third_party-a01ccd19ad494ec4.js.gz:2
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
handleBrowserEvent @ third_party-a01ccd19ad494ec4.js.gz:2
(anonymous) @ third_party-a01ccd19ad494ec4.js.gz:2
WME_Toolbox.prod.min.js:3 Uncaught TypeError: Cannot read properties of null (reading ‘roadType’)
at WME_Toolbox.prod.min.js:3:37382
at Array.filter ()
at WME_Toolbox.prod.min.js:3:37306
at Array.filter ()
at WMETB_Highlight_Obj.ComputeSoftTurns [as highlightFunc] (WME_Toolbox.prod.min.js:3:37225)
at WMETB_Highlight_Obj.refresh (WME_Toolbox.prod.min.js:3:8527)
at WME_Toolbox.prod.min.js:3:8782
at Array.forEach ()
at WMETB_Highlight_Obj.refreshAllLayers (WME_Toolbox.prod.min.js:3:8753)
at WME_Toolbox.prod.min.js:3:5983
(anonymous) @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
ComputeSoftTurns @ WME_Toolbox.prod.min.js:3
refresh @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
refreshAllLayers @ WME_Toolbox.prod.min.js:3
(anonymous) @ WME_Toolbox.prod.min.js:3
setTimeout
#debounce @ WME_Toolbox.prod.min.js:3
#onMapEvent @ WME_Toolbox.prod.min.js:3
trigger @ app-6d1e72426b5df5c7.js.gz:1
(anonymous) @ app-6d1e72426b5df5c7.js.gz:1
m @ third_party-a01ccd19ad494ec4.js.gz:2
f @ third_party-a01ccd19ad494ec4.js.gz:2
c @ third_party-a01ccd19ad494ec4.js.gz:2
(anonymous) @ third_party-a01ccd19ad494ec4.js.gz:2
trigger @ app-6d1e72426b5df5c7.js.gz:1
triggerEvent @ app-6d1e72426b5df5c7.js.gz:1
mergeGetFeaturesResponse @ app-6d1e72426b5df5c7.js.gz:1
sy @ app-6d1e72426b5df5c7.js.gz:1
_updateModelWithFeaturesResponse @ app-6d1e72426b5df5c7.js.gz:1
(anonymous) @ app-6d1e72426b5df5c7.js.gz:1
Promise.then
sendReadFeaturesNoMemo @ app-6d1e72426b5df5c7.js.gz:1
sendReadFeatures @ app-6d1e72426b5df5c7.js.gz:1
buildFeatureRequests @ app-6d1e72426b5df5c7.js.gz:1
updateFeatures @ app-6d1e72426b5df5c7.js.gz:1
onMapMoveEnd @ app-6d1e72426b5df5c7.js.gz:1
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
pan @ third_party-a01ccd19ad494ec4.js.gz:2
panMapDone @ third_party-a01ccd19ad494ec4.js.gz:2
callback @ third_party-a01ccd19ad494ec4.js.gz:2
dragend @ third_party-a01ccd19ad494ec4.js.gz:2
mouseup @ third_party-a01ccd19ad494ec4.js.gz:2
triggerEvent @ third_party-a01ccd19ad494ec4.js.gz:2
handleBrowserEvent @ third_party-a01ccd19ad494ec4.js.gz:2
(anonymous) @ third_party-a01ccd19ad494ec4.js.gz:2

User toggles lock highlights
→ WMETB_Highlight_Obj.refreshAllLayers() fires
→ forEach instance in #instances:
1. UTurns layer → :white_check_mark: OK
2. ReverseConnections → :white_check_mark: OK
3. SoftTurns → ComputeSoftTurns() crashes :collision:
TypeError: Cannot read properties of null (reading ‘roadType’)
4. Lock layer → :cross_mark: NEVER REACHED — loop crashed

1 Like

Highlight “segments with speed limits” is now broken. It highlights speed limits on any segments which are visible on screen when WME loads, but doesn’t keep up with panning/zooming.

1 Like

Version 1.10.3 should tone down the simplifying to match previous versions.

1 Like

So sorry, I have been forgetting to push the updates for Firefox. This should be available soon for v1.10.3

2 Likes

Thanks for the error message. Can I please get a link to where this occurs in WME?

2 Likes

Brazil permissions did not change for this update. This seems to caused by the CM permissions not loading properly. A couple others have said the same, I am looking in to it.

3 Likes

Thanks :slight_smile:

We now need to specifically select a segment to suppress nodes, unlike before, when all the ones on the screen could be fixed at once. Is it correct?

2 Likes

Yes, that is correct. The misuse by some brazilian editors making a large number of edits was impacting the instructions due to a lack of attention when adjusting angles. With this update, I’ll observe how the brazilian community behaves, but there are strong indications that some brazilian editors may be using it with the intention of gaining edit points, even with this function that only suppresses nodes when selecting segments.

3 Likes

Okay, thanks for clarifying.

2 Likes