更新注解API不工作 [英] Update Annotation API not working

查看:288
本文介绍了更新注解API不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用在Android skobbler地图离线更新的目的注释API。我改变注释查看和更新​​通过updateAnnotation API注释。

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);

然而,updateAnnotation不工作。请让我知道这一点。

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

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

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

推荐答案

调查之后事实证明,在updateAnnotation API在2.3 SDK版本自定义视图没有得到执行。

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

我们将在2.4 SDK都没有了。

We will have this in 2.4 SDK.

这篇关于更新注解API不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆