-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clicking on city boundary will pull up scorecard #139
Clicking on city boundary will pull up scorecard #139
Conversation
Birmingham was added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great!
@@ -571,67 +571,69 @@ | |||
"id": "birmingham-al" | |||
}, | |||
"geometry": { | |||
"type": "LineString", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find. Looks like this is the only instance of it.
src/js/setUpSite.js
Outdated
cityToggleElement.value = cityId; | ||
setMapToCity(map, cityId, cities[cityId]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik this is still a draft so pardon if this is premature. We'll still want to only do this if the zoom is a certain value. Otherwise clicking on the city from zoomed out will be noisy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you click a city, it zooms in onto the city (similar to if you select it from the dropdown). I think this resolves the noise you're talking about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite. Imagine you're super zoomed out on the map, so the cities are tiny dots. You click on it because let's say you're on a phone and the touch targets aren't big—but really you were just trying to zoom in or move around the map!
We should only change the city if the zoom level is below a certain threshold.
👏 |
<path>
for city boundary now has an id attributeCurrent map zoom required to allow click is 7, which looks like this.
And, this zoom and beyond will not allow you to click on cities.