OverlayFactoryCreate(IFeatureCollection, String, String, Color, Boolean) Method

Create the overlay object

Definition

Namespace: StreetSmart.Common.Factories
Assembly: StreetSmart.WinForms (in StreetSmart.WinForms.dll) Version: 24.7.0.0+cc0a01953d1235087ce28d3e921f5bb47d3c0460
C#
public static IGeoJsonOverlay Create(
	IFeatureCollection featureCollection,
	string name,
	string srs,
	Color color,
	bool visible = true
)

Parameters

featureCollection  IFeatureCollection
FeatureCollection object containing the layer data
name  String
Name of the layer.
srs  String
Optional EPSG code (srs) for the source GeoJSON, if not provided, srs of API initialisation is used.
color  Color
Optional color for the layer
visible  Boolean  (Optional)
Visibility of the layer

Return Value

IGeoJsonOverlay
Overlay object

Version Information

Supported in: 18.7

See Also