Anonymous type for
Map options
⌥Layer layer: Initial layer
(
Default:
Layers.NORMAL)
⌥number zoom: Initial zoom
(
Default:
7)
⌥Range zoomRange: Initial zoom range
(
Default:
Every zoom)
⌥Location location: Initial location
(
Default:
Metamedia office)
⌥Element placeholder: Placeholder element
(
Default:
No UI)
⌥UiComponent ui: Show default UI
(
Default:
Fit screen size)
⌥bool input: Allow input from user
(
Default:
true)
⌥bool lastView: Load last location/zoom from local storage if exist
(
Default:
true)
⌥string language: Language in ISO 639-1 format
(
Default:
th)
See Also:maplibre.org/maplibre-gl-js/docs/API/type-aliases/MapOptions/
for accept maplibre options
^top
Anonymous type for
Layer options
⌥LayerType type: Type of layer
(
Default:
Vector)
All raster type
⌥URL url: Tile server URL
(
Default:
Longdo tile server)
⌥Range zoomRange: Visible range
(
Default:
Every zoom)
⌥Range source: Avaliable tile range
(
Default:
Every zoom)
⌥number opacity: Layer opacity
(
Default:
1)
⌥int weight: Layer with lower weight will show over one with higher weight
(
Default:
0)
⌥Bound bound: Only tile in this bounding box will be shown
(
Default:
World)
⌥string attribution: Attribution
(
Default:
No attribution)
⌥string extraQuery: Extra query string
(
Default:
No extra query)
⌥string id: Specify unique layer id
(
Default:
Layer name)
WMS & WMTS(KVP) type specific options
⌥string format: MIME type
(
Default:
image/png)
⌥string srs: WMS's spatial reference system or WMTS's tile matrix set
(
Default:
EPSG:3857)
⌥string tileMatrixPrefix: WMTS's part of tile matrix before zoom level
(
Default:
No prefix)
⌥string styles: Styles
(
Default:
Default)
WMTS(RESTful) type specific options
⌥string format: image extension
(
Default:
png)
⌥string srs: Tile matrix set
(
Default:
EPSG:3857)
⌥string styles: Styles
(
Default:
Default)
TMS & XYZ type specific options
⌥string format: image extension
(
Default:
png)
⌥string srs: Spatial reference system
(
Default:
Default)
^top
Anonymous type for
Marker options
⌥Icon icon: Icon
(
Default:
A certain red pin)
⌥HTML title: Show title when hover
(
Default:
No title)
⌥HTML detail: Show detail when click
(
Default:
No detail)
⌥PopupOptions popup: Show popup when click, override detail parameter
(
Default:
None)
⌥Range visibleRange: Visible range
(
Default:
Every zoom)
⌥bool clickable: Change cursor when hover
(
Default:
false)
⌥bool draggable: Allow user to drag this marker
(
Default:
false)
⌥number weight: Z height
(
Default:
0)
⌥number rotate: Rotation angle in degree, clockwise
(
Default:
0)
See Also:maplibre.org/maplibre-gl-js/docs/API/type-aliases/MarkerOptions/
for accept maplibre options (HTML icon only)
^top
Anonymous type for
Popup options
⌥HTML title: Title
(
Default:
No title)
⌥HTML detail: Detail
(
Default:
No detail)
⌥delegate loadDetail: Set detail function(element: Element): void
(
Default:
Load nothing)
⌥HTML html: Custom content, override detail parameter
(
Default:
As detail)
⌥delegate loadHtml: Set custom content function(element: Element): void
(
Default:
Load nothing)
⌥Size size: Size
(
Default:
Auto)
⌥bool closable: Show close button
(
Default:
true)
See Also:maplibre.org/maplibre-gl-js/docs/API/type-aliases/PopupOptions/
for accept maplibre options
^top
Anonymous type for
Polyline and it subclasses options
⌥HTML title: Show title when hover
(
Default:
No title)
⌥HTML detail: Show detail when click
(
Default:
No detail)
⌥HTML label: Show label at pivot
(
Default:
No detail)
⌥MarkerOptions labelOptions: Show marker at pivot, override label parameter
(
Default:
Visible range of geometry)
⌥PopupOptions popup: Show popup when click, override detail parameter
(
Default:
None)
⌥Range visibleRange: Visible range
(
Default:
Every zoom)
⌥int lineWidth: Line width
(
Default:
3)
⌥CSSColor lineColor: Line color
(
Default:
Preset color list)
⌥CSSColor fillColor: Fill color
(
Default:
Preset color list)
⌥LineStyle lineStyle: Line style
(
Default:
LineStyle.Solid)
⌥Location|delegate pivot: Label location and rotation pivot
(
Default:
Center of geometry)
⌥bool clickable: Change cursor when hover
(
Default:
false)
⌥bool draggable: Allow user to drag this geometry
(
Default:
false)
⌥bool pointer: Show draggable pointer when hover this geometry
(
Default:
false)
⌥number weight: Z height
(
Default:
0)
^top
Anonymous type for
Overlays.Object options
⌥number simplify: Simplify object, automatic value is around 0.00005 (fine) - 0.001 (rough)
(
Default:
automatic)
⌥bool combine: Combine multiple objects into one
(
Default:
false)
⌥bool ignorefragment: Don't load small part of object
(
Default:
false)
^top
Anonymous type for
MenuBar options
⎆MenuItem[] button: List of buttons
⌥delegate change: Handler function(currentMenuItem: Object, lastMenuItem: Object): void that called when user change menu
(
Default:
No handler)
^top
Anonymous type for store menu item
⎆string label: Label
⌥string value: Value
(
Default:
Same as label)
⌥ButtonType type: Item type
(
Default:
ButtonType.Radio)
^top
Anonymous type for
Search.placeholder options
⌥Icon|boolean icon: Icon, set to false to search without marker
(
Default:
A certain red pin)
^top
Anonymous type for
Search.suggest options
⌥string area: Geocode of suggest area
(
Default:
Any area)
⌥int offset: Offset of the first result returned
(
Default:
0)
⌥int limit: Number of results returned
(
Default:
10)
⌥string dataset: Search dataset
(
Default:
Default data)
^top
Anonymous type for
Search.search options
⌥string area: Geocode of search area
(
Default:
Any area)
⌥string tag: Tag
(
Default:
Any tag)
⌥string span: Span with unit in deg, m or km
(
Default:
Anywhere)
⌥int offset: Offset of the first result returned
(
Default:
0)
⌥int limit: Number of results returned
(
Default:
20)
⌥string dataset: Search dataset
(
Default:
Default data)
⌥bool smart: Use smart search API
(
Default:
false)
^top
Anonymous type for
Search.address options
⌥int limit: Limit the number of results when search with street address
(
Default:
5)
⌥string dataset: Dataset when search with street address
(
Default:
Default data)
^top
Anonymous type for
Search.nearPoi options
⌥string area: Geocode of search area
(
Default:
Any area)
⌥string tag: Tag
(
Default:
Any tag)
⌥string span: Span with unit in deg, m or km
(
Default:
Anywhere)
⌥int zoom: Maximum POI zoom level
(
Default:
All zoom)
⌥int offset: Offset of the first result returned
(
Default:
0)
⌥int limit: Number of results returned
(
Default:
20)
⌥string dataset: Search dataset
(
Default:
Default data)
^top
Anonymous type for
TagCollection options
⌥URL source: Tag server URL
(
Default:
Longdo tag server)
⌥TagType type: Tag type
(
Default:
Default server)
⌥Icon|string icon: Icon or big/small keyword for default icons with bigger/smaller size, can't use HTML icon
(
Default:
Default icons)
⌥Range visibleRange: Visible range
(
Default:
Every zoom)
⌥Range label: Label visible range
(
Default:
None)
⌥string area: Geocode of tag area (for default server)
(
Default:
Any area)
⌥string dataset: Tag dataset (for default server)
(
Default:
Default data)
WFS/OGC type specific options
⎆string name: Data name
⌥string extraQuery: Extra query string
(
Default:
No extra query)
⌥string version: WFS version
(
Default:
2.0.0)
^top
Anonymous type for store location
⎆number lon: Longitude in decimal degrees
⎆number lat: Latitude in decimal degrees
^top
Anonymous type for store 2D point
⎆int x: X-axis value
⎆int y: Y-axis value
^top
Anonymous type for store range
⎆int min: Mininum value (inclusive)
⎆int max: Maximun value (inclusive)
^top
Anonymous type for store bounding box
⎆number minLon: Mininum longitude (inclusive)
⎆number minLat: Mininum latitude (inclusive)
⎆number maxLon: Maxinum longitude (inclusive)
⎆number maxLat: Maxinum latitude (inclusive)
^top
Anonymous type for store icon
⎆URL url: Icon image URL
⎆URL urlHD: Icon image URL for high density display
⎆HTML html: Custom icon code, override url parameter
⌥Point offset: Icon offset
(
Default:
Center of icon)
⌥Size size: Icon size
(
Default:
Image size)
^top
Anonymous type for store tile
⎆int x: X-axis tile number
⎆int y: Y-axis tile number
⎆int z: Zoom level
^top
Anonymous type for store size
⎆int width: width
⎆int height: height
^top
Context menu location
Add element to menu
⎆Element|HTML element: Element
^top
Event name enumeration
Static class
Map is ready to use
Map has been resized
Map has been repainted manuallly
Zoom level changed
Zoom range changed
Location changed
Map enter or exit fullsceen
⇦bool Is fullscreen
Map rotated
Map pitch changed
Toolbar mode changed
⇦string Mode
Features are created
⇦GeoJSON[] Features that were created
Features are deleted
⇦GeoJSON[] Features that were deleted
Map tooltip changed
⇦string Message
Context menu is going to appear
Can prevent default behavior by return false from handler functions
⇦MenuEvent Menu event
Context menu is appeared
User scroll mouse wheel
⇦Point Wheel point with direction
User drag the map
User stop drag the map
No input from user, no animation and no tile are loaded
Layer changed
⇦Layer The added layer
⇦Layer The removed layer
Tiles are loaded
⇦string Layer name
Overlay changed
⇦Overlay The changed overlay
Overlay updated
⇦Overlay The updated overlay
User click a overlay
⇦Overlay The clicked overlay
Predefined overlays are ready
⇦Object The overlays data
User drag a overlay
⇦Overlay The dragged overlay
User drop a overlay
⇦Overlay The dropped overlay
Mouse hover over a overlay
⇦Overlay The hovered overlay
Mouse leave a overlay
⇦Overlay The leaved overlay
Path animation end
⇦Overlay The Animated overlay
A popup is going to open
Can prevent default behavior by return false from handler functions
⇦Object The POI data
A popup is closed
⇦Popup The closed popup
Routing guide error
⇦int Error code
Routing guide complete
⇦Object[] Guide list
Connection error
⇦string Source
^top
Attach a handler to target event
⎆EventName eventName: Name of event
⎆delegate handler: Handler function(eventData: Object): void|bool
⇦this Self
Remove a handler from target event
⎆EventName eventName: Name of event
⎆delegate handler: Handler function
⇦this Self
^top
Line style enumeration
Static class
Solid style
Dashed style
Dot style
^top
Polyline class
⎆Location[]|GeoJSON locationList: List of locations represent the line or GeoJSON Feature/LineString
⌥GeometryOptions options: Extra options
(
Default:
Default value)
Get popup
⇦Popup Popup of this geometry
Show or hide popup of this geometry
⌥bool mode: Show or hide
(
Default:
toggle)
⌥Location location: Location of popup
(
Default:
pivot)
⇦this Self
Get a point on this geometry
⇦Location Pivot location
Find geometric center of this geometry
⇦Location Centroid location
Find bounding box of this geometry
⇦Bound bounding box
Update this geometry options
Only lineWidth, lineColor, fillColor and lineStyle are support
⎆GeometryOptions newOptions: New options value
⇦this Self
Rotate this geometry
⎆number angle: Angle to rotate in degree, clockwise
⇦this Self
Length of this geometry
⌥string language: ISO 639-1 language code
(Default: neutral)
⇦number|string Length in meters or formatted text if provided language
^top
Polygon class
⎆Location[]|GeoJSON locationList: List of locations represent the polygon or GeoJSON Feature/Polygon
⌥GeometryOptions options: Extra options
(
Default:
Default value)
Area of this geometry
⌥string language: ISO 639-1 language code
(Default: neutral)
⇦number|string Area in square meters or formatted text if provided language
Combined this polygon with another polygon
⎆Polygon overlay: Another polygon
⌥GeometryOptions options: Extra options
(
Default:
Default value)
⇦Polygon Union polygon
Finds intersection of this polygon and another polygon
⎆Polygon overlay: Another polygon
⌥GeometryOptions options: Extra options
(
Default:
Default value)
⇦Polygon Intersected polygon
Clipping this polygon by another polygon
⎆Polygon overlay: Another polygon
⌥GeometryOptions options: Extra options
(
Default:
Default value)
⇦Polygon Differenced polygon
Split this polygon by another polygon
⎆Polygon splitter: Splitter
⌥GeometryOptions options: Extra options
(
Default:
Default value)
⇦Polygon[] List of split polygons
^top
Circle class
⎆Location|GeoJSON location: Circle center or GeoJSON Feature/Point
⎆number radius: Circle radius in degree
⌥GeometryOptions options: Extra options
(
Default:
Default value)
Area of this geometry
⌥string language: ISO 639-1 language code
(Default: neutral)
⇦number|string Area in square meters or formatted text if provided language
Radius of this circle
⌥string language: ISO 639-1 language code
(Default: neutral)
⇦number|string Radius in meters or formatted text if provided language
^top
Dot class
⎆Location|GeoJSON location: Dot location or GeoJSON Feature/Point
⌥GeometryOptions options: Extra options
(
Default:
Default value)
^top
Rectangle class
⎆Location location: Top-left location
⎆Size|Location size: Size in degree or bottom-right location
⌥GeometryOptions options: Extra options
(
Default:
Default value)
^top
Layer type enumeration
Static class
Mapbox Vector Tiles type (default)
Longdo Tiles type
XYZ Tiles type
Web Map Service type
Web Map Tile Service (key-value-pairs encoding) type
Web Map Tile Service (RESTful encoding) type
Tile Map Service type
ArcGIS REST Services type
Custom type, provide URL template in options.url
Supported placeholder are {x}, {y}, {z}, {bbox-epsg-3857}, {quadkey}, {ratio}, {prefix}
^top
Layer class
⎆string name: Name of raster layer or style of vector layer
⌥LayerOptions options: Extra options
(
Default:
Default value)
^top
Layer list singleton class
Static class
Low-complexity base layer
Standard base layer
Hybrid of Aerial, Road and DEM base layer
Colorful light theme base layer
Monochrome light theme base layer
Colorful dark theme base layer
Monochrome dark theme base layer
Political base layer
OSM base layer
sphere simple base layer
sphere streets base layer
sphere satellite/aerial/streets hybrid base layer
Transparent base layer
Traffic non-base layer, auto-refresh every 3 minutes
Longdo standard+POI raster base layer (TH)
Longdo standard+POI raster base layer (TH)
Longdo OSM raster base layer (Local)
Thaichote satellite base layer
sphere satellite/aerial base layer
TomTom standard raster base layer (TH)
TomTom standard+POI raster base layer (TH)
Google vector map external layer
Google traffic external layer
Google satellite image external layer
Google satellite image external layer
^top
Access language of base layer in ISO 639-1 language code
Support only built-in layers
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Set the base layer of the map
⎆Layer|Object|String layer: Base layer, MapLibre Style Specification object or a URL to such JSON
⇦this Self
Add a non-base layer to the map
⎆Layer|deck.MapboxLayer|Object layer: Non-base layer, deck.gl layer or MapLibre Style Specification's layer object
⌥string beforeId: ID of an existing layer to add the new layer before
(
Default:
Symbol layer)
⇦this Self
Remove a non-base layer from the map
⎆Layer|deck.MapboxLayer|Object layer: Non-base layer, deck.gl layer or MapLibre Style Specification's layer object
⇦this Self
Remove all non-base layers from the map
⇦this Self
List all layers on the map
⇦Object[] List of layers on the map
Number of layers on the map
⇦int Number of layers
Get current external map data
⇦object[] External map, provider name and layers
^top
Location mode enumeration
Static class
Get mouse pointer location or last tap mode
Set value to geolocation mode
^top
Color filter enumeration
Static class
Dark map and UI color
Lighter map color
No filter
^top
Map class
⌥MapOptions options: Extra options
(
Default:
Default value)
Get unique id
⇦int ID
Resize the map
⇦this Self
Repaint the map
⇦this Self
Get the map's placeholder element
⇦Element Placeholder
zoom(value, animate, pivot)
Access the map's zoom level
Getter
⇦number Current zoom
Setter
⎆number|bool value: New zoom or direction
⌥bool animate: Show animation
(Default: true)
⇦this Self
Access the map's allow zoom range
Getter
⇦Range Current zoom range
Setter
⎆Range value: New zoom range
⇦this Self
bound(value, options, allowZoomIn)
Move the map by the specified offset
⎆Point offset: Offset in pixel
⌥bool animate: Show animation
(
Default:
true)
⇦this Self
Access language setting for all components in ISO 639-1 language code
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Access the map's rotation
Getter
⇦string Current angle of map that point to top of screen, in degree, clockwise from north
Setter
⎆number angle: Angle to rotate
⌥bool animate: Show animation
(Default: true)
⇦this Self
Access the map's pitch
Getter
⇦string Current pitch angle away from screen, in degree
Setter
⎆number angle: Angle to pitch
⇦this Self
Enable color filter
Getter
⇦Filter Current filter
Setter
⎆Filter filter: New filter
⇦this Self
^top
Math singleton class
Static class
Find 2D Euclidean distance from X-axis and Y-axis distance
⎆int dx: X-axis distance
⎆int dy: Y-axis distance
⇦number 2D Distance
Find closest point on a line from a point
⎆int x: Point's X
⎆int y: Point's Y
⎆int x1: Begin of line's X
⎆int y1: Begin of line's Y
⎆int x2: End of line's X
⎆int y2: End of line's Y
⇦Point Closest point
Find intersect points of two lines
⎆int x1: Begin of first line's X
⎆int y1: Begin of first line's Y
⎆int x2: End of first line's X
⎆int y2: End of first line's Y
⎆int u1: Begin of second line's X
⎆int v1: Begin of second line's Y
⎆int u2: End of second line's X
⎆int v2: End of second line's Y
⇦Point|int[] Intersect point or location of intersect points or null
^top
Overlay weight enumeration
Static class
^top
Object label enumeration
Static class
^top
Overlay class
The root of all overlays
Access location
Getter
⇦Location|Location[] Overlay location
Setter
⎆Location|Location[]|GeoJSON geojson: New location or GeoJSON Feature/geometry
⌥bool animate: Show moving animation
(
Default:
false)
Get visible range
⇦Range Visible range
Check if this overlay is added to the map
⇦bool Is active
Move this overlay by distance
⎆Location vector: Distance to move
⇦this Self
Minimum geodesic distance to the overlay
⎆Location|Overlay overlay: Location or Overlay
⌥string language: ISO 639-1 language code
(
Default:
neutral)
⇦number|string Distance in meters or formatted text if provided language
Tests if both overlays share any space
⎆Location|Overlay overlay: Location or Overlay
⇦bool Is overlays intersects
Tests if the overlay is inside this overlay
⎆Location|Overlay overlay: Location or Overlay
⇦bool Is the overlay inside
Convert this overlay to GeoJSON
⇦GeoJSON GeoJSON
^top
Marker class
⎆Location|GeoJSON location: Marker location
⌥MarkerOptions options: Extra options
(
Default:
Default value)
Get popup
⇦Popup Popup of this overlay
Get element on the map if exists
⇦Element HTML element
Show or hide popup of this overlay
⌥bool mode: Show or hide
(Default: toggle)
⇦this Self
Update overlay options
Only draggable and rotate are support
⎆MarkerOptions newOptions: New options value
⇦this Self
^top
Popup class
⎆Location|GeoJSON location: Popup location
⌥PopupOptions options: Extra options
(
Default:
Default value)
Get element on the map if exists
⇦Element HTML element
Access title of this popup
Not support custom popup
Getter
⇦Element Title
Setter
⎆HTML value: New title
⇦this Self
Access detail of this popup
Not support custom popup
Getter
⇦Element Detail
Setter
⎆HTML value: New detail
⇦this Self
^top
Predefined overlay singleton class
Static class
Cameras overlay
⌥bool popup: Enable popup
(Default: true)
⌥bool motion: Enable motion camera
(Default: true)
Events overlay
⌥bool popup: Enable popup
(Default: true)
Thai AQI overlay
⌥bool popup: Enable popup
(Default: true)
Predefined object overlay class
⎆string id: Object ID
⎆string dataset: Object dataset
⌥Object options: Extra options, see accept parameters for each dataset below
(
Default:
Default options value)
LONGDO-A poi accept
MarkerOptions, Set icon to 'big' for big default icon
LONGDO-G geometry accept
GeometryOptions
LONGDO-Y layer accept
LayerOptions |
PopupOptions, Set title to true for default name
IG geometry accept
GeometryOptions |
ObjectOptions
^top
Add an overlay to the map
⎆Overlay overlay: Overlay
⇦this Self
Remove an overlay from the map
⎆Overlay overlay: Overlay
⇦this Self
Load predefined overlays and add to the map
⎆Overlays mode: Predefined overlays
⇦this Self
Remove predefined overlays from the map
⎆Overlays mode: Predefined overlays
⇦this Self
Remove all overlays from the map
⇦this Self
List all overlays on the map
⇦Overlay[] List of overlays
Number of overlays on the map
⇦int Size
Add marker to the map with drop animation
⎆Marker overlay: Marker
⇦this Self
Show bounce animation of a marker
⎆Marker overlay: Marker
⇦this Self
Get the last open popup
⇦Popup Last open popup
Move marker along the line
⎆Marker marker: The marker to move
⎆Polyline path: Motion path
⌥number speed: Speed
(
Default:
2^-zoom)
⇦this Self
^top
Route line enumeration
Static class
Line from destination to nearest road
Driving or walking, road
Public transport, airline
Public transport, all railway
Driving or public transport, Ferry
Highlight when hover
^top
Route mode enumeration
Static class
Fastest route and avoid traffic congestions, with the real-time or predicted traffic condition
Fastest route (disregarding traffic condition), return static travel time
Shortest route, return static travel time
Shortest route, return travel time with traffic condition
Walking via shortest route or use less transfer public transport
Driving via fastest route, ignore driving direction
*For calulation only don't do this in real life
Fly directly to destination with superluminal speed
^top
Route type enumeration
Static class
Driving or walking, road
Public transport, airline
Public transport, intercity railway
Driving or public transport, Ferry
Driving, tollway
Public transport, bus
Public transport, rapid transit
All
All driving (road, ferry, tollway)
All public transport (walk, air, railway, ferry, bus, metro)
^top
Route label enumeration
Static class
Show distance
Show time
Hide
^top
Vehicle restriction enumeration
Static class
Don't use route that restrict motorcycle
Don't use route that restrict wheelchair (walk/public transport mode only)
^top
Access language setting in ISO 639-1 language code
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Access placeholder element
Getter
⇦Element Current placeholder
Setter
⎆Element value: New placeholder
⇦this Self
Enable routing menu in context menu
⇦this Self
Access auto update setting
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
Access search mode
Getter
⇦RouteMode Current mode
Setter
⎆RouteMode value: New mode
⇦this Self
Access search mode of each destination
Getter
⎆int index: Index
⇦RouteMode Current search mode of each destination
Setter
⎆int index: Index
⎆RouteMode value: New mode
⇦this Self
Enable type of route
Getter
⎆RouteType routeType: Route type
⇦bool Current state
Setter
⎆RouteType routeType: Route type
⎆bool state: New state
⇦this Self
Enable vehicle restriction
Getter
⎆RouteRestrict routeRestrict: Restrict vehicle
⇦bool Current state
Setter
⎆RouteRestrict routeRestrict: Restrict vehicle
⎆bool state: New state
⇦this Self
Access search time
Getter
⇦Date Current time
Setter
⎆Date value: New time
⇦this Self
Add a destination to the route
⎆Marker|Location destination: Destination
⇦this Self
insert(index, destination, mode)
Insert a destination to the route
⎆int index: Index
⎆Marker|Location destination: Destination
⇦this Self
Remove a destination from the route
⎆Marker destination: Destination
⇦this Self
Remove destination by index
⎆int index: Destination's index
⇦this Self
Remove all destinations
⇦this Self
Remove all paths
⇦this Self
Remove the route
⇦this Self
List all destinations in the route
⇦Marker[] List of destinations
Number of destinations in the route
⇦int Size
Reverse direction of the route
⇦this Self
Calulate the route
⇦this Self
Distance of the route
⎆bool format: With format
⇦int|string Distance
Time to travel through the route
⎆bool format: With format
⇦int|string Interval
Guide for travel through the route
⎆bool format: With format
⇦Object[]|Element Guide
Export the route as single polyline
⌥GeometryOptions options: Extra options
(
Default:
Default value)
⇦Polyline Line
^top
Access language setting in ISO 639-1 language code
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Access placeholder element
Getter
⇦Element Current placeholder
⌥SearchUiOptions options: Extra options
(
Default:
Default value)
Setter
⎆Element value: New placeholder
⇦this Self
Request suggest data
⎆string keyword: Keyword
⌥SuggestOptions options: Extra options
(
Default:
Default value)
⇦Object Result
Asynchronous method
Request search data
⎆string keyword: Keyword
⌥SearchOptions options: Extra options
(
Default:
Default value)
⇦Object Result
Asynchronous method
Request address data
⎆Location|string location: Location / POI ID / Geocode / Postcode / Street address
⌥AddressOptions options: Extra options
(
Default:
Default value)
⇦Object Result
Asynchronous method
Request near by POIs
⎆Location location: Location
⌥NearPoiOptions options: Extra options
(
Default:
Default value)
⇦Object Result
Asynchronous method
Clear search results in placeholder
⇦this Self
Enable searched POIs popup
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
^top
Tag type enumeration
Static class
Web Feature Service type
OGC API - Feature type (ISO 19168)
^top
Access language setting in ISO 639-1 language code
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Clear and set a tag on the map
⎆string|delegate tag: Name of tag or callback function(tile:
Tile): Object[]
⌥TagOptions options: Extra options
(
Default:
Default value)
⇦this Self
Add a tag to the map
⎆string|delegate tag: Name of tag or callback function(tile:
Tile): Object[]
⌥TagOptions options: Extra options
(
Default:
Default value)
⇦this Self
Remove a tag from the map
⎆string tag: Name of tag
⇦this Self
Remove all tags from the map
⇦this Self
List all tags on the map
⇦string[] List of tags
Number of tags on the map
⇦int Size
Enable tag POIs popup
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
^top
Button type enumeration
Static class
Radio button
Toggle button
Push button
Reset button/dropdown
Dropdown's options group
HTML
^top
Custom control class
⎆HTML content: Content
Visible
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
^top
Selected menu
Current dropdown label
Select menu by index
⎆integer index: Menu index
⇦this Self
^top
Visible
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
^top
Enable near by POI
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
Enable address
Getter
⇦bool Current state
Setter
⎆bool state: New state
⇦this Self
^top
UI component enumeration
Static class
Full mode
Mobile mode
No UI mode
^top
UiCollection class
See Also:Map.Ui
Drawing toolbar
Not show by default and not avaliable on mobile device
See Also:CustomControl
Fullscreen botton
Not avaliable on mobile device
See Also:CustomControl
Keyboard
Method List
enable(state)
Enable keyboard input
Mouse
Method List
enable(state)
Enable mouse input
enableClick(state)
Enable mouse click
enableDrag(state)
Enable dragging
enableWheel(state)
Enable wheel scrolling
Access language setting in ISO 639-1 language code
Getter
⇦string Current language
Setter
⎆string value: New language
⇦this Self
Add a control to the map
⎆CustomControl control: Control object
⇦this Self
Remove a control from the map
⎆CustomControl control: Control object
⇦this Self
^top
Utility singleton class
Static class
append(element, childName, propertyMap)
Create and append content to an element
⎆Element element: Parent element
⎆string childName: Type of element to be created
⌥Object propertyMap: New element's properties
(Default: No properties)
⇦Element Newly created element
prepend(element, childName, propertyMap, beforeElement)
Create and prepend content to an element
⎆Element element: Parent element
⎆string childName: Type of element to be created
⌥Object propertyMap: New element's properties
(Default: No properties)
⌥Element beforeElement: Insert content before this element
(Default: First child of the element)
⇦Element Newly created element
Remove all children from an element
⎆Element element: Parent element
⇦Element Empty element
Load an additional stylesheet
⎆string url: Stylesheet URL
⌥string media: Media type
(Default: all)
Load an additional script
⎆string url: Script URL
⌥delegate callback: Callback function(isLoad: bool): void
(Default: no callback)
Load JSON with GET request
⎆string url: Service URL
⇦Object Response JSON
Asynchronous method
Check if display device has high pixel density
⇦int HD level
Check if a location is valid
⎆Location location: Location
⇦bool Validity of location
Check if both locations are equal
⎆Location a: First location
⎆Location b: Second location
⇦bool Equlity of location
Find length of a degree of longitude at the given latitude
Algorithm: fourier series
⎆number lat: Latitude
⇦number Length in meters
Find length of a degree of latitude at the given latitude
Algorithm: fourier series
⎆number lat: Latitude
⇦number Length in meters
Check if the value is in the range
⎆int value: Value
⎆Range range: Range
⇦bool Is value inside range
Check if value is in [-range, +range] interval
⎆int value: Value
⎆int range: Range
⇦bool Is the value in the range
Limit value to a bound
⎆int value: Value
⎆int min: Lower bound
⎆int max: Upper bound
⇦int Bounded value
Capitalise first letter of the string
⎆string string: String
⇦string Formatted string
Format date to "D MMM YY" (B.E.)
⎆string date: ISO 8601 calendar date (extended format)
⎆string language: ISO 639-1 language code
⇦string Formatted date
Format time to "hh:mm"
⎆string time: ISO 8601 time (extended format)
⇦string Formatted time
Format datetime range
⎆string startDatetime: Start datetime with space as a delimiter
⎆string stopDatetime: Stop datetime
⎆string language: ISO 639-1 language code
⇦string Formatted datetime range
Format time interval
⎆number interval: Time interval in second
⎆string language: ISO 639-1 language code
⇦string Formatted interval
Format distance
⎆number distance: Distance in meters
⎆string language: ISO 639-1 language code
⇦string Formatted distance
Format area
⎆number area: Area in square meters
⎆string language: ISO 639-1 language code
⇦string Formatted area
Format area to Thai unit
⎆number area: Area in square meters
⎆string language: ISO 639-1 language code
⇦string Formatted area
^top