Search code examples
androidskmaps

Update Annotation API not working


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.


Solution

  • 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.