MapMarkerDto Class

Represents an object on the map (e.g. a point of interest, a line, a geofence, etc.)

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public sealed class MapMarkerDto : ICloneable<MapMarkerDto>, 
	IIdLabel, IHasCompany, IModifiedStats, ICreatedStats, IIsSoftDeletable, 
	IHasOrientation, IHasIcon
Inheritance
Object    MapMarkerDto
Implements
ICloneableMapMarkerDto, ICreatedStats, IHasCompany, IHasIcon, IHasOrientation, IIdLabel, IIsSoftDeletable, IModifiedStats

Constructors

MapMarkerDto Constructor is only usable in the Common assembly; to instantiate new objects, use ModelFactory methods.

Properties

Angle Relevant if Type is Point, otherwise ignored.
CenterPoint Represents the central point of the object. This Point will be tied to the location of the item that will be connected to this marker
CompanyId Represents the CompanyDto owning this object.
CornerAmount Amount of corners for the polygon or star if Type is Point, otherwise ignored.
CreatedAt When this object was created.
CreatedBy The AccountDto user who created this business object.
DeletedByAccountDto user that deleted the item. User can only be a member of the CompanyDto or MobileTrack support. If the item isn't deleted, the value must be , not Empty!
DeletionDate Date when the item was deleted (if applicable)
FillColor Color of the fill if Type is a Polygon, otherwise
Icon If PointType is Icon, then this will be the name of the Bootstrap icon to display. If PointType is Image, then this will be the base64 of the image.
Id The unique ID representing the object. Empty is not valid! This ID is used when other objects are referring to this object, and as the main ID in the Azure Cosmos database.
InnerRadius Relevant if Type is Point and PointType is Star, otherwise ignored.
IsDeleted If , the item has been soft deleted and only exists for logging purposes or to be reclaimed later. It also means DeletedBy must be set.
Label The label representing the object to the user. Empty or are not valid values for this property!
LastModifiedAt When this object was last modified
LastModifiedBy The AccountDto user that last modified this business object
Orientation Orientation point. Default is (0, 0), meaning the left-bottom corner.
PointType If the map marker is of type Point, how should it be displayed?
ShowGlyph If PointType is Icon or Image, this boolean will determine whether to display the contents in a regular Maps Glyph.
StrokeColor Color of the line/border if Type is LineStrip or Polygon, otherwise
StrokeWidth Size of the line, or border for objects with a filled content.
Type Type of MapMarkerDto

Methods

Clone Clones the current instance of the object.

Extension Methods

CreatePolyElement Creates a map element from a GeofenceDto and a MapMarkerDto.
(Defined by MapsExtensions)
GenerateFourEyesRequestedMessage Generates a toast message for a four-eyes request, letting the user know it had been submitted properly.
(Defined by FourEyesExtensions)
GenerateGlyph Shows a glyph with icon/image contents. Only to be used as preview.
(Defined by SvgGenerator)
GenerateImage Generate an image for the map marker (or bootstrap icon)
(Defined by SvgGenerator)
GenerateSvgForMapMarker Generates an SVG image for a MapMarkerDto.
(Defined by SvgGenerator)
GenerateToastMessageForAction Generates a toast message for the specified action.
(Defined by WebExtensions)
GenerateToastMessageForFourEyesCancelled Generates Toast message for when a four-eyes request has been denied
(Defined by WebExtensions)
GenerateToastMessageForItemCreation Generates Toast message for when an item has been successfully created.
(Defined by WebExtensions)
GenerateToastMessageForItemDeletion Generates Toast message for when an item has been successfully deleted.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseActivated Generates Toast message for when an item has been successfully activated.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseExpired Generates Toast message for when an item's license has been successfully expired.
(Defined by WebExtensions)
GenerateToastMessageForItemLock Generates Toast message for when an item has been successfully locked.
(Defined by WebExtensions)
GenerateToastMessageForItemRequestConfirmed Generates Toast message for when an item request has been successfully confirmed.
(Defined by WebExtensions)
GenerateToastMessageForItemRevertDelete Generates Toast message for when an item has been successfully reverted deletion.
(Defined by WebExtensions)
GenerateToastMessageForItemUnlock Generates Toast message for when an item has been successfully unlocked.
(Defined by WebExtensions)
GenerateToastMessageForItemUpdated Generates Toast message for when an item has been successfully updated.
(Defined by WebExtensions)
IdString renders ID as a string for frontend brevity.
(Defined by ModelGenericExtensions)
IsIdAndLabelValid Checks whether the Id and Label have been properly entered.
(Defined by ModelValidatorsExtensions)
IsLabelValid Checks whether the Label field has a valid value; not , not whitespace (or beginning or ending with whitespace) and not only comprised of special characters.
(Defined by ModelValidatorsExtensions)
IsMapMarkerValid Whether the MapMarkerDto object is properly filled in.
(Defined by ModelValidatorsExtensions)
IsModifiedStatsValid Checks whether the model is properly filled in.
(Defined by ModelValidatorsExtensions)
IsSoftDeletePermanentExpired Gets the DateTime until a soft-deleted item is to be permanently deleted.
(Defined by ModelGenericExtensions)
RevertDeletion Reverts the soft deletion of an item.
(Defined by ModelGenericModifiers)
SetDeletedNow Set item as soft deleted.
(Defined by ModelGenericModifiers)
SetDeletedNow Set item as soft deleted.
(Defined by ModelGenericModifiers)
SetModifiedNow Change modified by stats to DateTime.UtcNow
(Defined by ModelGenericModifiers)
TrimLabel Trim the label of IIdLabel object.
(Defined by ModelGenericModifiers)

See Also