我正在使用Skobbler SDK VERSION 2.5.1
. 我找到了这个。但是,很少有方法不能解决。
SKAnnotation annotationDrawable = new SKAnnotation();
setHeight()
setWidth()
setDrawableResourceId()
我将其用作默认值SKAnnotationType
。
private void addAnnotation(Place place) {
if (mapView != null) {
CustomSKAnnotation skAnnotation = new CustomSKAnnotation(new Random().nextInt(), place.getName());
skAnnotation.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);
skAnnotation.setLocation(new SKCoordinate(place.getLongitude(), place.getLatitude()));
mapView.addAnnotation(skAnnotation, SKAnimationSettings.ANIMATION_PIN_DROP);
}
}
我想将我的自定义图像添加为注释图标。可以做些什么来解决这个问题?