Hi Alain, 

This has been changed in 3.x as there is no single map anymore, but
there could be multiple map canvases per project. 

However, there is a new variable called "@map_scale" which you can use
instead. Note that this variable is only available in some context, e.g.
if you work on the symbology or labeling of a layer representation,
where it is clear what canvas you are refering to. 

Hope this helps, 

Andreas 

On 2018-08-02 07:51, FERRATON Alain (Chef de groupe) -
SG/SPSSI/CPII/DOO/ET wrote:

> Hi,
> 
> I no longer see in QGIS 3.x the $scale function in expressions?
> 
> is there a possibility to recover the scale of the canvas ?
> 
> Regards
> Alain
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
  • [QGIS-Developer] QG... FERRATON Alain (Chef de groupe) - SG/SPSSI/CPII/DOO/ET
    • Re: [QGIS-Deve... Andreas Neumann

Reply via email to