程序包 | 说明 |
---|---|
com.amap.api.maps.model |
覆盖物包,覆盖物(叠加或覆盖到地图的内容)支持标记、折线、多边形和圆。
|
com.amap.api.maps.model.particle |
粒子效果类,用于添加粒子效果覆盖物。
|
com.amap.api.maps.utils.overlay |
工具类,基于地图现有接口实现的高级功能。
|
限定符和类型 | 方法和说明 |
---|---|
static BitmapDescriptor |
BitmapDescriptorFactory.defaultMarker()
创建默认的marker 图标的 bitmap 描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.defaultMarker(float hue)
API 提供了10 个颜色的Marker 图标,用户可以通过此方法传入值来调用。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromAsset(java.lang.String assetName)
根据 asset 目录内资源名称,创建 bitmap 描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromBitmap(android.graphics.Bitmap image)
根据 Bitmap 创建 bitmap 描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromFile(java.lang.String fileName)
根据应用程序私有文件夹里包含文件的文件名创建 bitmap 描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromPath(java.lang.String absolutePath)
根据图片文件的绝对地址,创建 bitmap 描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromResource(int resourceId)
根据图片的资源Id,创建bitmap描述信息对象。
|
static BitmapDescriptor |
BitmapDescriptorFactory.fromView(android.view.View view)
根据一个 View 创建 Bitmap 描述信息对象
|
BitmapDescriptor |
PolylineOptions.getCustomTexture()
获取线段的纹理图。
|
BitmapDescriptor |
MarkerOptions.getIcon()
获取Marker覆盖物的图标。
|
BitmapDescriptor |
MultiPointOverlayOptions.getIcon()
获取海量点的显示图标
|
BitmapDescriptor |
GroundOverlayOptions.getImage()
获取 ground 覆盖物的bitmap描述信息。
|
BitmapDescriptor |
GLTFOverlay.getInfoWindowView()
获取InfoWindowView
|
BitmapDescriptor |
GLTFOverlayOptions.getInfoWindowView()
获取点击的infoWindowView
|
BitmapDescriptor |
MyLocationStyle.getMyLocationIcon()
得到当前位置的图标。
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<BitmapDescriptor> |
PolylineOptions.getCustomTextureList()
获取线段纹理列表
|
java.util.ArrayList<BitmapDescriptor> |
Marker.getIcons()
返回Marker动画帧的图标列表。
|
java.util.ArrayList<BitmapDescriptor> |
MarkerOptions.getIcons()
获取Marker覆盖物的动画帧图标列表,动画的描点和大小以第一帧为准,建议图片大小保持一致。
|
限定符和类型 | 方法和说明 |
---|---|
MarkerOptions |
MarkerOptions.icon(BitmapDescriptor icon)
设置Marker覆盖物的图标。
|
MultiPointOverlayOptions |
MultiPointOverlayOptions.icon(BitmapDescriptor bitmapDescriptor)
设置海量点的显示图标
|
GroundOverlayOptions |
GroundOverlayOptions.image(BitmapDescriptor image)
设置 ground 覆盖物的图片信息。
|
void |
GLTFOverlayOptions.infoWindowView(BitmapDescriptor view)
设置点击的infoWindowView
|
MyLocationStyle |
MyLocationStyle.myLocationIcon(BitmapDescriptor myLocationIcon)
设置定位(当前位置)的icon图标。
|
void |
Polyline.setCustomTexture(BitmapDescriptor customTexture)
设置线段的自定义纹理
|
PolylineOptions |
PolylineOptions.setCustomTexture(BitmapDescriptor customTexture)
设置线段的纹理图,图片为2的n次方。
|
void |
Marker.setIcon(BitmapDescriptor icon)
设置 Marker覆盖物的图标
|
void |
GroundOverlay.setImage(BitmapDescriptor icon)
设置ground 覆盖物的图片信息,新图片会使用老图片的矩形区域。
|
void |
GLTFOverlay.setInfoWindowView(BitmapDescriptor view)
设置InfoWindowView
|
限定符和类型 | 方法和说明 |
---|---|
MarkerOptions |
MarkerOptions.icons(java.util.ArrayList<BitmapDescriptor> icons)
设置Marker覆盖物的动画帧图标列表,多张图片模拟gif的效果。
|
PolylineOptions |
PolylineOptions.setCustomTextureList(java.util.List<BitmapDescriptor> customTextureList)
设置线段纹理list
|
void |
Marker.setIcons(java.util.ArrayList<BitmapDescriptor> icons)
设置 Marker 的图标集合,相同图案的 icon 的 marker 最好使用同一个 BitmapDescriptor 对象以节省内存空间。
|
限定符和类型 | 方法和说明 |
---|---|
BitmapDescriptor |
ParticleOverlayOptions.getIcon()
获取粒子效果的图标
|
限定符和类型 | 方法和说明 |
---|---|
ParticleOverlayOptions |
ParticleOverlayOptions.icon(BitmapDescriptor icon)
设置覆盖物的图标。
|
限定符和类型 | 方法和说明 |
---|---|
void |
SmoothMoveMarker.setDescriptor(BitmapDescriptor descriptor)
已过时。
设置移动Marker的图标
|