You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the walkthrough, I noticed something is preventing us from snapping the drawing way to an existing street, which is required to proceed through the walkthrough.
Unsure if this is a generic hovering problem or an issue specifically with the walkthrough code.
Pic of the node not snapping to the way:
Note though that I can snap to either of the nodes on the way.
The text was updated successfully, but these errors were encountered:
I can get the snapping to work if I add a bunch of debug statements to the rendering code to slow it down, and then ZOOM the mouse to the way as fast as possible before the code can catch up. This makes me think that the problem isn't Pixi, it's that whatever we're drawing is 'blocking' the hover/snap code from firing.
After re-adding the 'drawing' class to the in-progress features that are currently being drawn (for example, drawing a polygon or way during the 'Line' or 'Area draw' modes), I was able to get this to work.
The 'drawing' class signals both the line and way renderer code (specifically, the PixiFeatureLine and PixiFeaturePolygon classes) to clear any hit Targets that the feature has while it's being drawn. This allows the Event subsystem to detect hovering/collision with other features on the map.
Interestingly, the reason that the NODES can be snapped to is because the nodes are drawn 'above' everything else, in a higher z-indexed container, so when PIXI does its hit detection, it hit the nodes just fine.
While testing the walkthrough, I noticed something is preventing us from snapping the drawing way to an existing street, which is required to proceed through the walkthrough.
Unsure if this is a generic hovering problem or an issue specifically with the walkthrough code.
Pic of the node not snapping to the way:
Note though that I can snap to either of the nodes on the way.
The text was updated successfully, but these errors were encountered: