[android] Change CustomGeometrySource() signature to be Kotlin friendly (#13178)

This commit is contained in:
Osana Babayan
2018-10-25 10:35:08 -04:00
committed by Tobrun
parent 2c6d73077d
commit a1f189937f

View File

@@ -58,19 +58,19 @@ public class CustomGeometrySource extends Source {
*/
@UiThread
public CustomGeometrySource(String id, GeometryTileProvider provider) {
this(id, provider, new CustomGeometrySourceOptions());
this(id, new CustomGeometrySourceOptions(), provider);
}
/**
* Create a CustomGeometrySource with non-default CustomGeometrySourceOptions.
* <p>Supported options are minZoom, maxZoom, buffer, and tolerance.</p>
*
* @param id The source id.
* @param provider The tile provider that returns geometry data for this source.
* @param id The source id.
* @param options CustomGeometrySourceOptions.
* @param provider The tile provider that returns geometry data for this source.
*/
@UiThread
public CustomGeometrySource(String id, GeometryTileProvider provider, CustomGeometrySourceOptions options) {
public CustomGeometrySource(String id, CustomGeometrySourceOptions options,
GeometryTileProvider provider) {
super();
this.provider = provider;
initialize(id, options);