Longdo Map React Native API Reference
Longdo
static
object
isSameObject
Longdo.MapView
call
objectCall
`Longdo` Static object
Props
apiKey
: string
Methods
static
static(type: string, name: string): Object
Get map's static object
Avaliable types and their names
LineStyle
Solid
Dashed
Dot
LayerType
WMS
TMS
WMTS
WMTS_REST
ArcGIS_REST
XYZ
Mapbox
Vector
Custom
External
Longdo
Layers
NORMAL
NORMAL_EN
REVERSE
REVERSE_EN
GRAY
GRAY_EN
POI
POI_EN
POLITICAL
POLITICAL_EN
POLITICAL_NOLABEL
BASE
HYDRO
OSM
LONGDO_OSM
OPENCYCLE
TERRAIN
GISTDA_SPOT5
THAICHOTE
TOMTOM_NORMAL
TOMTOM_POI
TOMTOM_HYDRO
ARCGIS_WORLD_IMAGERY
ARCGIS_WORLD_STREET_MAP
ARCGIS_WORLD_TOPO_MAP
ARCGIS_WORLD_DARK
ARCGIS_WORLD_LIGHT
SPHERE_STREETS
SPHERE_HYBRID
SPHERE_IMAGES
BLANK
CLEAR
CHECKERED
POI_TRANSPARENT
POI_TRANSPARENT_EN
TRAFFIC
TRAFFIC_VECTOR
ARCGIS_WORLD_DARK_REF
ARCGIS_WORLD_LIGHT_REF
ARCGIS_WORLD_PLACE
ARCGIS_WORLD_TRANSPORTATION
GOOGLE_ROADMAP
GOOGLE_TRAFFIC
GOOGLE_SATELLITE
GOOGLE_HYBRID
MAPBOX_STREETS
MAPBOX_SATELLITE
MAPBOX_HYBRID
MAPBOX_LONGDO
MAPBOX_LONGDO_OSM
MAPBOX_LONGDO_TRAFFIC
Projections
EPSG3857
EPSG4326
Filter
Dark
Light
None
LocationMode
Pointer
Geolocation
OverlayWeight
Top
ObjectLabel
Title
RouteType
Road
Air
Railway
Ferry
Tollway
Bus
Metro
All
AllDrive
AllTransit
RouteMode
Traffic
Cost
Distance
Walk
Both
Fly
RouteLabel
Distance
Time
Hide
RouteRestrict
Bike
Wheelchair
object
object(type: string, ...args): Object
Create map's object
Avaliable types and their arguments
Polyline
options: GeometryOptions
Polygon
options: GeometryOptions
Circle
location: Location
radius: number
options: GeometryOptions
Polycurve
options: GeometryOptions
Dot
location: Location
options: GeometryOptions
Rectangle
location: Location
size: Location
options: GeometryOptions
Layer
name: string
options: LayerOptions
MergeLayer
base: Layer
topper: Layer
options: MergeLayerOptions
Marker
location: Location
options: MarkerOptions
Popup
location: Location
options: PopupOptions
OverlaysObject
id: string
dataset: string
options: Object
isSameObject
isSameObject(a: Object, b: Object): boolean
Indicates whether two objects are the same
`Longdo.MapView` Component
Props
zoom
: number
zoomRange
: Range
location
: Location
ui
: UiComponent
lastView
: bool
language
: string
onReady
: function
onBeforeResize
: function
onResize
: function
onRepaint
: function
onZoom
: function
onZoomRange
: function
onLocationAnimationBegin
: function
onLocation
: function
onFullscreen
: function
onRotate
: function
onSuggest
: function
onSearch
: function
onAddress
: function
onNearPoi
: function
onToolbarChange
: function
onClearMeasure
: function
onBeforeContextmenu
: function
onContextmenu
: function
onMousemove
: function
onClick
: function
onDoubleClick
: function
onWheel
: function
onPinch
: function
onPinchEnd
: function
onDrag
: function
onDrop
: function
onIdle
: function
onLayerChange
: function
onLoadTile
: function
onOverlayChange
: function
onOverlaySelect
: function
onOverlayClick
: function
onOverlayLoad
: function
onOverlayDrag
: function
onOverlayDrop
: function
onOverlayMove
: function
onOverlayHover
: function
onOverlayLeave
: function
onPathAnimationEnd
: function
onPopupLoadDetail
: function
onPopupClose
: function
onGuideError
: function
onGuideComplete
: function
onPathError
: function
onPathComplete
: function
onBeforeGeolocation
: function
onGeolocation
: function
onGeolocationError
: function
onConnectionError
: function
Methods
call
call(method: string, ...args): Promise
Call map's methods
Avaliable methods and their arguments
, group by method type
Layers
Layers.setBase
layer: Layer
Layers.add
layer: Layer
Layers.insert
index: int, layer: Layer
Layers.remove
layer: Layer
Layers.clear
Layers.list
Layers.size
Layers.contains
layer: Layer
Layers.externalMap
Layers.externalOptions
state: ExternalOptions
Map
id
resize
repaint
mode: Object
pause
state: bool
placeholder
projection
zoom
value: number|bool, animate: bool, pivot: Point
zoomRange
value: Range
location
mode: LocationMode, value: LocationMode
bound
value: Bound, pivot: Location, allowZoomIn: bool
move
offset: Point, animate: bool
pinch
value: number, screen: Point
pinchEnd
screen: Point
language
value: string
focus
pageToScreen
page: Point
loadingTile
rotate
angle: number
enableFilter
state: Filter
Overlays
Overlays.add
overlay: LongdoOverlay
Overlays.remove
overlay: LongdoOverlay
Overlays.clear
Overlays.list
Overlays.size
Overlays.load
mode: Object
Overlays.unload
mode: Overlays
Overlays.floorPlan
overlay: LongdoOverlay
Overlays.drop
overlay: LongdoOverlay
Overlays.bounce
overlay: LongdoOverlay
Overlays.enableAutoClosePopup
state: bool
Overlays.enableAutoFocusPopup
state: bool
Overlays.enableFloorPlan
state: bool
Overlays.enableEditGuide
state: bool
Overlays.lastOpenPopup
Overlays.pathAnimation
marker: Marker, path: Polyline, speed: number
Route
Route.language
value: string
Route.placeholder
value: Element
Route.enableContextMenu
Route.line
type: string, type: string
Route.auto
state: bool
Route.mode
value: RouteMode
Route.enableRoute
routeType: RouteType, routeType: RouteType
Route.enableRestrict
routeRestrict: RouteRestrict, routeRestrict: RouteRestrict
Route.time
value: Date
Route.modeOf
index: int, index: int
Route.useStopMarker
state: bool
Route.usePoiName
state: bool
Route.useCumulativeDistance
state: bool
Route.showUnknownRoad
state: bool
Route.label
value: RouteLabel
Route.add
destination: Location,
Route.insert
index: int, destination: 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
Route.nextGuide
Search
Search.language
value: string
Search.placeholder
value: Element: SearchUiOptions, value: Element
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.pop
overlay: LongdoOverlay
Tags.enablePopup
state: bool
Ui
Ui.remove
value: string
objectCall
objectCall(object: Object, method: string, ...args): Promise
Call map object's methods
Avaliable object's methods and their arguments
, group by object type
Polyline
linkEditing
geometry: Polyline
update
newOptions: GeometryOptions
shift
vector: Location
rotate
angle: number
size
distance
overlay: LongdoOverlay
Polygon
extends Polyline
contains
overlay: LongdoOverlay
union
overlay: Polygon, options: GeometryOptions
intersection
overlay: Polygon, options: GeometryOptions
difference
overlay: Polygon, options: GeometryOptions
split
splitter: Polygon, options: GeometryOptions
Circle
extends Polyline
Polycurve
extends Polyline
Dot
extends Polyline
Rectangle
extends Polygon
divide
count: int, dir: bool, options: GeometryOptions
Layer
name
MergeLayer
extends Layer
Marker
update
newOptions: MarkerOptions
Popup
title
value: HTML
detail
value: HTML
fit
focus