JSPolygon
지도 내 평면 객체를 생성 및 설정하기 위한 API 입니다.
var object = Module.createPolygon("ID");Function
getArea() → number
var area = object.getArea();getBoundary() → JSAABBox3D
var boundary = object.getBoundary();
var boundary_min = boundary.min;
var boundary_max = boundary.max;getCenter() → JSVector3D
getParts() → Collection
getExtent() → number
getId() → string
loadFile(option) → boolean
Name
Type
Description
loadTexture(id, url) → boolean
Name
Type
Description
setCircle(position, radius, segment)
Name
Type
Description
setSphere(parameter)
Name
Type
Description
setFaceTexture(index, id) → boolean
Name
Type
Description
setFireEffect(type) → boolean
Name
Type
Description
setHeight(height) → boolean
Name
Type
Description
setHeightByType(height, type) → boolean
Name
Type
Description
setHeights(height) → boolean
Name
Type
Description
setVerticalPlane(height, closed) → boolean
Name
Type
Description
setFileMesh(path, name, pos) → boolean
Name
Type
Description
SetTexturePlane(coordinates, parts, uv, texture, type) → boolean
Name
Type
Description
SetTexture(texture, faceIndex, type) → boolean
Name
Type
Description
SetRenderToTexture(type) → boolean
Name
Type
Description
setCullMode(type) → boolean
Name
Type
Description
setPipe(center, radius, length, slice, color) → boolean
Name
Type
Description
setExtraPosition(addLon, addLat, addHeight) → boolean
Name
Type
Description
move(lon, lat, alt) → boolean
Name
Type
Description
moveAltitude(alt, type) → boolean
Name
Type
Description
setRotation(x, y, z) → boolean
Name
Type
Description
setScale(x, y, z) → boolean
Name
Type
Description
getAxisEndpoint(axis, length) → JSVector3D
Name
Type
Description
getAltitude() → number
setPartCoordinates(coordinates, parts) → boolean
Name
Type
Description
setPlaneCoordinates(coordinates, altitude) → void
Name
Type
Description
setPartCoordinatesUV(coordinates, parts, uv, type) → boolean
Name
Type
Description
setPartCoordinatesCW(coordinates, parts, cw) → boolean
Name
Type
Description
setFaceTextureWrapU(faceIndex, wrapType), setFaceTextureWrapV(faceIndex, wrapType) → boolean
Name
Type
Description
createVerticalGrid(layername, lefttop, rightbottom, row, col) → boolean
Name
Type
Description
Getter / Setter
getCoordinates(), setCoordinates(coordinates) → Collection
Name
Type
Description
getDescription(), setDescription(desc) → string
Name
Type
Description
getName(), setName(name) → string
Name
Type
Description
getVisible(), setVisible(visible) → boolean
Name
Type
Description
getStyle(), setStyle(style) → JSPolygonStyle
Name
Type
Description
SetAnimationByID(id) → boolean
Name
Type
Description
createWithFaces(parameter) → object
Name
Type
Description
setHeightUV(uv, height) → boolean
Name
Type
Description
setOverlayObject(options) → boolean
Name
Type
Description
Name
Type
Required
Description
getUnionMode(), setUnionMode(bMode) → void
Name
Type
Description
Type Definitions
JSPolygon.loadFileOption
Name
Type
Attributes
Default
Description
Last updated