szgeoinfo.Label3D

Class: szgeoinfo.Label3D


new Label3D(id,point,text,pillar)

三维实例化Lable对象

Parameters:
Name Type Description
id string

Label3D的标识

point szgeoinfo.Point

坐标

text option

Properties
Name Type Description
name string

标注的文字

color string

文字的颜色,默认#FFFFFF

show boolean

是否显示文字,默认true

pillar option

Properties
Name Type Description
width int

标杆的宽度,默认1

color string

标杆的颜色,默认#FFFFFF

img string

标杆的图片地址

size array

标杆的图片宽高,默认[32,32]

height int

标杆的高度

changeHt boolean

标杆是否随视角变化,默认false

Example
 var point = new szgeoinfo.Point(114.03334, 22.5465);
 var text={
            name:"规划大厦",
            color:"#363C48",
            show:false
        };
 var pillar= {
            width: 5,
            color:"#363C48",
            img: "images/newQuery/point1.png",
            size:[32,32],
           // height:200,
            changeHt:true
        };
 var label3d = new szgeoinfo.Label3D("testlabel_123",point,text,pillar);
 map.addLabel3D(label3d);//添加lable3D标注
 map.removeLabel3D(label3d);map.removeLabel3DById("testlabel_123");//根据lable3D对象删除对象,根据Id删除
 map.removeLabel3DAll();//删除所有的lable3D对象