Search results

StaticFunctions API in Vue Maps API component

Root static functions of Maps Component

getThemeStyle

Method to get the theme style

Parameter Type Description
theme MapsTheme Specifies the theme.

Returns IThemeStyle

Internalize

To apply internalization

Parameter Type Description
maps Maps Specifies the instance of the maps
value number Specifies the value

Returns string

aitoff

Method for calculate aitoff projection

Parameter Type Description
x number Specifies the x value.
y number Specifies the y value.

Returns Point

animate

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

calculateBound

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

calculateCenterFromPixel

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

calculateSize

Method to calculate the width and height of the maps

Parameter Type Description
maps Maps Specifies the maps instance

Returns Size

calculateZoomLevel

To find zoom level for the min and max latitude values

Returns number

checkShapeDataFields

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

compareZoomFactor

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

convertGeoToPoint

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

convertTileLatLongToPoint

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

createStyle

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

createSvg

Method to create svg for maps.

Parameter Type Description
maps Maps Specifies the map instance

Returns void

customizeStyle

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

degreesToRadians

Method to convert degrees to radians

Parameter Type Description
deg number Specifies the degree value

Returns number

findMidPointOfPolygon

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

findPosition

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

fixInitialScaleForTile

To get the html element by specified id

Parameter Type Description
map Maps Specifies the instance of the maps

Returns void

getElementByID

To get the html element by specified id

Parameter Type Description
id string Specifies the id

Returns Element

getElementsByClassName

Function to get elements using class name

Parameter Type Description
className string Specifies the class name

Returns HTMLCollectionOf

getMousePosition

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

getShapeData

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

getTargetElement

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

processResult

Method to get the result

Parameter Type Description
e any Specifies the any type value

Returns any

querySelector

Function to get elements using querySelector

Parameter Type Description
args string Specifies the args
elementSelector string Specifies the element selector

Returns Element

radiansToDegrees

Convert radians to degrees method

Parameter Type Description
radian number Specifies the radian value

Returns number

removeClass

Function to remove class from element

Parameter Type Description
element Element Specifies the element

Returns void

removeElement

To remove element by id

Parameter Type Description
id string Specifies the id

Returns void

roundTo

Method to round the number

Parameter Type Description
a number Specifies the a value
b number Specifies the b value

Returns number

triggerDownload

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

triggerItemSelectionEvent

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

xToCoordinate

Method for calculate x point

Parameter Type Description
mapObject Maps Specifies the maps.
val number Specifies the value.

Returns number

yToCoordinate

Method for calculate y point

Parameter Type Description
mapObject Maps Specifies the maps.
val number Specifies the value.

Returns number