Developer Samples Guide
Developer Samples Guide
This sample uses data from the BuildMap developer sample. When you run
BuildMap, it writes these files to the directory containing BuildMap.dll. See
the Developer Samples Guide for details.
One file is Zoning.layer. This specifies all the properties for drawing one layer
in a map. Note the <ResourceId> element, which refers to the resource for
the feature source.
<?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"
version="1.0.0">
<VectorLayerDefinition>
<ResourceId>Library://Data/SDF/Zoning.FeatureSource
</ResourceId>
<FeatureName>Schema:Zoning</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<Geometry>Geometry</Geometry>
<VectorScaleRange>
<AreaTypeStyle>
<AreaRule>
<LegendLabel />
<AreaSymbolization2D>
<Fill>
<FillPattern>Solid</FillPattern>
<ForegroundColor>a03cafda</ForegroundColor>
<BackgroundColor>FF000000</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.0</Thickness>
<Color>FF000000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
12 | Chapter 2 Resources