Мне нужно изменить изображение SKAnnotation. Аннотация код строитель:Как изменить аннотацию Skobbler без повторного добавления
private SKAnnotation getAnnotationFromView (int id,int minZoomLvl, View view) {
SKAnnotation annotation = new SKAnnotation();
SKAnnotationView annotationView = new SKAnnotationView();
annotationView.setView(view);
annotation.setUniqueID(id);
annotation.setOffset(new SKScreenPoint(annotationView.getWidth()/2, annotationView.getHeight()/2));
annotation.setAnnotationView(annotationView);
annotation.setMininumZoomLevel(minZoomLvl);
return annotation;
}
Теперь моя проблема заключается в обновлении аннотаций/изображения в текущем состоянии (положение, ориентация). Есть ли способ сделать это без повторного добавления аннотации? Заглянув в документацию, я нашел mapView.updateAnnotation()
, но, похоже, работает только для изображений, добавленных с помощью annotation.setImagePath(imagePath)
Может кто-нибудь мне помочь?
ли вы найти какое-либо решение для этого? Даже я ищу это. – Ratan