Feature info

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Feature info

Karl Magnus Jönsson

Hi all!

Has there been discussions about customizing and configuring the feature info? Suppose I don’t run the latest code on client and server side right now. Maybe there have been some development made. But as it looks for me now there is room for enhancements J.

·         Title instead of layername

·         Map tip text instead of Feature id to recognize each record

·         Show image if defined in edit widgets.

·         Links clickable. (Can only right click and open link in new tab)

 

If some of these is solved in later versions I have to upgrade. Otherwise I’ll write some issuses and find out how to solve this.

 

<Layer name="skno_ok_kommuner"/>

<Layer name="ytalger_fop">

  <Feature id="15">

   <Attribute value="Åhus" name="Namn"/>

   <Attribute value="" name="Gällande"/>

   <Attribute value="https://www.kristianstad.se/contentassets/50c892f81d624857932fa8e9cf274ecf/s-86-138-kap-3-4.pdf#page=27" name="Länk"/>

   <Attribute value="http://ikarta.kristianstad.se/img/legend/skno/fop_ahus.PNG" name="Teckenförklaring"/>

   <BoundingBox maxx="1596757.37137621" minx="1585638.64651044" maxy="7549578.17684699" miny="7538467.09910338" SRS="EPSG:3857"/>

   <Attribute value="MultiPolygon (((1596757.17929472 7549435.73289262, 1585756.64749203 7549578.17684697, 1585732.94086518 7538592.31382718, 1596576.57899165 7538467.67440806, 1596757.17929472 7549435.73289262)))" type="derived" name="geometry"/>

  </Feature>

</Layer>

 

Karl-Magnus Jönsson | Gis-Utvecklare
Geografisk information
Miljö- och samhällsbyggnadsförvaltningen
Kristianstads kommun
Besöksadress: Västra Storgatan 12
Postadress: 291 80 Kristianstad
Telefon: 044-135416 | Mobil: 0733-135416

karl-magnus.jonsson@...

www.kristianstad.se

 

 


_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: Feature info

Karl Magnus Jönsson

Just to clarify: The client have to use the information in the GetProjectSetting request. Is it a future enhancement or am I  missing something?

 

From the GetProjectSetting request:

<Layer displayField="Namn" geometryType="WKBMultiPolygon" queryable="1" visible="1">

<Name>ytalger_fop</Name>

<Title>Ytlager</Title>

<Attributes>

    <Attribute typeName="text" precision="-1" length="-1" editType="TextEdit" alias="Namn" type="QString" comment="" name="namn"/>

    <Attribute typeName="int4" precision="0" length="-1" editType="TextEdit" alias="Gällande" type="int" comment="" name="gallande"/>

    <Attribute typeName="text" precision="-1" length="-1" editType="TextEdit" alias="Länk" type="QString" comment="" name="url"/>

    <Attribute typeName="text" precision="-1" length="-1" editType="WebView" alias="Teckenförklaring" type="QString" comment="" name="legend2"/>

</Attributes>

Karl-Magnus

 

Från: qgis-qwc2 [mailto:[hidden email]] För Karl Magnus Jönsson
Skickat: den 1 juni 2017 12:14
Till: [hidden email]
Ämne: [qgis-qwc2] Feature info

 

Hi all!

Has there been discussions about customizing and configuring the feature info? Suppose I don’t run the latest code on client and server side right now. Maybe there have been some development made. But as it looks for me now there is room for enhancements J.

·         Title instead of layername

·         Map tip text instead of Feature id to recognize each record

·         Show image if defined in edit widgets.

·         Links clickable. (Can only right click and open link in new tab)

 

If some of these is solved in later versions I have to upgrade. Otherwise I’ll write some issuses and find out how to solve this.

 

<Layer name="skno_ok_kommuner"/>

<Layer name="ytalger_fop">

  <Feature id="15">

   <Attribute value="Åhus" name="Namn"/>

   <Attribute value="" name="Gällande"/>

   <Attribute value="https://www.kristianstad.se/contentassets/50c892f81d624857932fa8e9cf274ecf/s-86-138-kap-3-4.pdf#page=27" name="Länk"/>

   <Attribute value="http://ikarta.kristianstad.se/img/legend/skno/fop_ahus.PNG" name="Teckenförklaring"/>

   <BoundingBox maxx="1596757.37137621" minx="1585638.64651044" maxy="7549578.17684699" miny="7538467.09910338" SRS="EPSG:3857"/>

   <Attribute value="MultiPolygon (((1596757.17929472 7549435.73289262, 1585756.64749203 7549578.17684697, 1585732.94086518 7538592.31382718, 1596576.57899165 7538467.67440806, 1596757.17929472 7549435.73289262)))" type="derived" name="geometry"/>

  </Feature>

</Layer>

 

Karl-Magnus Jönsson | Gis-Utvecklare
Geografisk information
Miljö- och samhällsbyggnadsförvaltningen
Kristianstads kommun
Besöksadress: Västra Storgatan 12
Postadress: 291 80 Kristianstad
Telefon: 044-135416 | Mobil: 0733-135416

karl-magnus.jonsson@...

www.kristianstad.se

 

 


_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2