public FillOptions withLatLngs ( List < List < LatLng > > latLngs ) { List < List < Point >> points = new ArrayList <> ( ) ; for ( List < LatLng > innerLatLngs : latLngs ) { List < Point > innerList = new ArrayList <> ( ) ; for ( LatLng latLng : innerLatLngs ) { innerList . add ( Point . fromLngLat ( latLng . getLongitude ( ) , latLng . getLatitude ( ) ) ) ; } points . add ( innerList ) ; } geometry = Polygon . fromLngLats ( points ) ; return this ; }
Set a list of lists of LatLng for the fill which represents the locations of the fill on the map