2

I am using update Annotation API in skobbler maps on Android for offline purpose. I change the annotation view and update the annotation via updateAnnotation API.

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

However, updateAnnotation is not working. Please let me know on this.

And, how to add and handle click event for custom annotations.

4

1 回答 1

1

对此进行调查后发现,2.3 SDK 版本中没有为自定义视图实现 updateAnnotation API。

我们将在 2.4 SDK 中有这个。

于 2014-12-03T13:29:21.477 回答