Methods
addCloseMarker()
addMarker()
addMorphTargets(mesh, meshDef, primitiveDef, dependencies)
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()
coordinateToVector(startPoint, endPoint) → {Array}
- Source:
将地球球面上的两个坐标转化为一个二维向量
Parameters:
| Name | Type | Description |
|---|---|---|
startPoint |
||
endPoint |
Returns:
- Type
- Array
createDefaultMaterial()
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:
getdistanceWithUnit()
getGreatCircleDistance(start, end)
- Source:
计算球面两点距离的方法([经度1,纬度1],[经度2,纬度2])
Parameters:
| Name | Type | Description |
|---|---|---|
start |
||
end |
Number | return 米 |
GLTFLightsExtension()
Lights Extension
Specification: PENDING
GLTFMaterialsCommonExtension()
Common Materials Extension
Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/Khronos/KHR_materials_common
GLTFMaterialsPbrSpecularGlossinessExtension()
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()
update()
- Source:
更新three场景
Type Definitions
RequestParameters
Properties:
| Name | Type | Description |
|---|---|---|
url |
string | The URL to be requested. |
headers |
Object | The headers to be sent with the request. |
credentials |
string |
|
A RequestParameters object to be returned from Map.options.transformRequest callbacks.
Type:
- Object