Nativescript Doc
Preparing search index...
The search index is not available
@nativescript-community/ui-carto
@nativescript-community/ui-carto
ui
CartoMap
Class CartoMap<T>
Type Parameters
T
=
DefaultLatLonKeys
Hierarchy
View
CartoMap
Index
Constructors
constructor
Properties
bearing
focus
Pos
meters
Per
Pixel
projection
restricted
Panning
tilt
zoom
Methods
add
Layer
cancel
All
Tasks
capture
Rendering
clear
All
Caches
clear
Preloading
Caches
from
Native
Map
Pos
get
Focus
Pos
get
Layers
get
Map
Bounds
get
Options
get
Zoom
map
To
Screen
move
To
Fit
Bounds
remove
Layer
request
Redraw
screen
To
Map
send
Event
set
Bearing
set
Focus
Pos
set
Map
Rotation
set
Tilt
set
Zoom
set
Run
On
Main
Thread
Constructors
constructor
new
CartoMap
<
T
=
DefaultLatLonKeys
>
()
:
CartoMap
<
T
>
Type Parameters
T
=
DefaultLatLonKeys
Returns
CartoMap
<
T
>
Properties
bearing
bearing
:
number
focus
Pos
focusPos
:
GenericMapPos
<
T
>
Readonly
meters
Per
Pixel
metersPerPixel
:
number
projection
projection
:
Projection
restricted
Panning
restrictedPanning
:
boolean
tilt
tilt
:
number
zoom
zoom
:
number
Methods
add
Layer
addLayer
(
layer
:
Layer
<
any
,
any
>
,
index
?:
number
)
:
any
Parameters
layer
:
Layer
<
any
,
any
>
Optional
index
:
number
Returns
any
cancel
All
Tasks
cancelAllTasks
()
:
any
Returns
any
capture
Rendering
captureRendering
(
wait
?:
boolean
)
:
Promise
<
ImageSource
>
Parameters
Optional
wait
:
boolean
Returns
Promise
<
ImageSource
>
clear
All
Caches
clearAllCaches
()
:
any
Returns
any
clear
Preloading
Caches
clearPreloadingCaches
()
:
any
Returns
any
from
Native
Map
Pos
fromNativeMapPos
(
position
:
any
)
:
GenericMapPos
<
T
>
Parameters
position
:
any
Returns
GenericMapPos
<
T
>
get
Focus
Pos
getFocusPos
()
:
GenericMapPos
<
T
>
Returns
GenericMapPos
<
T
>
get
Layers
getLayers
()
:
Layers
<
any
>
Returns
Layers
<
any
>
get
Map
Bounds
getMapBounds
()
:
MapBounds
<
T
>
Returns
MapBounds
<
T
>
get
Options
getOptions
()
:
MapOptions
Returns
MapOptions
get
Zoom
getZoom
()
:
number
Returns
number
map
To
Screen
mapToScreen
(
pos
:
any
)
:
ScreenPos
Parameters
pos
:
any
Returns
ScreenPos
move
To
Fit
Bounds
moveToFitBounds
(
mapBounds
:
MapBounds
<
T
>
,
screenBounds
:
ScreenBounds
,
integerZoom
:
boolean
,
resetRotation
:
boolean
,
resetTilt
:
boolean
,
durationSeconds
:
number
,
)
:
any
Parameters
mapBounds
:
MapBounds
<
T
>
screenBounds
:
ScreenBounds
integerZoom
:
boolean
resetRotation
:
boolean
resetTilt
:
boolean
durationSeconds
:
number
Returns
any
remove
Layer
removeLayer
(
layer
:
Layer
<
any
,
any
>
)
:
any
Parameters
layer
:
Layer
<
any
,
any
>
Returns
any
request
Redraw
requestRedraw
()
:
any
Returns
any
screen
To
Map
screenToMap
(
pos
:
any
)
:
GenericMapPos
<
T
>
Parameters
pos
:
any
Returns
GenericMapPos
<
T
>
send
Event
sendEvent
(
eventName
:
string
,
data
?:
any
)
:
any
Parameters
eventName
:
string
Optional
data
:
any
Returns
any
set
Bearing
setBearing
(
value
:
number
,
duration
?:
number
)
:
any
Parameters
value
:
number
Optional
duration
:
number
Returns
any
set
Focus
Pos
setFocusPos
(
value
:
GenericMapPos
<
T
>
,
duration
?:
number
)
:
any
Parameters
value
:
GenericMapPos
<
T
>
Optional
duration
:
number
Returns
any
set
Map
Rotation
setMapRotation
(
value
:
number
,
target
:
number
|
GenericMapPos
<
T
>
,
duration
?:
number
,
)
:
any
Parameters
value
:
number
target
:
number
|
GenericMapPos
<
T
>
Optional
duration
:
number
Returns
any
set
Tilt
setTilt
(
value
:
number
,
duration
?:
number
)
:
any
Parameters
value
:
number
Optional
duration
:
number
Returns
any
set
Zoom
setZoom
(
value
:
number
,
target
:
number
|
GenericMapPos
<
T
>
,
duration
?:
number
,
)
:
any
Parameters
value
:
number
target
:
number
|
GenericMapPos
<
T
>
Optional
duration
:
number
Returns
any
Static
set
Run
On
Main
Thread
setRunOnMainThread
(
value
:
boolean
)
:
any
Parameters
value
:
boolean
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
bearing
focus
Pos
meters
Per
Pixel
projection
restricted
Panning
tilt
zoom
Methods
add
Layer
cancel
All
Tasks
capture
Rendering
clear
All
Caches
clear
Preloading
Caches
from
Native
Map
Pos
get
Focus
Pos
get
Layers
get
Map
Bounds
get
Options
get
Zoom
map
To
Screen
move
To
Fit
Bounds
remove
Layer
request
Redraw
screen
To
Map
send
Event
set
Bearing
set
Focus
Pos
set
Map
Rotation
set
Tilt
set
Zoom
set
Run
On
Main
Thread
Nativescript Doc
@nativescript-community/ui-carto
Loading...