public class

BubbleOptions

extends Object
java.lang.Object
   ↳ com.tencent.tencentmap.mapsdk.maps.model.BubbleOptions

This class is deprecated.
从4.3.5版本起,标记废弃

Class Overview

气泡选项

Summary

Public Constructors
BubbleOptions()
Public Methods
BubbleOptions background(Drawable[] background)
设置背景图片
BubbleOptions background(Bitmap[] background)
设置背景图片
BubbleOptions content(String content)
设置气泡要显示的内容
BubbleOptions contentView(View view)
设置内容控件
BubbleOptions displayLevel(int level)
设置显示级别(0:不参与避让 1:避让级别最高 数字越大 避让级别越低)
Drawable[] getBackground()
获取背景图片
String getContent()
获取气泡显示的内容
View getContentView()
获取内容控件
int getDisplayLevel()
获取显示级别
Marker getMarker()
获取气泡对应的marker
float getMarkerAnchorU()
获取气泡所属marker沿x轴的锚点
float getMarkerAnchorV()
获取气泡所属marker沿y轴的锚点
int getMarkerHeight()
获取气泡所属marker的高
int getMarkerWidth()
获取气泡所属marker的宽
boolean getOnTapHidden()
该气泡点击底图区域是否隐藏
LatLng getPosition()
获取气泡的经纬度坐标(该坐标是气泡对应marker的坐标)
BubbleOptions marker(Marker marker)
设置气泡对应的marker
BubbleOptions markerAnchor(float anchorU, float anchorV)
设置气泡相对于marker沿x、y轴的偏移量
BubbleOptions markerSize(int width, int height)
设置气泡所属marker的宽、高
BubbleOptions position(LatLng position)
设置气泡的经纬度坐标(该坐标是气泡对应marker的坐标)
BubbleOptions setOnTapHidden(boolean hidden)
设置点击底图区域是否隐藏
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BubbleOptions ()

Public Methods

public BubbleOptions background (Drawable[] background)

设置背景图片

public BubbleOptions background (Bitmap[] background)

设置背景图片

public BubbleOptions content (String content)

设置气泡要显示的内容

public BubbleOptions contentView (View view)

设置内容控件

public BubbleOptions displayLevel (int level)

设置显示级别(0:不参与避让 1:避让级别最高 数字越大 避让级别越低)

public Drawable[] getBackground ()

获取背景图片

public String getContent ()

获取气泡显示的内容

public View getContentView ()

获取内容控件

public int getDisplayLevel ()

获取显示级别

public Marker getMarker ()

获取气泡对应的marker

public float getMarkerAnchorU ()

获取气泡所属marker沿x轴的锚点

public float getMarkerAnchorV ()

获取气泡所属marker沿y轴的锚点

public int getMarkerHeight ()

获取气泡所属marker的高

public int getMarkerWidth ()

获取气泡所属marker的宽

public boolean getOnTapHidden ()

该气泡点击底图区域是否隐藏

public LatLng getPosition ()

获取气泡的经纬度坐标(该坐标是气泡对应marker的坐标)

public BubbleOptions marker (Marker marker)

设置气泡对应的marker

public BubbleOptions markerAnchor (float anchorU, float anchorV)

设置气泡相对于marker沿x、y轴的偏移量

public BubbleOptions markerSize (int width, int height)

设置气泡所属marker的宽、高

public BubbleOptions position (LatLng position)

设置气泡的经纬度坐标(该坐标是气泡对应marker的坐标)

public BubbleOptions setOnTapHidden (boolean hidden)

设置点击底图区域是否隐藏

Parameters
hidden true 气泡隐藏;false气泡不隐藏;默认为不隐藏