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

Support custom choropleth border opacity #157

Merged
merged 1 commit into from
Jun 2, 2019

Conversation

akacarlyann
Copy link
Collaborator

@akacarlyann akacarlyann commented May 31, 2019

Separate choropleth border opacity (line_opacity) from main layer opacity. Allows user to create ChoroplethViz without any fill to the polygons.

Example:

viz = ChoroplethViz('https://raw.githubusercontent.com/mapbox/mapboxgl-jupyter/master/examples/data/us-states.geojson', 
                    access_token=token,
                    color_stops=[],
                    line_stroke='-',
                    line_color='white',
                    line_width=1,
                    opacity=0,
                    line_opacity=1,
                    center=(-96, 37.8),
                    style='mapbox://styles/mapbox/dark-v9?optimize=true')
viz.show()

Closes #156

Copy link
Contributor

@ryanbaumann ryanbaumann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the quick feature add @akacarlyann.

docs/viz.md Outdated Show resolved Hide resolved
@ryanbaumann ryanbaumann merged commit 844d928 into mapbox:master Jun 2, 2019
@akacarlyann akacarlyann deleted the choropleth-line-opacity branch December 2, 2019 06:22
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

Successfully merging this pull request may close these issues.

Rendering choropleth without fill
2 participants