Sort of found a way the resizeBox can work. (it is relevant to the size of the actual symbol) the symbol is made to fit 1x1 so when the user inputs size it scale accordingly.
Would like the text to scale to fit in the ship in the X direction as well... so if it was a longer name it would be scaled down in the X and Y so it fits, it seems to not scale down though? Also the ghosted text does not work? <?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>Ship</Name> <Graphics> <Path> <ResizeControl>'AddToResizeBox'</ResizeControl> <Geometry> M 0,0 L 0.167,1 L 1,1 L 1,-1 L 0.167,-1 Z </Geometry> <LineWeight>0.0</LineWeight> </Path> <Text> <ResizeControl>'AdjustToResizeBox'</ResizeControl> <Content>%NAME%</Content> <FontName>Arial</FontName> <Height>0.5</Height> <Angle>0</Angle> <PositionX>0.15</PositionX> <HorizontalAlignment>'Center'</HorizontalAlignment> <GhostColor>'22055555'</GhostColor> </Text> </Graphics> <ResizeBox> <SizeX>1</SizeX> <SizeY>1</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>NAME</Identifier> <DefaultValue/> <DisplayName>Vessel Name</DisplayName> <Description>Vessel Name for Symbol</Description> <DataType>String</DataType> </Parameter> </ParameterDefinition> </SimpleSymbolDefinition> -- View this message in context: http://n2.nabble.com/Resize-Box-hows-it-work-tp4015582p4015844.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
