-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise ordering of layers to make it easier to click on tax lots and points #696
Comments
Looks like the problem here is that since Commercial Overlays are on by default, and since they're above lots, they prevent you from clicking on lots. A few solutions come to mind:
|
Looking into this again -- It seems like the described behavior only happens on staging. On production, you can't click on the COs until you turn off tax lots. I think the behavior on production is preferable. |
Sounds like the solution is to turn off CO by default? |
In the last meeting with the client, we discussed rethinking the order of all layers, and it was decided that — tho we don't know the order of them all yet — tax lots should ALWAYS be the topmost layer. That should resolve this issue. |
Hmmm, I think we gotta look into how mapbox-gl deals within implicit ordering. I understand that visual order is honored by the implicit position in which layers are added... but I'm not sure that even applies to events in mapbox-gl. |
My current approach is to traverse the layers array, which is ordered reliably, and search the mouse event's intersecting features for the ID. When it finds something, it escapes the loop. |
We just need to make sure tax lots gets added last of all of the layergroups. I'd test it out to see if it can be as simple as mutating the array of layergroups that comes back from the layers api before anything else in ember gets their hands on it. |
Desired order of layering (starting with topmost layer):
Minor issue I’ve encountered often: Whenever I try to select a specific tax lot with the mouse, it always selects the underlying zoning district or commercial overlay.
For example, I tried to click for lot 31 (below, indicated by red circle) several times, but only C2-4 info appears.
The text was updated successfully, but these errors were encountered: