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

Avoid zooming in beyond tile/axis resolution #325

Merged
merged 1 commit into from
May 7, 2019
Merged

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented May 7, 2019

Avoids breaking plot in mercator projection by zooming in too far.

Fixes holoviz-topics/EarthSim#197
Fixes #316

if (end-start) < min_interval:
mid = (start+end)/2.
ax_range.start = mid - min_interval/2.
ax_range.start = mid + min_interval/2.
Copy link
Contributor

Choose a reason for hiding this comment

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

@philippjfr minor error. This should be ax_range.end = mid + ...

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.

Minimum zoom level Default zoom for tile_service is too small when drawing tools are included.
2 participants