Open Pioneer Trails Packages
    Preparing search index...

    Options that specify which map to use. See useMapModel.

    When not setting any of these properties on a component, the default map (from the DefaultMapProvider) will be used. If that is not available either, an error will be thrown.

    interface ZoomProps {
        buttonProps?: Partial<ButtonProps>;
        map?: MapModel;
        mapId?: string;
        zoomDirection: "in" | "out";
    }

    Hierarchy (View Summary)

    • CommonComponentProps
    • RefAttributes<HTMLButtonElement>
    • MapModelProps
      • ZoomProps
    Index

    Properties

    buttonProps?: Partial<ButtonProps>

    Additional properties for the Button element.

    Note that the ToolButton also defines some of these props.

    map?: MapModel

    The map model to use.

    mapId?: string

    The id of the map. The map will be looked up in the MapRegistry service.

    Use the map property instead.

    zoomDirection: "in" | "out"

    The zoom direction.

    The button will either zoom in or zoom out depending on this value.