Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Update for 2017 #9

Open
wants to merge 4 commits into
base: gh-pages
Choose a base branch
from

Conversation

genghishack
Copy link

Hi,

I've updated references throughout the code and the README, to point to the 2017 version of the congressional boundaries file.

I also updated example/index.html; you will want to switch the public key and username back to your own, but the main change I made was to include the five district_n_label layers in the call to map.queryRenderedFeatures at line 281. The title_long property was only present in those, and I wasn't otherwise able to get it to display as anything other than 'undefined' when clicking on a district.

It's an imperfect solution... The title only displays in the alert when you click on the label, but is still undefined when you click on any other part of a district.

I've learned a lot about mapbox by working through your instructions. I'm still futzing around with the layers to figure out how to get the data to display when clicking anywhere on the district. I'd love to know if you have a better solution for this.

Thanks,
Chris

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant