sdk-maps / com.tomtom.online.sdk.map.style.sources / SourceFactory

SourceFactory

open class SourceFactory

A factory class that allows the creation of style sources with default options.

Constructors

<init>

SourceFactory()

A factory class that allows the creation of style sources with default options.

Functions

createGeoJsonSource

open static fun createGeoJsonSource(id: String!): GeoJsonSource!

Creates a GeoJSONSource with default GeoJSON options.

createImageSource

open static fun createImageSource(id: String!, coordinates: MutableList<LatLng!>!): ImageSource!

Creates an ImageSource with given corner coordinates and default ImageSource options.

createSource

open static fun createSource(sourceJson: String!): Source!

Creates a source based on a provided JSON description.