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.

Locked
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.

WME bug? Node attribute "partial" is missing...

Post by berestovskyy
Hi,
In WME Validator we've been seeing random false positives for some time. The bug was not reproducible and overall hard to debug.

But after some time we finally nailed the issue. It appears, the root cause is that in some cases WME does not set attribute "partial" for incomplete nodes.

For example here is a permalink. There is a node 273196475 on north connecting three segments. Two of those segments are on screen, the third one is further northward and not visible.

If we open the permalink and check this node with the command:

Code: Select all

W.model.nodes.get(273196475).attributes
On some systems it shows correctly three connected segments or two segments and attribute "partial". But for me and apparently some other users there will be just two segments and no attribute "partial". So some check in Validator false report nonexistent issues.

We have tried to workaround the issue by assuming the node is partial if it is off screen:

Code: Select all

isPartial = ! W.map.getExtent().containsBounds(node.geometry.bounds);
Unfortunately it appears the node might be visible, but still have just two segments instead of three :(

It might be a known issue, but I missed some classes recently ;) Any suggestions how to fix or workaround this issue? If there is no solution, how to escalate this issue to fix the WME?

Here is the link to the Validator's bug report with more information.

Thanks in advance for your help!
berestovskyy
Posts: 912
Has thanked: 321 times
Been thanked: 832 times

POSTER_ID:2630595

1

Send a message

Post by berestovskyy
Thanks, nice to know ;) Just posted there...
berestovskyy
Posts: 912
Has thanked: 321 times
Been thanked: 832 times
Send a message

Post by JustinS83
Andriy,

This post would better fit in the Scripter's Hall
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message