@Beta(year=2019,
month=12)
public class SourceFactory
extends java.lang.Object
Constructor and Description |
---|
SourceFactory() |
Modifier and Type | Method and Description |
---|---|
static GeoJsonSource |
createGeoJsonSource(java.lang.String id)
Creates a GeoJSONSource with default GeoJSON options.
|
static ImageSource |
createImageSource(java.lang.String id,
java.util.List<LatLng> coordinates)
Creates an ImageSource with given corner coordinates and default ImageSource options.
|
static Source |
createSource(java.lang.String sourceJson)
Creates a source based on a provided JSON description.
|
@Beta(year=2019, month=12) public static Source createSource(java.lang.String sourceJson)
@Beta(year=2019, month=12) public static GeoJsonSource createGeoJsonSource(java.lang.String id)
@Beta(year=2019, month=12) public static ImageSource createImageSource(java.lang.String id, java.util.List<LatLng> coordinates)