Class: FMExternalModel

FMExternalModel

FMExternalModel 外部建模模型对象,是一种地图内置图层的对象,只读,不可实例化。属于fengmap.map.min.js

new fengmap.FMExternalModel()

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

color

Properties:
Name Type Description
color string

颜色值

readonlyeName

英文名称

Properties:
Type Description
string

readonlyFID

模型ID

Properties:
Type Description
string

readonlyheight

模型高度

Properties:
Type Description
number

readonlyID

模型ID

Properties:
Type Description
number

readonlylevel

模型所在层级

Properties:
Type Description
string

readonlyname

模型名称

Properties:
Type Description
string

readonlytype

Properties:
Name Type Description
type fengmap.FMType

节点类型

readonlytypeID

数据类型ID

Properties:
Type Description
string

visible

Properties:
Name Type Description
visible Boolean

true 显示 false 隐藏

readonlyx

中点X轴坐标

Properties:
Name Type Description
返回该层的中点X轴坐标 number

readonlyy

中点Y轴坐标

Properties:
Name Type Description
返回该层的中点Y轴坐标 number

readonlyzoomRange

模型比例尺范围属性

Properties:
Type Description
object

Methods

inherited dispose()

废置地图对象

getActionNames(){*}

获取所有动画片段名称

Returns:
Type Description
*

getBound(){Object}

获取模型边界

Deprecated
  • 3.1.5 版本及以后版本将不可用
    Returns:
    Type Description
    Object 获取模型边界 minX: mbound.minX, maxX: mbound.maxX, minY: mbound.minY, maxY: mbound.maxY

    getData(){Object}

    获取外部模型数据属性

    Returns:
    Name Type Description
    Object Object 地板的数据属性
    Name Type Description
    ID string 图层唯一id
    typeID string 数据类型ID
    FID string 模型FID
    height number 高度
    name string 模型名字
    eName string 模型英文名字
    minLevel int 最小显示级别
    maxLevel int 最大显示级别
    pass int 通过标识

    getTextureNames(){Array}

    获取所有添加了视频或gif图的纹理

    Returns:
    Type Description
    Array 返回查询结果。

    startAction(name, once)

    开始播放模型对象的动画

    Name Type Description
    name string

    模型对象的动画name名称

    once boolean

    true 只执行一次动画,false 循环执行;默认 false

    stopAction(name)

    停止播放模型对象的动画

    Name Type Description
    name string

    模型对象的动画name名称

    inherited traverse(callback)

    遍历返回子节点

    Name Type Description
    callback