SvgGeneratorGenerateSvgForMapMarker Method

Generates an SVG image for a MapMarkerDto.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static string GenerateSvgForMapMarker(
	this MapMarkerDto marker,
	Color? color = null,
	int canvasSize = 0,
	int radius = 48
)

Parameters

marker  MapMarkerDto
MapMarker to generate for
color  NullableColor  (Optional)
CSS class to apply (for the color)
canvasSize  Int32  (Optional)
Canvas size. If not set, the marker's own size will be used.
radius  Int32  (Optional)
Size of the radius of the item

Return Value

String
Generated SVG

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).

See Also