Open Pioneer Trails Packages
    Preparing search index...

    Interface LegendItemAttributes

    Attributes of the legend attribute that can be specified on a layer.

    To show a legend for the layer, provide an imageUrl to an image to show or provide a React component that will be rendered as a legend.

    LegendItemAttributes should be registered with a layer as the "legend" attribute.

    interface LegendItemAttributes {
        Component?: ComponentType<LegendItemComponentProps>;
        imageUrl?: string;
    }
    Index

    Properties

    Component?: ComponentType<LegendItemComponentProps>

    (Optional) React component that will be shown as customized legend for the layer.

    imageUrl?: string

    (Optional) URL to an image that will be shown as a legend for the layer.