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: