Salve. Una nuova aggiunta a QGIS: le informazioni sui layer vettoriali possono ora essere configurate e mostrare pagine HTML, incluse immagini ecc. Saluti.
-------- Original Message -------- URL : http://woostuff.wordpress.com/2012/08/05/html-map-tips-in-qgis/ Posted : August 5, 2012 at 9:35 pm Author : Nathan Tags : FOSSGIS, gis, mapping, Open Source, qgis, styling, tips Categories : Open Source, qgis New fresh QGIS feature! So fresh in fact you can still smell the wet paint :) QGIS (development build) can now (https://github.com/qgis/Quantum-GIS/commit/8aa160bcb3548a881248c7d46d92c4f2e12ffc02) display map tips using HTML (a subset (http://doc.qt.nokia.com/4.7-snapshot/richtext-html-subset.html) anyway). To enable the new map tips: Open the Layer Properties dialog for a layer and select the Display tab http://woostuff.files.wordpress.com/2012/08/html.png In action http://woostuff.files.wordpress.com/2012/08/html-inaction.png Notice how we can also use a QGIS expression. Anything inside [% %] will be evaluated and replaced with the value in real-time. We can even use a CASE statement. Pretty cool! And the result when hovering over a feature http://woostuff.files.wordpress.com/2012/08/html-inaction2.png Hold on. Pause the track! We can even use some CSS to make it more fancy. <style> h1 {color:red;} p.question {color:blue;} </style> <h1> [% "NAME" %] </h1> <br> <img src="[% "image" %]" /> <br> <p class="question">Is this place a country?</p> <br> [% CASE WHEN "TYPE" = 'Country' THEN 'Yes' ELSE 'No. It is a ' || "TYPE" END %] http://woostuff.files.wordpress.com/2012/08/css.png Happy Mapping :) Add a comment to this post: http://woostuff.wordpress.com/2012/08/05/html-map-tips-in-qgis/#respond -- WordPress.com | Thanks for flying with WordPress! Manage Subscriptions https://subscribe.wordpress.com/?key=5d8fffc771bced9f7eeeda3b07f875c6&email=cavallini%40faunalia.it Unsubscribe: https://subscribe.wordpress.com/?key=5d8fffc771bced9f7eeeda3b07f875c6&email=cavallini%40faunalia.it&b=Lc-%7CtYS5EP%2FYnnD7qnDu-%2C%3DHutrI6KS9itB%26NugxB0cFD%5D4%2Fe3 -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pcTitle: WordPress.com
|
_______________________________________________ Gfoss@lists.gfoss.it http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss Questa e' una lista di discussione pubblica aperta a tutti. Non inviate messaggi commerciali. I messaggi di questa lista non rispecchiano necessariamente le posizioni dell'Associazione GFOSS.it. 605 iscritti al 10.7.2012