练习

188 阅读1分钟

console.log(map.air);//就是直观的数据

PointSimplifier {_opts: {…}, __evHash: {…}, renderEngine: GroupStyleCanvasRender}
renderEngine: GroupStyleCanvasRender {_opts: {…}, __evHash: {…}, _leftNumFunnel: LeftNumFunnel, _debouncedHandleMousemove: ƒ, _rTreeForColliDetection: rbush, …}
__evHash: {pointClick: Array(1), pointMouseover: Array(1), pointMouseout: Array(1)}
_data:
bounds: BoundsItem {x: 220801792, y: 101337088, width: 756736, height: 564992}
list: (39) [PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem, PointItem]
source: (39) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
__proto__: Object
_opts: {zIndex: 888, zooms: Array(2), getHoverTitle: ƒ, getPosition: ƒ, compareDataItem: ƒ, …}
_quadTree: QuadTree {root: Node}
__proto__: Event

console.log(curFilter);

{station_types: Array(2), station_funcs: Array(7), station_levels: Array(2), project_area_ids: null, param: "AQI"}
param: "AQI"
project_area_ids: null
station_funcs: (7) [20101, 10201, 10101, 10301, 10401, 20201, 20301]
station_levels: (2) [1, 3]
station_types: (2) [2, 1]
__proto__: Object

console.log(MapDataSet);

{STATION: "监测站", PROJECT_AREA: "项目区域"}
PROJECT_AREA: "项目区域"
STATION: "监测站"
__proto__: Object

console.log(types);

(3) ["microair", "station", "microairweather"]
0: "microair"
1: "station"
2: "microairweather"
length: 3
__proto__: Array(0)

console.log(item.formatType);

station
microair

console.log(item);

{id: 100172, pid: 186, geo: {…}, gcjloc: {…}, name: "西四环南路-M06", …}
data: {RecordTime: "2016-07-15 15:00:00", tags: Array(0), RH: 51.14, P: null, data: {…}, …}
formatData: {AQI: {…}, PM2_5: {…}, PM10: {…}, isReal: true}
formatType: "microair"
functionType: null
gcjloc: {lng: 116.28635883630139, lat: 39.871673271120756}
geo: {lat: 39.87044176, lng: 116.280319887, height: 157}
id: 100172
isStation: true
name: "西四环南路-M06"
params: (3) ["AQI", "PM2_5", "PM10"]
pid: 186
show: true
type: 2
typeClass: "station"
typeID: 2
__proto__: Object
```