MapShapeLayer

MapShapeLayer Properties

The MapShapeLayer class inherits from the MapLayer class - See the inherited properties.

The MapShapeLayer class exposes the following poperties:

  • Source (IShapeDataSource): Gets or sets the IShapeDataSource implementation that provides the shapes definition.
  • ShapeColorizer (MapShapeColorizer): Gets or sets the MapShapeColorizer instance that is used to provide context-based colorization of the visualized shapes, based on their attribute data.
  • IsSelectionEnabled (bool): Gets or sets a value indicating whether the shapes within the layer may be manipulated by a MapShapeSelectionBehavior instance.
  • IsPointerOverEnabled (bool): Gets or sets a value indicating whether the shapes within the layer may be manipulated by a MapShapePointerOverBehavior instance.
  • ShapeStyle (D2DShapeStyle): Gets or sets the D2DShapeStyle instance that defines the appearance of all the shapes that are currently in ShapeUIState.Normalstate.
  • ShapePointerOverStyle (D2DShapeStyle): Gets or sets the D2DShapeStyle instance that defines the appearance of all the shapes that are currently in ShapeUIState.PointerOverstate.
  • ShapeSelectedStyle (D2DShapeStyle): Gets or sets the D2DShapeStyle instance that defines the appearance of all the shapes that are currently in ShapeUIState.Selected state.
  • ShapeStyleSelector (MapShapeStyleSelector): Gets or sets the MapShapeStyleSelector instance that may be used to dynamically style a shape based on its attributes.
  • ShapeLabelAttributeName (string): Gets or sets the name of the attribute, as specified by the *.dbf file, that points to the value set to each Shape as its label.
  • ShapeLabelStyle (D2DTextStyle): Gets or sets the D2DTextStyle instance that defines the appearance of each label, displayed by the visualized shapes.
  • ShapeLabelLayoutStrategy (MapShapeLabelLayoutStrategy): Gets or sets the MapShapeLabelLayoutStrategy instance that may be used to customize the layout of each shape's label.
  • IsToolTipEnabled (bool): Gets or sets a value indicating whether the shapes within the layer may be manipulated by a MapShapeToolTipBehavior instance.
  • ShapeToolTipAttributeName (string): Gets or sets the name of the attribute, as specified by the *.dbf file, that points to the value of each Shape that is used to display a tooltip for the shape.

Here is an example of how to add a MapShapeLayer to the RadMap. You will need *.shp and *.dbf (optional) files added to your project.

<telerikMap:RadMap>
    <telerikMap:MapShapeLayer 
        IsSelectionEnabled="True"
        IsToolTipEnabled="False"
        ShapeLabelAttributeName="ADMIN_NAME">
        <telerikMap:MapShapeLayer.Source>
            <telerikMap:ShapefileDataSource 
                SourceUriString="ms-appx:///Data/global.shp"
                DataSourceUriString="ms-appx:///Data/global.dbf"/>
        </telerikMap:MapShapeLayer.Source>
    </telerikMap:MapShapeLayer>
</telerikMap:RadMap>

See Also