程序包 | 说明 |
---|---|
com.mapbar.map |
3D地图应用开发包
提供基础3D地图开发功能接口,可以独立开发3D地图。 |
限定符和类型 | 类和说明 |
---|---|
class |
CustomAnnotation
用户自定义弹出气泡
气泡图片格式必须是 Bitmap.Config.ARGB_8888 ,且带透明度图片被alpha值premultiplied过 |
限定符和类型 | 方法和说明 |
---|---|
Annotation[] |
MapRenderer.hitTestAnnotations(android.graphics.Point clickPoint)
给定一个点,返回此位置可点击到的所有
Annotation 。 |
限定符和类型 | 方法和说明 |
---|---|
void |
MapRenderer.addAnnotation(Annotation annotation)
添加Annotation到MapRenderer对象
|
void |
MapRenderer.detachAnnotation(Annotation annotation)
从MapRenderer中返回Annotation,与
MapRenderer.removeAnnotation(Annotation) 类似,
不同的是,不会释放Annotation资源,可再次添加到MapRenderer |
void |
OffscreenSurface.onAnnotationClicked(Annotation annot,
int area) |
void |
MapRenderer.Listener.onAnnotationClicked(Annotation annot,
int area)
点击
Annotation 时触发的回调此回调实际上运行于 MapRenderer.onTouchUp(int, int[], int[], int[]) 方法中,在点击Annotation 或其弹出气泡时被调用 |
void |
MapView.onAnnotationClicked(Annotation annot,
int area) |
void |
OffscreenSurface.onAnnotationDeselected(Annotation annot) |
void |
MapRenderer.Listener.onAnnotationDeselected(Annotation annot)
当
Annotation 未被选中时触发的回调
此回调实际上运行于MapRenderer.onTouchUp(int, int[], int[], int[]) 方法中 |
void |
MapView.onAnnotationDeselected(Annotation annot) |
void |
MapView.onAnnotationsClicked(Annotation[] annots)
点击到一个或多个
Annotation ,在MapView.onAnnotationClicked(Annotation, int)
中触发,若子类重写了此方法 ,需要调用父类的super.onAnnotationClicked。 |
void |
OffscreenSurface.onAnnotationSelected(Annotation annot) |
void |
MapRenderer.Listener.onAnnotationSelected(Annotation annot)
当
Annotation 被选中时触发的回调此回调实际上运行于 MapRenderer.onTouchUp(int, int[], int[], int[]) 方法中,当Annotation 的图标被点击,但它的弹出气泡没有想显示的情况下出发此回调。 |
void |
MapView.onAnnotationSelected(Annotation annot) |
void |
MapRenderer.removeAnnotation(Annotation annotation)
移除MapRenderer对象中的
Annotation |
void |
MapRenderer.selectAnnotation(Annotation annotation)
设置选中地图中指定的Annotation
|
©Mapbar Engine Team;All Rights Reserved