| | |
| | | //this.map.infoWindow.anchor = anchor; |
| | | |
| | | this.map.infoWindow.cluster = this.activeCluster; |
| | | |
| | | //reset the geometry of the flare feature in the info window to be the actual location of the flared object, not the location of the flare graphic. |
| | | var p = webMercatorUtils.geographicToWebMercator(new Point(flareObject.singleData[this.xPropertyName], flareObject.singleData[this.yPropertyName], this.spatialRef)); |
| | | this.map.infoWindow.features[0].geometry = p; |
| | |
| | | } |
| | | |
| | | this.allData.push(obj); |
| | | |
| | | var xVal = obj[this.xPropertyName]; |
| | | var yVal = obj[this.yPropertyName]; |
| | | |
| | |
| | | }, |
| | | |
| | | _createClusterGrid: function (webExtent) { |
| | | |
| | | //get the total amount of grid spaces based on the height and width of the map (divide it by clusterRatio) - then get the degrees for x and y |
| | | var xCount = Math.round(this.map.width / this.clusterRatio); |
| | | var yCount = Math.round(this.map.height / this.clusterRatio); |