There are several ways to name a Feature in OpenCities Map - by Feature Name, Display Name, Collection Name, Table Name, Label, Category Name, Sub-Feature Name, etc. Defining a Display Name to these Features can provide flexibility to the administrator for organization and data interoperability.
Similarly, Property Names can have an alternate Display Name which makes it better suited, and easily recognizable than the original Property Name.
Compare the two summaries, before and after defining a Display Name:
Display Names provide a way to make the Feature Name readable. This is especially apparent when reviewing Features using the Analyze Feature command in OpenCities Map.
Compare the two Analyze Results, before and after defining and ordering by Display Name:
You can Sort By Display Name and get these results by modifying the default.xslt file that is delivered with OpenCities Map, and adding the line:
<xsl:sort select="@displayName" />
The default.xslt file is located in the ...\MapEnterprise\xml\xslt installation folder.
1. Copy and rename default.xslt so you will have a backup of the file.
2. Edit default.xslt to look like this:
<xsl:for-each select="*">
<table width="100%" CELLSPACING="0" CELLPADDING="0" BORDER="1">
<tr class="feature" style="display:block;">
<xsl:choose>
<xsl:when test="@displayName">
<td class="feature" colspan="2"><xsl:value-of select="@displayName"/></td>
</xsl:when>
<xsl:otherwise>
<td class="feature" colspan="2"><xsl:value-of select="name()"/></td>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr class="head" style="display:block;">
<td>Property</td>
<td>Value</td>
</tr>
<xsl:apply-templates select="*">
<xsl:sort select="@displayName" />
<xsl:with-param name="tag">exp<xsl:value-of select="generate-id()"/></xsl:with-param>
</xsl:apply-templates>
</table>
</xsl:for-each>
Now each time you use the Analyze Result, the list will be alphabetized and sorted by Display Name.
Additional Resources:
- Creating Clickable Links on Feature Properties (xslt)
- Bentley Map V8i XFM-Hyperlink
- Default.xslt - select to download the file