我使用 Skobbler 地图。当我将自己的图标设置为注释时,不会调用 onAnnotationSelected。当我设置默认图标(annotation.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_PURPLE);
)时,它工作正常。我做错了什么?
cursor = dataBaseHelper.getWritableDatabase().rawQuery(stringBuilder.toString(), null);
int count = cursor.getCount();
for (int i = 0; i < count; i++) {
if (cursor.moveToPosition(i)) {
SKAnnotation annotation = new SKAnnotation();
annotation.setUniqueID(cursor.getInt(cursor.getColumnIndex(1)));
annotation.setLocation(new SKCoordinate(cursor.getDouble(cursor.getColumnIndex(2)), cursor.getDouble(cursor.getColumnIndex(3))));
annotation.setMininumZoomLevel(5);
annotation.setImageSize(32);
annotation.setImagePath(imagePath+cursor.getString(cursor.getColumnIndex(4)));
mapView.addAnnotation(annotation, SKAnimationSettings.ANIMATION_NONE);