更新注释API无效

时间:2014-11-26 15:13:24

标签: android skmaps

我在Android上的skobbler地图中使用更新注释API以供离线使用。我更改注释视图并通过updateAnnotation API更新注释。

SKAnnotation currentAnnotation = mAnnotations.get(mSelectedIndex);
SKAnnotationView currentView = currentAnnotation.getAnnotationView();
currentView.setView(createDrawableFromView(TestActivity.this, true, "2500"));
currentAnnotation.setAnnotationView(currentView);
mSKMapView.updateAnnotation(currentAnnotation);

但是,updateAnnotation不起作用。请告诉我这个。

并且,如何添加和处理自定义注释的点击事件。

1 个答案:

答案 0 :(得分:1)

经过调查,结果发现2.3 SDK版本中的自定义视图没有实现updateAnnotation API。

我们将在2.4 SDK中使用它。