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

Add a MapBox token for basemaps in superset #4

Closed
IamJeffG opened this issue Mar 20, 2023 · 3 comments
Closed

Add a MapBox token for basemaps in superset #4

IamJeffG opened this issue Mar 20, 2023 · 3 comments

Comments

@IamJeffG
Copy link
Contributor

No description provided.

@IamJeffG
Copy link
Contributor Author

there is discussion of new plugins in the future that won't tie us to MapBox:

Until then, we need a MapBox Key

@mmckown
Copy link

mmckown commented Mar 21, 2023 via email

@IamJeffG
Copy link
Contributor Author

I made a mapbox account in the free tier, which gives some limited (but not small) amount of free map tile requests. It's now working: https://kawana.guardianconnector.net/superset/dashboard/193/?native_filters_key=dn-vILSI4qAhIBGDIWX0SAxF-ZQGHvuGZBm8KfkAkk97DB6uLrI54pzVXhm07EoG

You can change the base layer tileset under "Edit Chart", and "Visual Tweaks" at the far bottom. I've found that "Outdoors" and "Satellite Streets" are good ones.

One note about the MapBox chart type in Superset is that it's just clustering nearby villages together, so the 9 and 3 in the following screenshot refer to distinct villages, not to survey responses:
Screenshot from 2023-03-21 09-46-36

To make the map point size proportional to the number of responses, I used the `DECK.GL SCATTERPLOT" instead of "MAPGL" chart. There you can set "Point Size" to a metric (count); I also set a scale multiplier for more visual impact.

https://kawana.guardianconnector.net/superset/explore/?form_data_key=jZyZ-D_8XmAHaYV3cBMjRLXREb8tbpelVACNpSrKYg7yZrStowCDnbcPlY8bYfKn&slice_id=412
Screenshot from 2023-03-21 09-51-59

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

2 participants