In my WMS layer I have a URL pointing to an image. Does anyone have an example of how to manipulate the HTML template to display the image?
closed as off-topic by PolyGeo♦ Jul 27 '16 at 20:47
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
I think it would look something like:
[standard template] ... <xsl:variable name="quote">"</xsl:variable> ... [standard template] ... <xsl:for-each select="esri_wms:FeatureInfo"> <tr> <xsl:if test="(position() + 1) mod 2"> <xsl:attribute name="bgcolor">#eeeeee</xsl:attribute> </xsl:if> <xsl:for-each select="esri_wms:Field"> <xsl:choose> <xsl:when test="some test for your attribute with the url..."> <td> <xsl:value-of select="concat(<,'img src=',$quote,esri_wms:FieldValue,$quote,'/',>)" /> </td> </xsl:when> <xsl:otherwise> <td> <xsl:value-of select="esri_wms:FieldValue"/> </td> </xsl:otherwise> </xsl:choose> </xsl:for-each> </tr>