<p dir="ltr"></p>
<p dir="ltr">On 28 Oct 2016 1:51 AM, "DelazJ" <<a href="mailto:delazj@gmail.com">delazj@gmail.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> Is that possible to create a label which displays the x and y coordinates of a selected map item in the composer.<br>
> I suspect x(@map_extent_center) to do the trick but I'm unable to find how to call the map_extent_center variable in a label item as it's stuck to the map item afaics.<br>
><br>
> Any tip, please?</p>
<p dir="ltr">It's not currently possible unless you write a python function to do this.</p>
<p dir="ltr">I've been pondering this week about allowing items to access the variables from another item but need to think this through more.</p>
<p dir="ltr">My (current) use case:<br>
- working on a map of a train line which consists of three vertical panels covering different parts of the line<br>
- certain elements (like label buffers) in the map style use a @background_color variable to data define their color<br>
- each map item in the composition has its own @background_color variable set so that this color represents a good background color for the visible content within that panel<br>
- I want to style things like North arrows to reuse the @background_color variable from the map item they are associated with.</p>
<p dir="ltr">Nyall<br>
><br>
> Thanks,<br>
> Harrissou<br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></p>