Skip to content
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

Closed
chriswhong opened this issue Nov 15, 2018 · 7 comments · Fixed by #783
Closed

Revise ordering of layers to make it easier to click on tax lots and points #696

chriswhong opened this issue Nov 15, 2018 · 7 comments · Fixed by #783
Assignees
Labels
High ROI High impact - Low level of effort
Milestone

Comments

@chriswhong
Copy link
Contributor

chriswhong commented Nov 15, 2018

Desired order of layering (starting with topmost layer):

  • Points (e-designations and landmarks)
  • Tax lots
  • Everything else in descending order according to the legend menu

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.

image001

@andycochran
Copy link
Contributor

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:

  1. 👍 Make the COs layer group turned off by default, as other non-underlying zoning like SPDs are.

  2. 👎 Make the COs non-clickable when zoomed in close. This could be frustrating if you're trying to click a CO while zoomed in too far, and would require choosing a specific zoom level that'd have edge cases.

  3. 👎 Move tax lots above COs. You'd have to turn off tax lots to click a CO.

@hannahkates
Copy link
Contributor

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.

@hannahkates hannahkates added this to the Optimization milestone Dec 11, 2018
@hannahkates hannahkates modified the milestones: Optimization, Sprint C Jan 29, 2019
@allthesignals
Copy link
Collaborator

Sounds like the solution is to turn off CO by default?
@andycochran

@allthesignals allthesignals added the Blocked An issue blocked by an external factor label Feb 1, 2019
@andycochran
Copy link
Contributor

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.

@hannahkates hannahkates added High ROI High impact - Low level of effort and removed Blocked An issue blocked by an external factor labels Feb 5, 2019
@hannahkates hannahkates changed the title Clicking tax lot registers as a click on the zoning layer Tax lots should ALWAYS be the topmost layer Feb 5, 2019
@hannahkates hannahkates changed the title Tax lots should ALWAYS be the topmost layer Revise ordering of layers to make it easier to click on tax lots and points Feb 5, 2019
@allthesignals
Copy link
Collaborator

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.

@allthesignals
Copy link
Collaborator

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.

@chriswhong
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High ROI High impact - Low level of effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants