<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Helvetica, Arial, sans-serif">I use 3.0.3 on desktop and
      on server.<br>
      @map_scale works on dekstop, not on server<br>
    </font><br>
    <div class="moz-cite-prefix">Le 22/06/2018 à 00:19, Nyall Dawson a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAB28AsiiuCA3twQzq6tXjEynXZ07zoe_YY9=vLCXfHTDf9m+DA@mail.gmail.com">
      <pre wrap="">On Thu, 21 Jun 2018 at 05:25, Thibault COUPIN <a class="moz-txt-link-rfc2396E" href="mailto:thibault.coupin@ird.fr"><thibault.coupin@ird.fr></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
Hey everybody

I use @map_scale in my style to select features depending on the map scale. It work like a charm on desktop but not on server.
Do you know how to get the WMS request scale ?
</pre>
      </blockquote>
      <pre wrap="">
This is on QGIS 2.18 right? Server on 2.x doesn't have support for
variables (you need 3.0). For 2.18 try using "$scale" instead of
"@map_scale" - that should work in both desktop and server.

Nyall


</pre>
      <blockquote type="cite">
        <pre wrap="">
Thanks for your answers

Have a nice day/night!

Thibault

Twitter: @thibbojunior
Github: tcoupin
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
      </blockquote>
      <pre wrap="">



</pre>
    </blockquote>
    <br>
  </body>
</html>