Members
-
constant BaseMapEnums
-
Preset basemap classes for online basemap components
Properties:
Name Type Default Description BingMapString BingMap Bing basemap
TainDiMapString TainDiMap Tianditu basemap.
OSMString OSM OSM basemap.
LocalMapString LocalMap Local image.
GridMapString GridMap Longitude/Latitude basemap.
SuperMapImageryString SuperMapImagery SuperMap basemap.
-
BingMapsApi
-
The search object item used to set and retrieve the default Bing Maps API key.
-
BingMapsStyle
-
Imagery types provided by Bing Maps
Properties:
Name Type Default Description AERIALString Aerial Aerial imagery.
AERIAL_WITH_LABELSString AerialWithLabels Aerial imagery with road overlay.
AERIAL_WITH_LABELS_ON_DEMANDString AerialWithLabelsOnDemand Aerial images with road coverage.
ROADString Road Roads without additional imagery.
ROAD_ON_DEMANDString RoadOnDemand Roads without additional images.
CANVAS_DARKString CanvasDark The dark version of the road map.
CANVAS_LIGHTString CanvasLight Simplified version of the roadmap.
CANVAS_GRAYString CanvasGray The grayscale version of the road map.
ORDNANCE_SURVEYString OrdnanceSurvey Topographic imagery.
COLLINS_BARTString CollinsBart Collins Bart imagery.
-
BlendEquation
-
Determines how two pixel values are combined.
Properties:
Name Type Default Description ADDNumber WebGLConstants.FUNC_ADD Pixel values are added component-wise. This method is used for additive blending of semi-transparent effects.
SUBTRACTNumber WebGLConstants.FUNC_SUBTRACT Pixel values are subtracted component-wise (source - destination). This is used in alpha blending for transparent effects.
REVERSE_SUBTRACTNumber WebGLConstants.FUNC_REVERSE_SUBTRACT Pixel values are subtracted component-wise (destination - source).
MINNumber WebGLConstants.MIN The pixel value is assigned to the minimum value function (min (source, destination)).
This equation performs operations on the color components of each pixel.
MAXNumber WebGLConstants.MAX The pixel value is passed to the maximum value function (max (source, destination)).
This equation performs operations on the color components of each pixel.
-
BlendOption
-
Determines the blending mode for opaque and translucent parts of billboards, points, and labels with the scene.
Properties:
Name Type Default Description OPAQUENumber 0 Determines that billboards, points, and labels are completely opaque.
TRANSLUCENTNumber 1 Billboards, points, and labels in the collection are completely translucent.
OPAQUE_AND_TRANSLUCENTNumber 2 Billboards, points, and labels in the collection are a mixture of opaque and translucent.
-
CameraEventType
-
Camera interaction class
Properties:
Name Type Default Description LEFT_DRAGNumber 0 Press the left mouse button, then move the mouse and release the button.
RIGHT_DRAGNumber 1 Press the right mouse button, then move the mouse and release the button.
MIDDLE_DRAGNumber 2 Hold down the middle mouse button, then move the mouse and release the button
WHEELNumber 3 Scroll the middle mouse button.
PINCHNumber 4 Two-finger touch on a touch screen.
-
CategoryFieldName
-
Feature value field class
Properties:
Name Type Default Description ElevationString VertexWeight Point cloud altitude.
IntensityString PointCloudIntensity Point cloud intensity.
ClassCodeString PointCloudClassCode Point cloud classification.
OffsetString VertexOffset Vertex offset.
VelocityString Velocity Velocity (2D or 3D velocity) can be used to visualize water flow direction on S3M water surfaces.
-
CategoryVisibleMode
-
Visibility mode based on feature value class
Properties:
Name Type Default Description HideNumber 0 Hidden.
VisibleNumber 1 Displayed.
ResetAllNumber 2 Reset, show all.
-
ClampMode
-
Style classes for drawing and measuring geometric objects.
- See:
Properties:
Name Type Default Description SpaceNumber 0 Space mode
GroundNumber 1 Ground contact mode
S3mModelNumber 2 Paste object mode
RasterNumber 3 Rasterization mode
BothNumber 4 Ground mounted object mode
-
ClassificationType
-
Classification mode classes for terrain and 3D tiles.
Properties:
Name Type Default Description TERRAINNumber 0 Only terrain will be classified.
CESIUM_3D_TILENumber 1 Only 3D Tiles will be classified.
S3M_TILENumber 2 S3M Tile classification.
BOTHNumber 3 Both terrain and 3D Tiles will be classified.
NUMBER_OF_CLASSIFICATION_TYPES4 -
ClippingType
-
Crop mode.
Properties:
Name Type Default Description KeepOutsideNumber 1 Trim the interior
KeepInsideNumber 2 Crop external
-
ClipPlaneMode
-
Cross-section mode for clipping planes.
Properties:
Name Type Default Description NONENumber 0 No cross-section.
COLORNumber 1 Cross-section uses the specified color.
MODEL_COLORNumber 2 Cross-section uses the model's color (not applicable for S3M layers).
-
ColorBlendMode
-
Defines different blending mode classes for target color and source color.
Properties:
Name Type Default Description HIGHLIGHTNumber 0 Multiplies the source color by the target color.
REPLACENumber 1 Replaces the source color with the target color.
MIXNumber 2 Replaces the source color with the target color.
-
ColorModulationInfo
-
When setting a color table using point cloud intensity feature values, the maximum and minimum values in the color table are set based on the maximum and minimum values of point cloud intensity.
-
ColorStyleObject
-
Color Style
Properties:
Name Type Default Description OrigialTextureNumber 0 原始纹理模式,显示所有的顶点颜色、材质颜色以及纹理颜色
PureColorNumber 1 纯色模式,渲染时忽略顶点颜色和纹理颜色,显示风格上设置的填充色,默认白色
-
ControlModeObject
-
Properties:
Name Type Default Description DESIGNNumber 0 屏幕中心
NORMALNumber 1 mouse position
-
CredentialType
-
Key Type
Properties:
Name Type Default Description ISERVER_TOKENString token iServer key type.
IPORTAL_KEYString key iPortal key type.
-
DrawMode
-
Drawing Mode Class
- See:
Properties:
Name Type Default Description PointNumber 0 plot points
LineNumber 1 draw lines
PolygonNumber 2 Draw surface
MarkerNumber 3 draw icons
BoxNumber 4 Draw Box
CircleNumber 5 Draw a circle
-
FillStyle
-
S3M layer fill style class
- See:
Properties:
Name Type Default Description FillNumber 0 Fill mode.
WireFrameNumber 1 Wireframe mode.
Fill_And_WireFrameNumber 2 Fill and wireframe mode.
-
FlowDirectionDisplayMode
-
Flow direction representation mode
Properties:
Name Type Default Description NONENumber 0 Flow direction is not visualized
ARROWNumber 1 The flow direction is represented as an arrow
FIXED_SIZE_ARROWNumber 2 The flow direction is represented by arrows of fixed length and actual size
-
FlyInterpolationMode
-
Camera Flight Interpolation Mode
Properties:
Name Type Default Description NONENumber 0 No interpolation
CATMULL_ROMNumber 1 CatmullRom interpolation
-
HeightReference
-
Indicates the position relative to terrain.
Properties:
Name Type Default Description NONENumber 0 Absolute position.
CLAMP_TO_GROUNDNumber 1 Clamp to terrain and 3D Tiles models.
RELATIVE_TO_GROUNDNumber 2 Vertical height relative to terrain and 3D Tiles models.
CLAMP_TO_TERRAINnumber 3 Clamp to terrain.
RELATIVE_TO_TERRAINnumber 4 Vertical height relative to terrain.
CLAMP_TO_3D_TILEnumber 5 Clamp to 3D Tiles models.
RELATIVE_TO_3D_TILEnumber 6 Vertical height relative to 3D Tiles models.
-
HypsometricSettingEnum
-
Hypsometric tinting enumeration class
Properties:
Name Type Default Description DisplayModeObject {"NONE": 0, "FACE": 1, "LINE": 2, "FACE_AND_LINE": 3} Display mode
AnalysisRegionModeObject {"ARM_NONE": 0, "ARM_ALL": 1, "ARM_REGION": 2} Analyze the scope mode
FilterModeObject {"LINEAR": 0, "NEAREST": 1} sampling mode
-
InstancedType
-
Instancing class
Properties:
Name Type Default Description INSTANCED_LAYERNumber Instanced_Layer Instanced layer.
INSTANCED_OBJECTInstanced_Object Instanced object.
-
InterpolationType
-
Interpolation class, default value is Linear
Properties:
Name Type Default Description LinearNumber 0 Linear interpolation.
AccelerationNumber 1 Acceleration motion interpolation.
DecelerationNumber 2 Deceleration motion interpolation.
CubicSplineNumber 3 Cubic spline interpolation.
SmoothStepNumber 4 SmoothStep interpolation (y = (3 - 2 * t) * t * t).
-
LabelStyle
-
Label drawing mode.
- See:
Properties:
Name Type Default Description FILLNumber 0 Fill label text, no outline.
OUTLINENumber 1 Outline label text, no fill.
FILL_AND_OUTLINENumber 2 Fill and outline label text.
-
LightSourceType
-
Light source class
Properties:
Name Type Default Description DIRECTIONALNumber 0 Directional light.
POINTNumber 1 Point light.
SPOTNumber 2 Spotlight.
HEMISPHERENumber 3 Hemispherical light
-
LineDisplayType
-
Occlusion mode
Properties:
Name Type Default Description OCCLUDEDNumber 0 Occlusion.
OCCLUDED_TRANSLUCENTNumber 1 Occluded parts are semi-transparent.
NON_OCCLUDEDNumber 2 Not occluded.
-
LoadingPriorityMode
-
Load priority mode.
Properties:
Name Type Default Description Root_PriorityNumber 0 Layer-first loading mode.
Child_PriorityNumber 1 Depth-first loading mode.
UsePagedLodInfoNumber 2 Load based on spatial index.
Child_Priority_NonLinearNumber 3 Depth-first nonlinear switching. When loading large area fine model tiles, selecting this mode can reduce the amount of updates in the distance.
-
MapMode2D
-
The operation mode of the map in 2D mode.
Properties:
Name Type Default Description ROTATENumber 0 A 2D map can rotate around the Z-axis.
INFINITE_SCROLLNumber 1 A 2D map can scroll infinitely in the horizontal direction.
-
MeasureMode
-
Measurement mode class.
- See:
Properties:
Name Type Default Description DistanceNumber 0 Distance measurement mode
AreaNumber 1 面积量算模式
DVHNumber 2 Three-component measurement mode (height measurement) for spatial distance, horizontal distance, and vertical distance.
AngleNumber 4 Angle measurement mode: Supports azimuth angle (clockwise in due north direction, range 0~360) and elevation angle (upward in horizontal direction, range -90~+90)
-
MixColorType
-
Layer Color Blending Mode Class
Properties:
Name Type Default Description MIXNumber 0 Color blending mode.
REPLACENumber 1 Color replacement mode.
-
ModelAnimationLoop
-
Determines whether and how to play glTF animations.
- See:
Properties:
Name Type Default Description NONENumber 0 Play once, no loop.
REPEATNumber 1 Loop playback, starts from beginning immediately after stopping.
MIRRORED_REPEATNumber 2 Loop animation, plays forward, then backward, and keeps looping.
-
ModifyRegionMode
-
Excavation mode
Properties:
Name Type Default Description CLIP_INSIDENumber 0 Excavation inside
CLIP_OUTSIDENumber 1 Excavate the exterior
-
MultiViewportMode
-
Multi-viewport mode class.
Properties:
Name Type Default Description NONENumber 0 Single viewport mode.
HORIZONTALNumber 1 Horizontal dual viewport mode.
VERTICALNumber 2 Vertical dual viewport mode.
QUADNumber 3 Quad viewport mode.
TRIPLENumber 4 Triple viewport mode.
VerticalTrisectionNumber 5 Horizontal triple viewport mode, with three viewports in the same horizontal direction.
FIVE_DIVISIONSNumber 6 Five viewport mode.
SIX_DIVISIONSNumber 7 Six viewport mode.
SEVEN_DIVISIONSNumber 8 Seven viewport mode.
EIGHT_DIVISIONSNumber 9 Eight viewport mode.
NINE_DIVISIONSNumber 10 Nine viewport mode.
ONE_THREE_THREE_DIVISIONSNumber 11 1-3-3形式的7视口模式
-
PackingRequest
-
Packaging request encoding method
Properties:
Name Type Default Description NoneNumber 0 Not packaged, normal request
QuadKeyNumber 1 Package requests using quadtree encoding method
-
ParticleModenumber
-
Rendering mode of individual particles in grid flow field
Properties:
Name Type Default Description Texturenumber 0 Texture mode
Pointnumber 1 Point Element Mode
-
constant PerformancePreferenceMode
-
Performance preference mode: performance first, effect first
Properties:
Name Type Default Description EffectNumber 0 Effect first
PerformanceNumber 1 Performance first
-
PixelFormat
-
The format of pixels, which refers to the number of components in a pixel and the content it represents.
Properties:
Name Type Default Description DEPTH_COMPONENTNumber WebGLConstants.DEPTH_COMPONENT Pixel format containing depth values.
DEPTH_STENCILNumber WebGLConstants.DEPTH_STENCIL A pixel format that includes depth and template values, typically used in conjunction with PixelDatatype.UNSIGNED_INT_24_8.
ALPHANumber WebGLConstants.ALPHA Pixel format containing alpha channel.
RGBNumber WebGLConstants.RGB A pixel format that includes red, green, and blue channels.
RGnumber WebGLConstants.RG A pixel format that includes red and green channels.
RGBANumber WebGLConstants.RGBA A pixel format that includes red, green, blue, and alpha channels.
LUMINANCENumber WebGLConstants.LUMINANCE Pixel format containing brightness (intensity) channels.
LUMINANCE_ALPHANumber WebGLConstants.LUMINANCE_ALPHA A pixel format that includes brightness (intensity) and alpha channels.
RGB_DXT1Number WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT A pixel format containing red, green, and blue channels, compressed by DXT1.
RGBA_DXT1Number WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT A pixel format containing red, green, blue, and alpha channels, compressed by DXT1.
RGBA_DXT3Number WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT A pixel format containing red, green, blue, and alpha channels, compressed by DXT3.
RGBA_DXT5Number WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT A pixel format containing red, green, blue, and alpha channels, compressed by DXT5.
RGB_PVRTC_4BPPV1Number WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG A pixel format containing red, green, and blue channels, compressed by PVR 4bpp.
RGB_PVRTC_2BPPV1Number WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG A pixel format containing red, green, and blue channels, compressed by PVR 2bpp.
RGBA_PVRTC_4BPPV1Number WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG A pixel format containing red, green, blue, and alpha channels, compressed by PVR 4bpp.
RGBA_PVRTC_2BPPV1Number WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG A pixel format containing red, green, blue, and alpha channels, compressed by PVR 2bpp.
RGBA_ASTCNumber WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL A pixel format containing red, green, and blue channels, compressed by ASTC.
RGB_ETC1Number WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL A pixel format containing red, green, and blue channels, compressed by ETC1.
RGB8_ETC2Number WebGLConstants.COMPRESSED_RGB8_ETC2 A pixel format containing red, green, and blue channels, compressed by ETC2.
RGBA8_ETC2_EACNumber WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC A pixel format containing red, green, and blue channels, compressed by ETC2 EAC.
RGBA_BC7Number WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM A pixel format containing red, green, and blue channels, compressed by BC7.
RG_INTEGERnumber WebGLConstants.RG_INTEGER A pixel format containing red and green channels as integers.
componentsLengthvalidateisColorFormatisDepthFormatisCompressedFormatisDXTFormatisPVRTCFormatisETC1FormatcompressedTextureSizeInBytestextureSizeInBytesalignmentInBytescreateTypedArrayflipY -
PositionMode
-
Position Mode
Properties:
Name Type Default Description DisjointNumber 0 separation
IntersectsNumber 1 intersect
ContainsNumber 2 contain.
-
ProjectionName
-
Projection Name
Properties:
Name Type Default Description TMERCString tmerc Transverse Mercator projection (Gaussian Kruger)
ALBERSString aea Albers projection
LCCString lcc Lambert positive axis isometric cone projection
UTMString utm Isometric transverse cutting cylindrical projection
-
Quality
-
The quality of a heatmap is represented by its texture resolution.
Properties:
Name Type Default Description LOWNumber 1024 Low quality.
MEDIUMNumber 2048 Medium quality, default.
HIGHNumber 4096 High quality.
-
RasterGeometryType
-
Real-time rasterized geometry classes
Properties:
Name Type Default Description POLYLINENumber 0 Polyline.
POLYGONNumber 1 Polygon.
POLYGON_HOLENumber 2 Polygon with holes (if an original polygon has holes, its outer boundary points and holes need to be drawn separately).
-
RequestType
-
Identifies request classes (for finer logging and prioritization).
Properties:
Name Type Default Description TERRAINNumber 0 Terrain request.
IMAGERYNumber 1 Imagery request.
TILES3DNumber 2 3D Tiles request.
OTHERNumber 3 Other requests.
PACKNumber 4 Group request.
BLOCKNumber 5 Block request.
BLOCKPACKNumber 6 Make a block request.
-
RotationOriginnumber
-
Rotation origin type
Properties:
Name Type Default Description CENTERnumber 0 Model center point
APEXnumber 1 Cone vertex
-
S3MCompressType
-
S3M texture compression type
Properties:
Name Type Default Description encNONE0 非压缩
enrS3TCDXTN14 DXT压缩
enrPVRTPF_PVRTC219 PVR压缩-IOS设备
enrPVRTPF_PVRTC20 PVR压缩-IOS设备
enrPVRTPF_PVRTC_4bpp21 PVR压缩-IOS设备
enrPVRTPF_ETC122 ETC压缩-安卓设备
-
ScanEffectMode
-
Scanline effect mode class.
Properties:
Name Type Default Description CIRCLEString {"programDefines": "CIRCLE"} Circular scan mode.
LINEString {"programDefines": "LINE"} Linear scan mode.
-
SceneMode
-
View mode class.
Properties:
Name Type Default Description MORPHINGNumber 0 3D to 2D switch.
COLUMBUS_VIEWNumber 1 2.5D view mode.
SCENE2DNumber 2 2D view mode.
SCENE3DNumber 3 3D view mode.
-
SelectColorTypeObject
-
Properties:
Name Type Default Description MIXNumber 0 Model texture and color mixed display.
REPLACENumber 1 Solid color display.
SILHOUETTENumber 2 Outline mode.
ALWAYS_SHOW_SILHOUETTENumber 3 Outline mode without occlusion.
SILHOUETTE_EDGENumber 4 Outer contour illumination mode.
WIREFRAMENumber 5 Selected model outline highlight mode.
-
ServerType
-
Service Type
Properties:
Name Type Default Description ISERVERString ISERVER ISERVER
IPORTALString IPORTAL IPORTAL
ONLINEString ONLINE ONLINE
-
ShadowMode
-
Specifies whether the object casts or receives shadows from light sources when shadows are enabled.
Properties:
Name Type Default Description DISABLEDNumber 0 This object does not cast or receive shadows.
ENABLEDNumber 1 This object receives or casts shadows.
CAST_ONLYNumber 2 This object only casts shadows.
RECEIVE_ONLYNumber 3 This object only receives shadows
NUMBER_OF_SHADOW_MODES4 -
SHADOWTYPE
-
S3M layer shadow type
Properties:
Name Type Default Description NONENumber 0 关闭阴影
SELECTIONNumber 1 仅选中对象开启阴影
ALLNumber 2 所有对象开启阴影
-
SplitDirectionObject
-
Roller blind direction
Properties:
Name Type Default Description NONENumber 0 禁用卷帘
LEFTNumber 1 屏蔽卷帘左边
RIGHTNumber 2 屏蔽卷帘右边
TOPNumber -1 屏蔽卷帘上边
BOTTOMNumber -2 屏蔽卷帘下边
-
StopPlayMode
-
Site Mode Class
- See:
Properties:
Name Type Default Description StopPauseString StopPause Normal Mode
StopAroundString StopAround Site surround mode
-
constant SunLightAnalysisMode
-
Sunlight analysis mode class
Properties:
Name Type Default Description SunlightDurationnumber 0 Sunlight duration.
ShadowDurationnumber 1 Shadow duration.
-
TurningMode
-
Camera flight turning mode class
Properties:
Name Type Default Description SmoothlyNumber 0 Smooth turns
DirectlyNumber 1 Turn directly
-
UrlTypeObject
-
S3M layer requests data format
Properties:
Name Type Default Description RESTNumber 0 KEY_VALUENumber 1 -
ViewDomeType
-
Openness display class
Properties:
Name Type Default Description VISIBLEDOMEnumber 0 Visible part.
HIDDENDOMEnumber 1 Hidden part.
ALLDOMEnumber 2 Show all.
-
VolumeRenderMode
-
Real-time rasterized geometry classes
Properties:
Name Type Default Description VolumeRenderingNumber 0 Volume.
SliceNumber 1 Clipping plane.
ContourValueNumber 2 Isosurface.
-
VolumetricCloudsQuality
-
Volume cloud mass enumeration class
Properties:
Name Type Default Description LowNumber 0 Low quality
MiddleNumber 1 regular quality
HighNumber 2 High quality
-
WalkingMode
-
Camera mode class
Properties:
Name Type Default Description NONENumber 0 Default mode, third-person camera mode 0.
ByKeyboardNumber 1 Keyboard-driven first-person camera mode 1.
-
WaterbodySize
-
Set water area category
Properties:
Name Type Default Description SMALLNumber 0 Suitable for smaller water areas with a range of 50 * 50 unit meters and an enumeration value of 0.
MEDIUMNumber 1 Suitable for medium water areas with a range of 100 * 100 unit meters and an enumeration value of 1.
LARGENumber 2 Suitable for a wide range of water areas with a unit meter of 1000 * 1000 and an enumeration value of 2.
-
WaterMode
-
Flood analysis (connectivity) class (supported data: terrain and models, requires DSM dataset published as data service).
Properties:
Name Type Default Description ClampNumber 0 Clamp to ground.
AbsoluteNumber 1 Absolute water surface height.
-
WaveStrength
-
Water ripple intensity class
Properties:
Name Type Default Description CALMNumber 0 Calm.
SLIGHTNumber 1 Slight ripples.
MILDNumber 2 Medium ripple.
MODERATENumber 3 Large ripples.
-
WindingOrder
-
Model rendering mode class
Properties:
Name Type Default Description CLOCKWISEString WebGLConstants.CW Front-face (clockwise) rendering.
COUNTER_CLOCKWISEString WebGLConstants.CCW Front-face (counter-clockwise) rendering.
NONEString WebGLConstants.NONE Double-sided rendering.
validate -
WireFrameType
-
S3M layer model wireframe mode class
Properties:
Name Type Default Description TriangleNumber 0 Triangle wireframe mode (effective when no border type is set during desktop tile generation).
QuadNumber 1 Quadrilateral wireframe mode (requires checking 'with wireframe' during desktop tile generation).
SketchNumber 2 Sketch wireframe mode (requires checking 'with wireframe' during desktop tile generation).
EffectOutlineNumber 3 Effect border line (requires checking 'with wireframe' during desktop tile generation).
Methods
-
processGeoJsonObject(){promise}
-
Processing GeoJSON objects
Returns:
Type Description promise
Type Definitions
-
EntityTypestring
-
- USER:用户
- DEPARTMENT:部门
- IPORTALGROUP:群组
- ROLE:角色
- Default Value: USER
FieldInfoObject
Define the structure of object attribute information.
Properties:
| Name | Type | Description |
|---|---|---|
alias |
string |
optional
property alias |
isRequired |
Boolean |
optional
Is it a required field |
isSystem |
Boolean |
optional
Is it a system field |
name |
string |
optional
Attribute Name |
size |
number |
optional
Length of attribute value |
type |
string |
optional
Type of attribute value |
fieldValueObject
Define the structure of object return property values.
Properties:
| Name | Type | Description |
|---|---|---|
values |
array |
optional
Attribute value array |
indexs |
array |
optional
Index of layer attribute information corresponding to attribute values |
PermissionTypestring
- SEARCH:搜索权限
- READ:读取权限
- READWRITE:读写权限
- DOWNLOAD:下载权限
- Default Value: SEARCH
RequestParametersobject
添加一个自定义资源加载函数,当使用以自定义 URL 方案开头的 URL 时会调用该函数。 下面的示例将在样式定义中 sources 列表定义的 custom:// URL 时触发。 传入的函数将接收请求参数,并应返回结果资源, 例如 pbf 矢量瓦片(未压缩),以 ArrayBuffer 形式表示。
Properties:
| Name | Type | Description |
|---|---|---|
请求url |
string | |
请求头定义 |
object | |
请求方法 |
string |
|
请求体 |
string | |
返回的响应体类型 |
string |
|
Example
```js
// 这将使用 fetch API 获取文件(这显然不是一个有趣的示例...)
vectorTilesMapSetting.addProtocol({
customProtocol: 'custom',
loadFn: async (params) => {
const t = await fetch(`https://${params.url.split("://")[1]}`);
if (t.status == 200) {
const buffer = await t.arrayBuffer();
return {data: buffer}
} else {
throw new Error(`Tile fetch error: ${t.statusText}`);
}
}
});
// 以下是尝试加载瓦片时返回错误的示例
VectorTilesMapSetting.addProtocol({
customProtocol: 'custom2',
loadFn: async (params, abortController) => {
throw new Error('someErrorMessage');
}
});
```
SnappingResultObject
定义捕捉返回结果结构。
Properties:
| Name | Type | Description |
|---|---|---|
layerName |
String |
optional
Layer Name |
objectId |
number |
optional
对象ID |
candidate |
Cartesian3 |
optional
捕捉的顶点的位置(世界坐标系) |
vertexId |
number | null |
optional
顶点ID |