[mapguide-users] Symbol Help..

Jamo adam.jamison at portbris.com.au
Sun Mar 22 21:56:43 EDT 2009


I've defined a symbol definition and it all works good however there are a
few oddities I would like to change.

The Symbol in the legend seems to try and render the text which in turn
shrinks the legend symbol... I would like to remove the text from the legend
symbol.

when clicking on the symbol I have to click on or close to the symbol
center, I would like to be able to click anywhere on the symbol in order to
display the properties.

The text fields can sometimes be rather long, I would like to send the text
to a new line after the first space after say 16 characters ... so

The quick brown fox jumped over the lazy dog

would become

The quick brown
fox jumped over
the lazy dog

<?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>
			<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>
			<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>
		<Text>
			<Content>%Label%</Content>
			<FontName>'Arial'</FontName>
			<Height>2</Height>
			<PositionY>-3.5</PositionY>
			<Justification>'Center'</Justification>
			<GhostColor>FFFFFFFF</GhostColor>
		</Text>
	</Graphics>
	<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/Symbol-Help..-tp2519133p2519133.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list