new BrightkiteLayer()
灯火图层
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
Example
//构造地图对象 //构造地图对象 var map = new GeoGlobe.Map({ style: Cfg.style, container: 'map', zoom: 10, bearing: 0, pitch: 0, units: "degrees", isIntScrollZoom: true, center: [114.31312918998901, 30.55318201596893] }); //构造THREE可视化图层 var threebox = new GeoGlobe.Visuals.Three(); //添加到地图中 threebox.addTo(map); //构造三维线图层 var options = { id: 'rtds', visible: true, opacity: 1, tileSize: 256, //与当前地图瓦片大小保持一致 name: '实时数据服务', service: 'http://192.168.30.91:9010/RTDS/rtds', version: '1.0.0', format: 'json', levelPrecision: [8,8,8,8,8,8,8,2,2,6,7], requestArgs: { datasetname: 'test0810', starttime: '2012-01-01 00:00:00', endtime: '2018-12-31 23:59:59' }, rendererOptions: { markPoint: { symbolMinSize: 10, symbolMaxSize: 10, effect: { show: true, scaleSize: 1, period: 10 }, color: "rgba(255, 122, 20, 1)" } } } var rtdsLayer = new GeoGlobe.Visuals.Three.BrightkiteLayer(options); //添加到THREE图层 rtdsLayer.addTo(threebox); //绘制 rtdsLayer.render();
Members
-
format :String
-
输出格式,默认值为JSON
Type:
- String
- Default Value:
-
- 'json'
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
id :String
-
图层id
Type:
- String
- Default Value:
-
- '1'
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
levelPrecision :Array
-
[可选]精度,填写数值0,1,2,3,4,5,6,7,8等整数值,0代表bbox类别,1及以上代表网格,数值越大查询的格网越小
Type:
- Array
- Default Value:
-
- [8,8,8]
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
name :String
-
实时数据服务名称
Type:
- String
- Default Value:
-
- '实时数据服务'
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
opacity :Number
-
透明度 0-1
Type:
- Number
- Default Value:
-
- 1.0
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
rendererOptions :Object
-
渲染参数
Type:
- Object
- Default Value:
-
- {}
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
requestArgs :Object
-
请求服务参数
Type:
- Object
- Default Value:
-
- {}
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
service :String
-
请求服务地址
Type:
- String
- Default Value:
-
- 'RTDS'
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
tileSize :Number
-
瓦片大小
Type:
- Number
- Default Value:
-
- 256
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
version :String
-
服务版本号
Type:
- String
- Default Value:
-
- '1.0.0'
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
visible :Boolean
-
可见性
Type:
- Boolean
- Default Value:
-
- true
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
Methods
-
addTo(three)
-
关联Three
Parameters:
Name Type Description three
GeoGlobe.Visuals.Three - Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
reDraw()
-
重绘图层
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
remove()
-
从父对象中移除自己
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
render()
-
渲染
- Source:
- View2D/Visuals/Three/BrightkiteLayer.js
-
setVisibility(visible)
-
设置图层是否显示
Parameters:
Name Type Description visible
Boolean 是否显示,设置为true则显示,设置为false不显示 - Source:
- View2D/Visuals/Three/BrightkiteLayer.js