Pitney Bowes MapXtreme User Manual

Page 490

Advertising
background image

Appendix C: Understanding the MapInfo Workspace

Creating an .MWS Workspace Programmatically from a .GST

MapXtreme v7.1

497

Developer Guide

</StringTokenList>
<LabelCharacterLimit
spacing="1">2147483647</LabelCharacterLimit>
</LabelText>
<LabelCallout visible="true" end="none">
<LineStyle stroke="black" width="1" width-
unit="mapinfo:imagesize pixel">
<Pen>mapinfo:pen 2</Pen>
</LineStyle>
</LabelCallout>
<LabelReferencePosition recalculate="outOfView">
<LineLabelPositionInterval>0</LineLabelPositionInterval>
</LabelReferencePosition>
<LabelLayout>
<Alignment>
<HorizontalAlignment>right</HorizontalAlignment>
<VerticalAlignment>center</VerticalAlignment>
</Alignment>
<Offset uom="mapinfo:imagesize pixel">
<XOffset>-2</XOffset>
<YOffset>0</YOffset>
</Offset>
<LabelRelativeOrientation>parallel</LabelRelativeOrientation>
</LabelLayout>
<LabelBaseSize useScale="false">
<MapScale>0</MapScale>
</LabelBaseSize>
</LabelProperties>
</BaseLabelProperties>
<LabelThemeList />
</LabelSource>

</LayerList>

</MapDefinition>

</MapDefinitionSet>

The layer list displays with the label properties that are set for this map. These properties include the
layer the labels are on, the file source for the labels, the visibility rules for the labels including the
range at which the labels are visible, if applicable, the font and size properties of the labels, the label
character limits, callouts, if applicable, label position settings, alignment, justification, and orientation
of the label with regard to the point it is labeling.

Creating an .MWS Workspace Programmatically from a .GST

In MapX, you used the Map.SaveMapAsGeoset method to create a geoset from the existing map.
You give users the ability to save their workspaces programmatically as well and view these
workspaces in the Workspace Manager later on using the code fragment shown below.

L

Users need to have a map open with one or more layers to save it as a workspace.

Advertising