Я использую Skobbler Maps. Когда я устанавливаю свои собственные значки в виде аннотаций, onAnnotationSelected не вызывается. И когда я устанавливаю значки по умолчанию (annotation.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_PURPLE);
), он работал правильно. Что я делаю неправильно?Skobbler. onAnnotationSelected not called, когда я устанавливаю свои собственные аннотации
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);
Это работает, спасибо! – Christine