[mapguide-users] Color code in layerdefinition file
SriRam007
binod_tripathy at yahoo.co.in
Wed Feb 24 07:26:10 EST 2010
Hi everyone,
Can i apply this color codes for a label control.
I have got this XML file of a layerdefinition.
I want to use the colors (Which are in Bold) for a asp.net label control as
backcolor in my invoke url command page for showing the user currently used
color for a line type or for a Label. But i cant able to apply it.
which format is this "FFFFFFFF" ???????
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.3.0.xsd" version="1.3.0">
<VectorLayerDefinition>
<ResourceId>Library://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource</ResourceId>
<FeatureName>SHP_Schema:RoadCenterLines</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Geometry>SHPGEOM</Geometry>
<VectorScaleRange>
<MaxScale>10000</MaxScale>
<LineTypeStyle>
<LineRule>
<LegendLabel>
</LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0</SizeX>
<SizeY>8</SizeY>
<Text>"NAME"</Text>
<FontName>Verdana</FontName>
<ForegroundColor>FF000000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Transparent</BackgroundStyle>
<HorizontalAlignment>'Center'</HorizontalAlignment>
<VerticalAlignment>'Baseline'</VerticalAlignment>
<AdvancedPlacement>
<ScaleLimit>0.5</ScaleLimit>
</AdvancedPlacement>
</Label>
<LineSymbolization2D>
<LineStyle>Solid</LineStyle>
<Thickness>0.5</Thickness>
<Color>FFFF00FF</Color>
<Unit>Millimeters</Unit>
<SizeContext>DeviceUnits</SizeContext>
</LineSymbolization2D>
</LineRule>
</LineTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>"10000"</MinScale>
<MaxScale>24000</MaxScale>
<LineTypeStyle>
<LineRule>
<LegendLabel>
</LegendLabel>
<LineSymbolization2D>
<LineStyle>Solid</LineStyle>
<Thickness>0.5</Thickness>
<Color>FF808080</Color>
<Unit>Millimeters</Unit>
<SizeContext>DeviceUnits</SizeContext>
</LineSymbolization2D>
</LineRule>
</LineTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
--
View this message in context: http://n2.nabble.com/Color-code-in-layerdefinition-file-tp4625368p4625368.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list