@ UiThread public List < T > create ( List < S > optionsList ) { List < T > annotationList = new ArrayList <> ( ) ; for ( S options : optionsList ) { T annotation = options . build ( currentId , this ) ; annotationList . add ( annotation ) ; annotations . put ( annotation . getId ( ) , annotation ) ; currentId ++ ; } updateSource ( ) ; return annotationList ; }
Create a list of annotations on the map .