public class Building extends Prism
| Modifier and Type | Class and Description |
|---|---|
static class |
Building.AnimateType
楼层动画类型
|
listener, mcLocation, mDrawItem, type| Constructor and Description |
|---|
Building() |
| Modifier and Type | Method and Description |
|---|---|
Prism.AnimateType |
getBuildingFloorAnimateType()
获取楼层动画类型
|
int |
getBuildingId()
获取楼块id
|
BuildingInfo |
getBuildingInfo()
获取建筑物信息
|
int |
getFloorColor()
获取楼层颜色
|
float |
getFloorHeight()
获取楼层高度
|
BitmapDescriptor |
getFloorSideTextureImage()
获取楼层侧面纹理
|
float |
getHeight()
获取高度
|
java.util.List<LatLng> |
getPoints()
获取棱柱坐标点
|
float |
getRoundedCornerRadius()
获取圆角设置半径 默认5.0f
|
int |
getShowLevel()
获取建筑物显示层级
|
int |
getSideFaceColor()
获取3D棱柱侧面颜色
|
int |
getTopFaceColor()
获取3D棱柱顶面颜色
|
boolean |
isAnimation()
建筑物是否有生长动画
|
boolean |
isRoundedCorner()
获取圆角开关是否开启
|
void |
setAnimation(boolean mIsAnimation)
设置建筑物是否有生长动画
|
void |
setBuildingFloorAnimateType(Prism.AnimateType buildingFloorAnimateType)
设置楼层动画类型
|
void |
setBuildingInfo(BuildingInfo buildingInfo)
设置建筑物3D棱柱
|
void |
setFloorColor(int floorColor)
设置楼层颜色
|
void |
setFloorHeight(float floorHeight)
设置楼层高度
|
void |
setFloorSideTextureImage(BitmapDescriptor floorSideTextureImage)
设置楼层侧面纹理
|
void |
setRoundedCornerEnable(boolean isRoundedCorner)
是否设置圆角,默认为false
7.6.2版本开始支持
|
void |
setRoundedCornerRadius(float roundedCornerRadius)
当设置圆角时,最大的圆角半径,可根据实际体验调整。
开启圆角后,设置圆角半径,建议范围1~10 默认为5.0f
7.6.2版本开始支持
|
void |
setShowLevel(int showLevel)
设置建筑物显示层级
|
getCustomSideImage, setCustomSideImage, setHeight, setPoints, setSideFaceColor, setTopFaceColorcircleHoleInfo2BmGeo, getBmLayer, getDrawItem, getExtraInfo, getName, getOverlayLatLngBounds, getZIndex, holeInfo2BmGeo, isRemoved, isVisible, polygonHoleInfo2BmGeo, remove, setBmLayer, setDottedBitmapResource, setDrawItem, setExtraInfo, setVisible, setZIndexpublic int getShowLevel()
public void setShowLevel(int showLevel)
showLevel - public boolean isAnimation()
public void setAnimation(boolean mIsAnimation)
mIsAnimation - public java.util.List<LatLng> getPoints()
public int getTopFaceColor()
getTopFaceColor in class Prismpublic int getSideFaceColor()
getSideFaceColor in class Prismpublic BuildingInfo getBuildingInfo()
public float getFloorHeight()
public boolean isRoundedCorner()
public float getRoundedCornerRadius()
public void setRoundedCornerEnable(boolean isRoundedCorner)
isRoundedCorner - 圆角开关public void setRoundedCornerRadius(float roundedCornerRadius)
roundedCornerRadius - 圆角半径public void setFloorHeight(float floorHeight)
floorHeight - public int getBuildingId()
public int getFloorColor()
public void setFloorColor(int floorColor)
floorColor - 楼层颜色public BitmapDescriptor getFloorSideTextureImage()
public void setFloorSideTextureImage(BitmapDescriptor floorSideTextureImage)
floorSideTextureImage - 楼层侧面纹理public Prism.AnimateType getBuildingFloorAnimateType()
public void setBuildingFloorAnimateType(Prism.AnimateType buildingFloorAnimateType)
buildingFloorAnimateType - public void setBuildingInfo(BuildingInfo buildingInfo)
buildingInfo - 建筑物信息