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

Function to use custom map data #530

Open
pietrobanana opened this issue May 11, 2021 · 1 comment
Open

Function to use custom map data #530

pietrobanana opened this issue May 11, 2021 · 1 comment

Comments

@pietrobanana
Copy link

Hey guys, I am looking to make a function that when the user clicks on a state, they will be redirected to a anchor/section of another page. I've tried using the "done" method that comes with the package but I am not able to access the data attributes as seen in the "geographyConfig" method.
I circled the first instance of "data.related" because that will show in the map. The second "data.related" in the link interpolated wont work. I would like to set up a static link and depending on which state the user clicks on they will be taken to a different slug.
Screen Shot 2021-05-11 at 9 40 39 AM

@pietrobanana
Copy link
Author

This is similar to Issue 433

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

No branches or pull requests

1 participant