Table of Contents

Class MapScript

Namespace
Geotab.Checkmate.ObjectModel.AddIns
Assembly
Geotab.Checkmate.ObjectModel.dll

Represents the MapScript for Map item.

public class MapScript
Inheritance
MapScript
Inherited Members

Constructors

MapScript(string?, string?, string?, string?)

Initializes a new instance of the MapScript class.

public MapScript(string? src, string? style, string? url, string? script)

Parameters

src string

The JavaScript file reference for the Add-in.

style string

NoView.

url string

Link that will render the mapScript.

script string

The JavaScript for the Add-in.

Properties

Script

Gets or sets the JavaScript code for the Add-in.

public string? Script { get; set; }

Property Value

string

string

Remarks

This can be an externally hosted file or uploaded into MyGeotab by dragging and dropping it into the Configuration file window.

Src

Gets or sets the JavaScript file reference for the Add-in.

public string? Src { get; set; }

Property Value

string

string

Remarks

This can be an externally hosted file or uploaded into MyGeotab by dragging and dropping it into the Configuration file window.

Style

Gets or sets the CSS file reference for this Add-In.

public string? Style { get; set; }

Property Value

string

string

Remarks

This can be externally hosted or uploaded to MyGeotab.

Url

Gets or sets the HTML file reference for this Add-In.

public string? Url { get; set; }

Property Value

string

string

Remarks

This option can be used instead of src and style. Links to CSS and JavaScript files can be made within this HTML file. All content within the body tags will be added to the Map Add-in UI