<div dir="ltr">I guess those variables are simply not accessible from the attribute table window. So there is no way you can use the map canvas for conditional formatting.</div><br><div class="gmail_quote"><div dir="ltr">DelazJ <<a href="mailto:delazj@gmail.com">delazj@gmail.com</a>> escreveu no dia quarta, 21/06/2017 às 16:34:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks Alexandre, but it's too hot to have me doing some maths right now :-)<br><br></div>Actually, what I want to do is to apply some conditional formatting in the attribute table using the canvas extent values but for some reason, those variables you mentioned are not exposed in that expression builder dialog.<br></div>There's also a @map_extent variable in master which returns the geometry (for composer map only? or canvas also?) but like others, it's not exposed.<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-21 17:10 GMT+02:00 Alexandre Neto <span dir="ltr"><<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How about using the map_extent_center, map_extent_height and map_extent_width to create a geometry?<div><br></div></div><br><div class="gmail_quote"><div><div class="m_-2446541109632279507h5"><div dir="ltr">DelazJ <<a href="mailto:delazj@gmail.com" target="_blank">delazj@gmail.com</a>> escreveu no dia quarta, 21/06/2017 às 14:53:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2446541109632279507h5"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>In the Expression dialog, is there a function or a variable that can return the current map canvas?<br></div>I would like for example apply a value to all features that fall within the current map canvas but fail to find the right combination (if ever possible).<br><br></div>Thanks for any hint,<br></div>Harrissou<br></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><span class="m_-2446541109632279507HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetas.wordpress.com" target="_blank">http://sigsemgrilhetas.wordpress.com</a></div><a href="http://gisunchained.wordpress.com" target="_blank">http://gisunchained.wordpress.com</a><br></div></div>
</font></span></blockquote></div><br></div>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetas.wordpress.com">http://sigsemgrilhetas.wordpress.com</a></div><a href="http://gisunchained.wordpress.com">http://gisunchained.wordpress.com</a><br></div></div>