SvgGeneratorGenerateGlyph Method

Shows a glyph with icon/image contents. Only to be used as preview.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static string GenerateGlyph(
	this MapMarkerDto mapMarker,
	Color? overrideColor
)

Parameters

mapMarker  MapMarkerDto
Map marker to render
overrideColor  NullableColor
Override color if the device is a non-acceptable state.

Return Value

String
Generated SVG content

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MapMarkerDto. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

InvalidOperationExceptionThrown when the marker type is invalid

See Also