3

The new library, the class SKAnnotation not have the method:

annotation.setImagePath (mImagePath);

yfuentesh7
  • 31
  • 1

1 Answers1

0

Please use code like the following

SKAnnotation annotation = new SKAnnotation(itemId);
annotation.setLocation(new SKCoordinate(lat, lon));    
SKAnnotationView annotationView = new SKAnnotationView();
RelativeLayout customView = (RelativeLayout) ((LayoutInflater)getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(
               R.layout.layout_custom_pin, null, false);
annotationView.setView(customView);
annotation.setAnnotationView(annotationView);    
mapView.addAnnotation(annotation, SKAnimationSettings.ANIMATION_NONE);
iphonem
  • 57
  • 7