PointDataSourceBuilder
public class PointDataSourceBuilder
extension PointDataSourceBuilder: NativeBase
extension PointDataSourceBuilder: Hashable
Builder of points data source.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
Creates a data source builder instance in the given context.
Declaration
Swift
public init(_ context: MapContext)Parameters
contextMap context to associate the data source with.
-
Configures the builder to use the given name for data source.
Declaration
Swift
public func withName(_ dataSourceName: String) -> PointDataSourceBuilderParameters
dataSourceNameName of the created data source. Must be unique.
Return Value
This data source builder instance.
-
Configures the builder to insert the given point in the data source.
Declaration
Swift
public func withPoint(_ point: PointData) -> PointDataSourceBuilderParameters
pointPoint to be added.
Return Value
This data source builder instance.
-
Configures the builder to insert the given points in the data source.
Declaration
Swift
public func withPoints(points: [PointData]) -> PointDataSourceBuilderParameters
pointsPoints to be added.
Return Value
This data source builder instance.
-
Builds a PointDataSource instance and resets the builder instance.
Declaration
Swift
public func build() -> PointDataSourceReturn Value
Instance of the data source created with given points and attributes.