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 maps not holding viewport #1128

Closed
makella opened this issue Oct 28, 2019 · 0 comments · Fixed by #1172
Closed

Published maps not holding viewport #1128

makella opened this issue Oct 28, 2019 · 0 comments · Fixed by #1172
Assignees
Labels

Comments

@makella
Copy link
Contributor

makella commented Oct 28, 2019

hello, is looks like the published maps are not holding viewport. I know we had looked at this a while back seems like it is happening again.

Example:

from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer, basemaps
from cartoframes.viz.helpers import color_category_layer

set_default_credentials('cartoframes')

visualization = Map(
    color_category_layer(
        'SELECT * FROM spend_data WHERE amount > 150 AND amount < 200',
        'category_en', 
        'Spending in Barcelona',
        description='Categories',
        widget=True,
        popup=False
    ),
    viewport={'zoom': 16, 'lat': 41.38, 'lng': 2.17},
    basemap=basemaps.darkmatter
)

kuviz = visualization.publish('spending_in_barcelona')

print(kuviz['url'])

Expected result:
Screen Shot 2019-10-28 at 8 43 28 AM

Published map:
Screen Shot 2019-10-28 at 8 44 19 AM

@makella makella added the bug label Oct 28, 2019
@cmongut cmongut added this to the [1.0rc1] Stabilization milestone Oct 30, 2019
@Jesus89 Jesus89 self-assigned this Nov 7, 2019
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.

3 participants