Interface MapviewControllerCustomInitArgs

interface MapviewControllerCustomInitArgs {
    cameraType?: "auto" | "orthographic" | "perspective";
    defaultDistance?: number;
    defaultLatitude?: number;
    defaultLongitude?: number;
    intersectMeshCreator?: (() => IntersectMeshInterface);
    maxLatitude?: number;
    minLatitude?: number;
    modelInScreen?: "none" | "boundingbox-center";
}

Properties

cameraType?: "auto" | "orthographic" | "perspective"

相机类型 perspective 透视相机 orthographic 正交相机 auto 在俯视为正交相机, 斜视为透视相机(默认)

defaultDistance?: number

默认相机距离

defaultLatitude?: number

默认俯仰角

defaultLongitude?: number

默认水平角

intersectMeshCreator?: (() => IntersectMeshInterface)

鼠标焦点环自定义创建器

maxLatitude?: number

最大俯仰角

minLatitude?: number

最小俯仰角

modelInScreen?: "none" | "boundingbox-center"

模型是否限制在屏幕中 bounding-center 模型包围盒中心必须在屏幕内 none 不限制