BrightkiteLayer

GeoGlobe.Visuals.Three. BrightkiteLayer

new BrightkiteLayer()

灯火图层
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

Default Value:
  • 'json'
输出格式,默认值为JSON
Type:
  • String

id :String

Default Value:
  • '1'
图层id
Type:
  • String

levelPrecision :Array

Default Value:
  • [8,8,8]
[可选]精度,填写数值0,1,2,3,4,5,6,7,8等整数值,0代表bbox类别,1及以上代表网格,数值越大查询的格网越小
Type:
  • Array

name :String

Default Value:
  • '实时数据服务'
实时数据服务名称
Type:
  • String

opacity :Number

Default Value:
  • 1.0
透明度 0-1
Type:
  • Number

rendererOptions :Object

Default Value:
  • {}
渲染参数
Type:
  • Object

requestArgs :Object

Default Value:
  • {}
请求服务参数
Type:
  • Object

service :String

Default Value:
  • 'RTDS'
请求服务地址
Type:
  • String

tileSize :Number

Default Value:
  • 256
瓦片大小
Type:
  • Number

version :String

Default Value:
  • '1.0.0'
服务版本号
Type:
  • String

visible :Boolean

Default Value:
  • true
可见性
Type:
  • Boolean

Methods

addTo(three)

关联Three
Parameters:
Name Type Description
three GeoGlobe.Visuals.Three

reDraw()

重绘图层

remove()

从父对象中移除自己

render()

渲染

setVisibility(visible)

设置图层是否显示
Parameters:
Name Type Description
visible Boolean 是否显示,设置为true则显示,设置为false不显示