zoom
Gets the current zoom level.
Note that in style layout and paint properties, zoom may only appear as the input to a top-level step or interpolate expression.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
fillColor(
interpolate(
exponential(0.5f), zoom(),
stop(1.0f, color(Color.RED)),
stop(5.0f, color(Color.BLUE)),
stop(10.0f, color(Color.GREEN))
)
)
);
Content copied to clipboard
Return
expression