Longdo Native API Reference
Longdo
constant
object
Longdo.MapView
call
objectCall
'Longdo' Constant
constant
Avaliable types and their names
LineStyle
Solid
Dashed
Dot
LayerType
Vector
Longdo
XYZ
WMS
WMTS
WMTS_REST
TMS
ArcGIS_REST
Custom
Layers
EASY
NORMAL
HARD
GRAY
LIGHT
NIGHT
DARK
POLITICAL
OSM
SPHERE_SIMPLE
SPHERE_STREETS
SPHERE_HYBRID
CLEAR
TRAFFIC
RASTER_POI
RASTER_POI_EN
RASTER_OSM
THAICHOTE
SPHERE_IMAGES
TOMTOM_NORMAL
TOMTOM_POI
ARCGIS_WORLD_TOPO_MAP
ARCGIS_WORLD_STREET_MAP
LocationMode
Pointer
Geolocation
Filter
Dark
Light
None
OverlayWeight
Top
ObjectLabel
Title
RouteLine
Destination
Road
Air
Rail
Ferry
Focus
RouteMode
Traffic
Cost
Distance
DistanceTraffic
Walk
Both
Fly
RouteType
Road
Air
Railway
Ferry
Tollway
Bus
Metro
All
AllDrive
AllTransit
RouteLabel
Distance
Time
Hide
RouteRestrict
Bike
Wheelchair
object
Avaliable types and their arguments
Polyline
options: GeometryOptions
Polygon
options: GeometryOptions
Circle
location: Location|GeoJSON
radius: number
options: GeometryOptions
Dot
location: Location|GeoJSON
options: GeometryOptions
Rectangle
location: Location
size: Size|Location
options: GeometryOptions
Layer
name: string
options: LayerOptions
Marker
location: Location|GeoJSON
options: MarkerOptions
Popup
location: Location|GeoJSON
options: PopupOptions
'Longdo.MapView' Component
Props
layer
: Layer
zoom
: number
zoomRange
: Range
location
: Location
ui
: UiComponent
lastView
: bool
language
: string
onReady
: function
onResize
: function
onRepaint
: function
onZoom
: function
onZoomRange
: function
onLocation
: function
onFullscreen
: function
onRotate
: function
onPitch
: function
onToolbarChange
: function
onDrawCreate
: function
onDrawDelete
: function
onTooltipChange
: function
onBeforeContextmenu
: function
onContextmenu
: function
onMousemove
: function
onClick
: function
onDoubleClick
: function
onWheel
: function
onDrag
: function
onDrop
: function
onIdle
: function
onLayerChange
: function
onloadTile
: function
onOverlayChange
: function
onOverlayUpdate
: function
onOverlayClick
: function
onOverlayLoad
: function
onOverlayDrag
: function
onOverlayDrop
: function
onOverlayHover
: function
onOverlayLeave
: function
onPathAnimationEnd
: function
onBeforeTagPopup
: function
onPopupClose
: function
onGuideError
: function
onGuideComplete
: function
onGeolocation
: function
onGeolocationError
: function
onConnectionError
: function
call
Avaliable methods and their arguments
, group by method type
Layers
Layers.language
value: string
Layers.setBase
layer: Layer|MapboxLayer|Object|String
Layers.add
layer: Layer|MapboxLayer|Object, beforeId: string
Layers.remove
layer: Layer|MapboxLayer|Object
Layers.clear
Layers.list
Layers.size
Layers.externalMap
Map
id
resize
repaint
zoom
value: Number|bool, animate: bool
zoomRange
value: Range
location
mode: Point|LocationMode, value: Location|LocationMode, animate: bool
bound
value: Bound, options: FitBoundsOptions, allowZoomIn: bool
move
offset: Point, animate: bool
language
value: string
rotate
angle: number, animate: bool
pitch
angle: number
enableFilter
filter: Filter
goTo
target: FlyToOptions, animate: bool
Overlays
Overlays.add
overlay: Overlay
Overlays.remove
overlay: Overlay
Overlays.load
mode: Overlays
Overlays.unload
mode: Overlays
Overlays.clear
Overlays.list
Overlays.size
Overlays.drop
overlay: Marker
Overlays.bounce
overlay: Marker
Overlays.lastOpenPopup
Overlays.pathAnimation
marker: Marker, path: Polyline, speed: number
Route
Route.language
value: string
Route.enableContextMenu
Route.line
type: RouteLine, type: RouteLine, value: GeometryOptions
Route.auto
state: bool
Route.mode
value: RouteMode
Route.modeOf
index: int, index: int, value: RouteMode
Route.enableRoute
routeType: RouteType, routeType: RouteType, state: bool
Route.enableRestrict
routeRestrict: RouteRestrict, routeRestrict: RouteRestrict, state: bool
Route.time
value: Date
Route.label
value: RouteLabel
Route.add
destination: Marker|Location
Route.insert
index: int, destination: Marker|Location
Route.remove
destination: Marker
Route.removeAt
index: int
Route.clearDestination
Route.clearPath
Route.clear
Route.list
Route.size
Route.reverse
Route.search
Route.distance
format: bool
Route.interval
format: bool
Route.guide
format: bool
Route.exportRouteLine
options: GeometryOptions
Search
Search.language
value: string
Search.suggest
keyword: string, options: SuggestOptions
Search.search
keyword: string, options: SearchOptions
Search.address
location: Location|string, options: AddressOptions
Search.nearPoi
location: Location, options: NearPoiOptions
Search.clear
Search.enablePopup
state: bool
Tags
Tags.language
value: string
Tags.set
tag: string, options: TagOptions
Tags.add
tag: string, options: TagOptions
Tags.remove
tag: string
Tags.clear
Tags.list
Tags.size
Tags.enablePopup
state: bool
objectCall
Avaliable object's methods and their arguments
, group by object type
Polyline
(inherited methods from Overlay)
popup
pop
mode: bool, location: Location
pivot
centroid
bound
update
newOptions: GeometryOptions
rotate
angle: number
size
language: string
Polygon
(inherited methods from Polyline)
union
overlay: Polygon, options: GeometryOptions
intersection
overlay: Polygon, options: GeometryOptions
difference
overlay: Polygon, options: GeometryOptions
split
splitter: Polygon, options: GeometryOptions
Circle
(inherited methods from Polyline)
radius
language: string
Dot
(inherited methods from Polyline)
Rectangle
(inherited methods from Polygon)
Layer
Overlay
location
animate: bool
visibleRange
active
shift
vector: Location
distance
overlay: Location|Overlay, language: string
intersects
overlay: Location|Overlay
contains
overlay: Location|Overlay
toJSON
Marker
(inherited methods from Overlay)
popup
element
pop
mode: bool
update
newOptions: MarkerOptions
Popup
(inherited methods from Overlay)
element
title
value: HTML
detail
value: HTML