原文:AGS API for JavaScript 图表上地图

AGS API for JavaScript 图表上地图-LMLPHP

图1

AGS API for JavaScript 图表上地图-LMLPHP

图2

AGS API for JavaScript 图表上地图-LMLPHP

图3

-------------------------------------华丽丽的分割线-----------------------------------

AGS API for JavaScript 图表上地图-LMLPHP

图4

AGS API for JavaScript 图表上地图-LMLPHP

图5

AGS API for JavaScript 图表上地图-LMLPHP                 AGS API for JavaScript 图表上地图-LMLPHP

他们的内心是崩溃的……

AGS API for JavaScript 图表上地图-LMLPHP

constructor: function (parameters) {
lang.mixin(this, parameters);
isContentShowing = false; domClass.add(this.domNode, "myInfoWindow");
this._content = domConstruct.create("div", { "class": "content" }, this.domNode);
this._eventConnections = [];
domUtils.hide(this.domNode);
this.isShowing = false;
}, setMap: function (map) {
this.inherited(arguments);
this._eventConnections.push(map.on("pan", lang.hitch(this, this.__onMapPan)));
this._eventConnections.push(map.on("extent-change", lang.hitch(this, this.__onMapExtChg)));
this._eventConnections.push(map.on("zoom-start", lang.hitch(this, this.__onMapZmStart)));
this._eventConnections.push(map.on("zoom", lang.hitch(this, this.onMapZm)));
},

其代码调用部分:

var infoWindow = new ChartInfoWindow({
domNode: domConstruct.create('div', null, document.getElementById('map'))
});
infoWindow.setMap(map); var nodeChart = null;
nodeChart = domConstruct.create("div", { id: 'nodeTest' + i, style: "width:120px;height:50px" }, win.body());
var chart = makeChart(nodeChart,showFields,max,i);
//optinalChart = chart;
infoWindow.resize(122, 52); //计算几何的中心位置,将图表信息框放置于此
var labelPt = new Point(Data[i][1],Data[i][2],map.SpatialReference);
infoWindow.setContent(nodeChart);
infoWindow.__mcoords = labelPt;
infoWindow.show(map.toScreen(labelPt));

AGS API for JavaScript 图表上地图-LMLPHP

AGS API for JavaScript 图表上地图-LMLPHP

05-07 15:06