public final class IntersectionOverlayOptions
extends java.lang.Object
构造器和说明 |
---|
IntersectionOverlayOptions() |
限定符和类型 | 方法和说明 |
---|---|
IntersectionOverlayOptions |
bounds(android.graphics.Rect bounds)
设置展示区域,以
MapView
左上角为 (0,0),右下角为(width, height) 作为路口放大图的展示区域。 |
IntersectionOverlayOptions |
darkMode(boolean enable)
是否使用暗色,默认为 false
|
IntersectionOverlayOptions |
data(byte[] data)
设置要展示的数据
|
IntersectionOverlayOptions |
distance(int distance)
设置两点距离
|
android.graphics.Rect |
getBounds()
获取展示区域
|
byte[] |
getData()
获取展示的数据
|
java.lang.String |
getDayStyleFilePath()
白天路口大图样式路径
|
int |
getDistance()
获取距离
|
java.lang.String |
getNightStyleFilePath()
夜晚路口大图样式路径
|
boolean |
isDarkMode()
是否暗色模式
|
boolean |
isRoundedCorner()
是否圆角样式
|
boolean |
isVisibility()
是否可见
|
IntersectionOverlayOptions |
roundedCorner(boolean enable)
是否设置圆角,默认为 false
|
IntersectionOverlayOptions |
setDayStyleFilePath(java.lang.String path)
设置白天路口大图样式文件路径
|
IntersectionOverlayOptions |
setNightStyleFilePath(java.lang.String path)
设置夜晚路口大图样式文件路径
|
IntersectionOverlayOptions |
visibility(boolean visibility)
设置可见性
|
public android.graphics.Rect getBounds()
public IntersectionOverlayOptions bounds(android.graphics.Rect bounds)
MapView
左上角为 (0,0),右下角为(width, height) 作为路口放大图的展示区域。bounds
- 路口放大图的展示区域,单位:px(像素)public byte[] getData()
public IntersectionOverlayOptions data(byte[] data)
data
- public boolean isVisibility()
public IntersectionOverlayOptions visibility(boolean visibility)
visibility
- public int getDistance()
public IntersectionOverlayOptions distance(int distance)
distance
- public boolean isDarkMode()
public IntersectionOverlayOptions darkMode(boolean enable)
enable
- public boolean isRoundedCorner()
public IntersectionOverlayOptions roundedCorner(boolean enable)
enable
- public java.lang.String getDayStyleFilePath()
public IntersectionOverlayOptions setDayStyleFilePath(java.lang.String path)
path
- public java.lang.String getNightStyleFilePath()
public IntersectionOverlayOptions setNightStyleFilePath(java.lang.String path)
path
-