Update Annotation API not working

2019-05-27 08:30发布

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.

1条回答
祖国的老花朵
2楼-- · 2019-05-27 08:43

After investigating this it turns out that the updateAnnotation API was not implemented for custom views in the 2.3 SDK version.

We will have this in 2.4 SDK.

查看更多
登录 后发表回答