mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
This adds a new parameter type specifically for map scales, QgsProcessingParameterScale. The values are evaluated using self.parameterAsDouble, which returns the map scale denominator (matching the standard in other parts of the QGIS API). Scale parameters are displayed to users using the standard QgsScaleWidget, which includes the combo box of predefined scales and a shortcut button to match the current map scale.