[mapguide-users] ResizeBox
Jamo
adam.jamison at portbris.com.au
Sun Mar 15 22:06:58 EDT 2009
I cannot seem to get the syntax right for the resizebox control...
I would basically like to scale the symbol and make it fit to the ResizeBox
...
<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd" version="1.1.0">
<Name>House</Name>
<Graphics>
<Path>
<ResizeControl>'AdjustToResizeBox'</ResizeControl>
<Geometry>
M 0.407,-1.604 L -0.268,-1.766 L -0.307,0.122 L -0.638, 0.086 L 0.711,1.686
L 2,0.371 L 1.711,0.34 L 1.67,-1.301 L 1.177,-1.419 L 1.177,0.282 L
0.407,0.199 Z
M -0.477,0.738 L -0.808,0.808 L -0.808,1.411 L -0.477,1.411 Z
M -0.42,0.726 L -0.42,1.41 L -0.16,1.41 L -0.16,0.961 Z
</Geometry>
<FillColor>%FillColor2%</FillColor>
<LineColor>%LineColor%</LineColor>
<LineWeight>0.0</LineWeight>
</Path>
<Path>
<ResizeControl>'AdjustToResizeBox'</ResizeControl>
<Geometry>
M -0.268,-1.766 L -1.636,-1.081 L -1.739,0.421 L -0.638,0.086 L
-0.307,0.122 Z
M -0.638,0.086 L -2,0.5 L -0.662,1.766 L 0.711,1.686 Z
M 1.177,-1.419 L 0.407,-1.064 L 0.407,0.199 L 1.177,0.282 Z
</Geometry>
<FillColor>%FillColor1%</FillColor>
<LineColor>%LineColor%</LineColor>
<LineWeight>0.0</LineWeight>
</Path>
</Graphics>
<ResizeBox>
<SizeX>6</SizeX>
<SizeY>5</SizeY>
<PositionX>0</PositionX>
<PositionY>0</PositionY>
<GrowControl>'GrowInXY'</GrowControl>
</ResizeBox>
<PointUsage>
<Angle>%Rot%</Angle>
</PointUsage>
<ParameterDefinition>
<Parameter>
<Identifier>Rot</Identifier>
<DefaultValue/>
<DisplayName>Rotation</DisplayName>
<Description>Point Symbol Rotation</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>FillColor1</Identifier>
<DefaultValue/>
<DisplayName>Fill Color 1</DisplayName>
<Description>The Fill Color</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>FillColor2</Identifier>
<DefaultValue/>
<DisplayName>Fill Color 2</DisplayName>
<Description>The Fill Color</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>LineColor</Identifier>
<DefaultValue/>
<DisplayName>Line Color</DisplayName>
<Description>The Line Color</Description>
<DataType>String</DataType>
</Parameter>
<Parameter>
<Identifier>Label</Identifier>
<DefaultValue/>
<DisplayName>Label</DisplayName>
<Description>The Label Text</Description>
<DataType>String</DataType>
</Parameter>
</ParameterDefinition>
</SimpleSymbolDefinition>
--
View this message in context: http://n2.nabble.com/ResizeBox-tp2483804p2483804.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list