Pitney Bowes MapXtreme User Manual

Page 360

Advertising
background image

Chapter 19: Web Map Service

Configuring Layer Information for a WMS Server

MapXtreme v7.1

367

Developer Guide

Feature Layers and More

You are not limited to including Feature layer information in your WMS layers. For example, you can
also capture label, themes and style overrides in Workspace Manager and paste those sections in
your WMS Configuration file.

Here is a portion of an .MWS that defines a graduated symbol theme for a population layer. Notice
that every element that defines the theme is captured here. When you paste this into your WMS
configuration file, remember to include in each element mxp:

<ObjectThemeLayer id="id8" name="Graduated Symbol Theme on World Capitals
by Cap_Pop" alias="GraduatedSymbolThemeLayer1" volatile="unknown">
<Visibility visible="true">
<VisibleRange enabled="false">
<ZoomRange uom="mapinfo:length mi" minInclusive="true"
maxInclusive="false">0 0</ZoomRange>
</VisibleRange>
</Visibility>
<DataSourceRef ref="id4" />
<FeatureGraduatedSymbolTheme id="id9">
<Alignment>
<HorizontalAlignment>center</HorizontalAlignment>
<VerticalAlignment>center</VerticalAlignment>
</Alignment>
<SymbolBaseSize useScale="false">
<MapScale>1.0</MapScale>
<DataValueAtSize>20000000</DataValueAtSize>
<PositiveSymbol>
<PointStyle>
<FontSymbol size="18" size-unit="mapinfo:length pt"
stroke="red" stroke-opacity="1" text="&quot;" family="MapInfo 3.0
Compatible" />
</PointStyle>
</PositiveSymbol>
<NegativeSymbol visible="false">
<PointStyle>
<FontSymbol size="18" size-unit="mapinfo:length pt"
stroke="blue" stroke-opacity="1" text="&quot;" family="MapInfo 3.0
Compatible" />
</PointStyle>
</NegativeSymbol>
<SymbolGraduation>sqrt</SymbolGraduation>
</SymbolBaseSize>
<SymbolLayout />
<NumericValueExpression>
<AttributeName>Cap_Pop</AttributeName>
</NumericValueExpression>
<SymbolLegendRowOverrideSet>
<SymbolLegendRowOverride visible="false" row="4" />
<SymbolLegendRowOverride visible="false" row="5" />
<SymbolLegendRowOverride visible="false" row="6" />
</SymbolLegendRowOverrideSet>
</FeatureGraduatedSymbolTheme>

Advertising