Description
Feature request to limit the zoom of choropleth-maps.
Because there are no axis I recommend limit the scaling factor. This could be dome e.g. by introducing two new setting minScale
and maxScale
on the layout.geo.projection
object.
minScale/maxScale must be positive numbers:
- 0 = 0% minimal zoom (1 pixel)
- 1 = 100% zoom (original size)
- 2 = 200% zoom (double the original size)
https://jsbin.com/vudibul/edit?js,console,output
layout = {
geo: {
projection: {
// initial scale
scale: 0.75,
/**************************************
minscale/maxscale are not yet supported
*************************************/
minScale: 0.5, // 50%
maxScale: 1 //100%
}
}
};
Related:
Activity
feat(geo): support min/max scale limits
feat(geo): support min/max scale limits
mebaysan commentedon Sep 13, 2022
I used that technique to re-layout when it overrides the max or min limits.
https://community.plotly.com/t/how-to-set-a-limit-for-zoom-in-out-feature/2574/6?u=mebaysan
feat(geo): support min/max scale limits
feat(geo): support min/max scale limits
feat(geo): support min/max scale limits
feat(geo): support min/max scale limits
[-]Set zoom/scale limits for choropleth maps[/-][+]allow user to set zoom/scale limits for choropleth maps[/+]chinnichaitanya commentedon Jan 2, 2025
Look forward to this!
3 remaining items