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

Published map not holding viewport settings #820

Closed
makella opened this issue Jun 27, 2019 · 1 comment · Fixed by #839
Closed

Published map not holding viewport settings #820

makella opened this issue Jun 27, 2019 · 1 comment · Fixed by #839
Assignees
Labels

Comments

@makella
Copy link
Contributor

makella commented Jun 27, 2019

Going through the publishing workflow today, I noticed that my viewport settings from the notebook were not transferring over to the published map.

We were hoping to show this step in the video we are making. If it isn't possible to fix in the next day or so, please let me know.

Thanks!

p.s. -- publishing is so awesome!!

To publish:

# Publish map
tmap = Map (
    [
    color_bins_layer(
        'county_measures',
        'median_income', 
        'Median Income', 
        palette='mint',
        bins= 7
    ),
    Layer(
        'state_bounds',
        'color: rgba(240,240,240,0.8)',
        'width: 2.5'
    ),
    size_continuous_layer(
        'county_measures_points',
        'pop_poverty',
        'Population in Poverty',
        size=[2,80],
    ),
    ],
    viewport={'zoom': 4.97, 'lat': 30.234902, 'lng': -90.044652}
)

tmap.publish('Poverty and Income')

url to published map:
https://cartovl.carto.com/kuviz/c7a584ec-6391-4cc9-9188-dff71663fac3

Also attaching the notebook (Very last Step 11):
Helper Methods Script (1).ipynb.zip

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

Successfully merging a pull request may close this issue.

2 participants