Update Annotation API not working

心已入冬 提交于 2020-01-02 11:27:08

问题


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:


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.



来源:https://stackoverflow.com/questions/27152601/update-annotation-api-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!