Root static functions of Maps Component
Method to get the theme style
Parameter | Type | Description |
---|---|---|
theme | MapsTheme |
Specifies the theme. |
Returns IThemeStyle
To apply internalization
Parameter | Type | Description |
---|---|---|
maps | Maps |
Specifies the instance of the maps |
value | number |
Specifies the value |
Returns string
Method for calculate aitoff projection
Parameter | Type | Description |
---|---|---|
x | number |
Specifies the x value. |
y | number |
Specifies the y value. |
Returns Point
To process custom animation
Parameter | Type | Description |
---|---|---|
element | Element |
Specifies the element |
delay | number |
Specifies the delay |
duration | number |
Specifies the duration |
process | any |
Specifies the process |
end | any |
Specifies the end |
Returns void
Method to calculate bound
Parameter | Type | Description |
---|---|---|
value | number |
Specifies the value |
min | number |
Specifies the minimum value |
max | number |
Specifies the maximum value |
Returns number
To calculate map center position from pixel values
Parameter | Type | Description |
---|---|---|
mapObject | Maps |
Specifies the map object |
layer | LayerSettings |
Specifies the layer settings |
Returns Point
Method to calculate the width and height of the maps
Parameter | Type | Description |
---|---|---|
maps | Maps |
Specifies the maps instance |
Returns Size
To find zoom level for the min and max latitude values
Returns number
To find the index of dataSource from shape properties
Parameter | Type | Description |
---|---|---|
dataSource | any[] |
Specifies the data source |
properties | any |
Specifies the properties |
dataPath | string |
Specifies the data path |
propertyPath | string | string[] |
Specifies the property path |
layer | LayerSettingsModel |
Specifies the layer settings |
Returns number
To find compare should zoom factor with previous factor and current factor
Parameter | Type | Description |
---|---|---|
scaleFactor | number |
Specifies the scale factor |
maps | Maps |
Specifies the instance of the maps |
Returns void
Method for converting from latitude and longitude values to points
Parameter | Type | Description |
---|---|---|
latitude | number |
Specifies the latitude. |
longitude | number |
Specifies the longitude. |
factor | number |
Specifies the factor. |
layer | LayerSettings |
Specifies the layer settings. |
mapModel | Maps |
Specifies the maps. |
Returns Point
Converting tile latitude and longitude to point
Parameter | Type | Description |
---|---|---|
center | MapLocation |
Specifies the map center location |
zoomLevel | number |
Specifies the zoom level |
tileTranslatePoint | MapLocation |
Specifies the tile translate point |
isMapCoordinates | boolean |
Specifies the boolean value |
Returns MapLocation
Function to create style element for highlight and selection
Parameter | Type | Description |
---|---|---|
id | string |
Specifies the id |
className | string |
Specifies the class name |
eventArgs | IShapeSelectedEventArgs | any |
Specifies the event args |
Returns Element
Method to create svg for maps.
Parameter | Type | Description |
---|---|---|
maps | Maps |
Specifies the map instance |
Returns void
Function to customize the style for highlight and selection
Parameter | Type | Description |
---|---|---|
id | string |
Specifies the id |
className | string |
Specifies the class name |
eventArgs | IShapeSelectedEventArgs | any |
Specifies the event args |
Returns void
Method to convert degrees to radians
Parameter | Type | Description |
---|---|---|
deg | number |
Specifies the degree value |
Returns number
To find the midpoint of the polygon from points
Parameter | Type | Description |
---|---|---|
points | MapLocation[] |
Specifies the points |
type | string |
Specifies the type |
geometryType (optional) | string |
Specified the type of the geometry |
Returns any
Method to calculate x position of title
Parameter | Type | Description |
---|---|---|
location | Rect |
Specifies the location |
alignment | Alignment |
Specifies the alignment |
textSize | Size |
Specifies the text size |
type | string |
Specifies the type |
Returns Point
To get the html element by specified id
Parameter | Type | Description |
---|---|---|
map | Maps |
Specifies the instance of the maps |
Returns void
To get the html element by specified id
Parameter | Type | Description |
---|---|---|
id | string |
Specifies the id |
Returns Element
Function to get elements using class name
Parameter | Type | Description |
---|---|---|
className | string |
Specifies the class name |
Returns HTMLCollectionOf
Method to get the mouse position
Parameter | Type | Description |
---|---|---|
pageX | number |
Specifies the pageX. |
pageY | number |
Specifies the pageY. |
element | Element |
Specifies the element. |
Returns MapLocation
Function to get shape data using target id
Parameter | Type | Description |
---|---|---|
targetId | string |
Specifies the target id |
map | Maps |
Specifies the instance of the maps |
Returns Object
Function to get the element for selection and highlight using public method
Parameter | Type | Description |
---|---|---|
layerIndex | number |
Specifies the layer index |
name | string |
Specifies the layer name |
enable | boolean |
Specifies the boolean value |
map | Maps |
Specifies the instance of the maps |
Returns Element
Method to get the result
Parameter | Type | Description |
---|---|---|
e | any |
Specifies the any type value |
Returns any
Function to get elements using querySelector
Parameter | Type | Description |
---|---|---|
args | string |
Specifies the args |
elementSelector | string |
Specifies the element selector |
Returns Element
Convert radians to degrees method
Parameter | Type | Description |
---|---|---|
radian | number |
Specifies the radian value |
Returns number
Function to remove class from element
Parameter | Type | Description |
---|---|---|
element | Element |
Specifies the element |
Returns void
To remove element by id
Parameter | Type | Description |
---|---|---|
id | string |
Specifies the id |
Returns void
Method to round the number
Parameter | Type | Description |
---|---|---|
a | number |
Specifies the a value |
b | number |
Specifies the b value |
Returns number
To trigger the download element
Parameter | Type | Description |
---|---|---|
fileName | string |
Specifies the file name |
type | ExportType |
Specifies the type |
url | string |
Specifies the url |
isDownload | boolean |
Specifies whether download a file. |
Returns void
Function to trigger itemSelection event for legend selection and public method
Parameter | Type | Description |
---|---|---|
selectionSettings | SelectionSettingsModel |
Specifies the selection settings |
map | Maps |
Specifies the instance of the maps |
targetElement | Element |
Specifies the target element |
shapeData | any |
Specifies the shape data |
data | any |
Specifies the data |
Returns void
Method for calculate x point
Parameter | Type | Description |
---|---|---|
mapObject | Maps |
Specifies the maps. |
val | number |
Specifies the value. |
Returns number
Method for calculate y point
Parameter | Type | Description |
---|---|---|
mapObject | Maps |
Specifies the maps. |
val | number |
Specifies the value. |
Returns number