2014-11-06 7 views
4

SKAnnotation의 이미지를 수정해야합니다. 주석 빌더 코드 :Skobbler Annotation을 다시 추가하지 않고 수정하는 방법

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)
누군가 저를 도와 줄 수 있습니까?

+1

당신이에 대한 모든 솔루션을 찾으셨습니까 일을해야합니까? 심지어 나는 이것을 찾고있다. – Ratan

답변

2

불행히도 없습니다.

파일에서 가져온 아이콘으로 주석 만 재배치 할 수 있도록 구현에 불일치가 있습니다 (차후 업데이트에서 해결할 예정입니다).

(모든) 주석의 위치를 ​​바꾸려면 주석을 제거하고 다시 추가해야합니다.

이 아이콘 /보기를 변경하려면 - 다음 updateAnnotation API가

+0

안녕하세요, 아래 코드 스 니펫을 찾으십시오. updateAnnotation API가지도보기에서 변경되지 않습니다. – Charan

+0

안도 : http://postimg.org/image/3ln39cpnh/ – Charan

+0

@Charan - 다른 질문을하고 제공된 코드 조각 – Ando

관련 문제