Customize Web Maps look and feel
The HTML web interface for Web Maps is generated by applying XSLT styling to XML output from Web Maps. It is possible to customize:
- The CSS stylesheet used by the HTML to change colours, fonts, etc.
- The XSL to change the HTML generated, e.g. to change the screen layout of the map client.
- The Javascript system that operates the map controls, e.g. to add or change control functionality.
Note: Modifying the XSL and Javascript requires specialist skills. We are able to customize these aspects of Web Maps by arrangement if suitable resources are not readily available to your organization.
Web Maps generates an XML response to queries. Typically this is converted to HTML using XSL to display the Web Maps web interface in a browser. It is possible to extract data from the XML response and use it for other purposes or to use custom built XSL transformations to create alternative user interfaces or views of the mapped data.
The following is an example of a somewhat simplified XML response from Web Maps:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<mapper status='success'>
<map>/emuweb/tmp/wscache/123456.gif</map>
<scale>10000000</scale>
<scalebar>/emuweb/tmp/wscache/1234567.gif</scalebar>
<referenceMap>/emuweb/tmp/wscache/12345678.gif</referenceMap>
<mapProjection>+proj=latlong +ellps=GRS80 +datum=NAD83</mapProjection>
<projectionUnits>DEGREES</projectionUnits>
<extent>148 -48 180 -32</extent>
<layers>
<staticLayer>
<layerName>LandSea_Topographic</layerName>
<name>LandSea Topographic</name>
</staticLayer>
<staticLayer>
<layerName>Australia Landsat</layerName>
<name>Australia Landsat</name>
</staticLayer>
<staticLayer>
<layerName>World_Boundaries</layerName>
<name>World Boundaries</name>
</staticLayer>
</layers>
<displayParameters>
<imgWidth>800</imgWidth>
<imgHeight>400</imgHeight>
<scalebarWidth>700</scalebarWidth>
<scalebarHeight>5</scalebarHeight>
<referenceMapWidth>256</referenceMapWidth>
<referenceMapHeight>127</referenceMapHeight>
</displayParameters>
</mapper>
Values in the <map>, <scalebar> and <referenceMap> elements are essentially urls to images of the map, scalebar and a small status map.
This response can be styled using XSL to create an HTML page displaying the map, scalebar and layer information.
The standard default XSL stylesheet is located at:
~web/webservices/mapper/style/mapdisplay.xsl
Any client specific customizations would be located in:
~web/webservices/mapper/CLIENT/style/mapdisplay.xsl

