JSMap
지도 설정 및 제어하기 위한 API 입니다.
var map = Module.getMap();Function
addHeatMaps(coordinates)
Name
Type
Description
var layerList = new Module.JSLayerList(true);
var layer = layerList.createLayer("HEATMAP_POI", Module.ELT_3DPOINT);
layer.setMaxDistance(60000000.0);
var vList = new Module.JSVec3Array();
var positions = [
[129.12628252638348, 35.174613788186335, -127.18464569468051],
[129.1278597986113, 35.1730738804656, -127.16845162212849],
[129.12691776723804, 35.17243834516552, -127.23446262534708],
[129.12837451707335, 35.171954803028704, -127.18164411373436],
];
positions.forEach(function (item, idx) {
vList.push(new Module.JSVector3D(item[0], item[1], 0));
});
Module.getMap().clearHeatMap();
Module.getMap().setTerrainEffect(9);
Module.getMap().setDistance(200);
Module.getMap().setWeight(1);
Module.getMap().addHeatMaps(vList);
Module.getMap().setEffectDistance(1500000);addInputPoint(lon, lat) → number
Name
Type
Description
Module.getMap().addInputPoint(127.4347, 35.7016);clearHeatMap()
clearInputPoint()
clearSelectObj()
clearSnowfallArea()
getInputPointCount() → number
getInputPointList() → Collection
getInputPoints() → JSVec3Array
getTerrHeight(lon, lat) → number
Name
Type
Description
GetPointDistance(from, to, type) → number
Name
Type
Description
getLineBuffer(coordinates, distance) → JSVec2Array
Name
Type
Description
MapRender()
MapToScreenPointEX(position) → JSVector2D
Name
Type
Description
ScreenToMapPointEX(position) → JSVector3D
Name
Type
Description
setCircleInputPoint(center, radius, segment)
Name
Type
Description
setDistance(distance)
Name
Type
Description
setEffectDistance(max)
Name
Type
Description
setSnowfallArea(array)
Name
Type
Description
setSnowfallColor(color)
Name
Type
Description
setTerrLODRatio(ratio)
Name
Type
Description
setWeight(weight)
Name
Type
Description
setFog(color, start, end, density)
Name
Type
Description
setFogEnable(type)
Name
Type
Description
setRainImageURL(url) → boolean
Name
Type
Description
setSnowfall(state)
Name
Type
Description
setSnowfallLevel(level) → number
Name
Type
Description
setSnowImageURL(url) → boolean
Name
Type
Description
startWeather(type, size, speed) → boolean
Name
Type
Description
stopWeather()
setSimpleMode(type) → boolean
Name
Type
Description
setTerrainEffect(value)
Name
Type
Description
updateRTT()
Getter / Setter
getSelectObject(), setSelectObject(object) → JSObject
Name
Type
Description
getFogLimitAltitude(), setFogLimitAltitude(altitude) → number
Name
Type
Description
getPathIntervalPositions(path, interval, isUnionTerrain) → JSVec3Array
Parameters
Name
Type
Description
Returns
Sample
getTerrHeightFast(lon, lat) → number
Name
Type
Description
getPositionByAngleDistance3D(position, distance, angle) → JSVector3D
Name
Type
Description
getAreaIntervalPositions(area, intervalVertical, intervalHorizontal, direction) → JSVec3Array
Name
Type
Description
setHeatMapOpacity(opacity)
Name
Type
Description
setDefaultHeatMapColor()
setHeatMapColor(colors)
Name
Type
Description
getPositionByAngleDistance3D(position, distance, angle) → JSVector3D
Name
Type
Description
Last updated