Global

Methods

addCloseMarker()

Source:
Author:
  • lc

addMarker()

Source:
Author:
  • lc

addMorphTargets(mesh, meshDef, primitiveDef, dependencies)

Source:

Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets

Parameters:
Name Type Description
mesh THREE.Mesh
meshDef GLTF.Mesh
primitiveDef GLTF.Primitive
dependencies Object

ColladaLoader()

Source:
Author:
  • mrdoob / http://mrdoob.com/
  • Mugen87 / https://github.com/Mugen87

coordinateToVector(startPoint, endPoint) → {Array}

Source:

将地球球面上的两个坐标转化为一个二维向量

Parameters:
Name Type Description
startPoint
endPoint
Returns:
Type
Array

createDefaultMaterial()

Source:

Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material

doQuerys(center, radius, geojson)

Source:

根据指定半径查询周边数据

Parameters:
Name Type Description
center
radius
geojson

getArea()

Source:
Author:
  • lc

getdistanceWithUnit()

Source:
Author:
  • lc

getGreatCircleDistance(start, end)

Source:

计算球面两点距离的方法([经度1,纬度1],[经度2,纬度2])

Parameters:
Name Type Description
start
end Number

return 米

GLTFLightsExtension()

Source:

Lights Extension

Specification: PENDING

GLTFMaterialsCommonExtension()

Source:

Common Materials Extension

Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/Khronos/KHR_materials_common

GLTFMaterialsPbrSpecularGlossinessExtension()

Source:

Specular-Glossiness Extension

Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/Khronos/KHR_materials_pbrSpecularGlossiness

insertInArray(arr, num) → {Array}

Source:

数组中每相邻两个数之间插入n个数

Parameters:
Name Type Description
arr
num
Returns:
Type
Array

randomRange(low, high) → {*}

Source:

返回指定范围内的数

Parameters:
Name Type Description
low
high
Returns:
Type
*

showTips()

Source:
Author:
  • lc

update()

Source:

更新three场景

Type Definitions

RequestParameters

Source:
Properties:
Name Type Description
url string

The URL to be requested.

headers Object

The headers to be sent with the request.

credentials string

'same-origin'|'include' Use 'include' to send cookies with cross-origin requests.

A RequestParameters object to be returned from Map.options.transformRequest callbacks.

Type:
  • Object