diff --git a/panels/map2/display/binning.js b/panels/map2/display/binning.js
index 418cc79f5f4..a13db8ecdd4 100644
--- a/panels/map2/display/binning.js
+++ b/panels/map2/display/binning.js
@@ -1,10 +1,10 @@
-function displayBinning() {
+function displayBinning(scope, dimensions, projection) {
/**
* Hexbin-specific setup
*/
var hexbin = d3.hexbin()
- .size([width, height])
+ .size(dimensions)
.radius(scope.panel.display.binning.hexagonSize);
@@ -16,7 +16,7 @@ function displayBinning() {
//However, we don't want to add a million points, so normalize against the largest value
if (scope.panel.display.binning.areaEncodingField === 'secondary') {
var max = Math.max.apply(Math, _.map(scope.data, function(k,v){return k;})),
- scale = 10/max;
+ scale = 50/max;
_.map(scope.data, function (k, v) {
var decoded = geohash.decode(v);
@@ -50,7 +50,7 @@ function displayBinning() {
*/
- g.selectAll(".hexagon")
+ scope.g.selectAll(".hexagon")
.data(binnedPoints)
.enter().append("path")
.attr("d", function (d) {
diff --git a/panels/map2/display/geopoints.js b/panels/map2/display/geopoints.js
index 12d4b9ab88a..0602c160cc0 100644
--- a/panels/map2/display/geopoints.js
+++ b/panels/map2/display/geopoints.js
@@ -1,5 +1,5 @@
-function displayGeopoints() {
- g.selectAll("circles.points")
+function displayGeopoints(scope) {
+ scope.g.selectAll("circles.points")
.data(points)
.enter()
.append("circle")
diff --git a/panels/map2/editor.html b/panels/map2/editor.html
index 6dd8a930319..d67fcea0264 100644
--- a/panels/map2/editor.html
+++ b/panels/map2/editor.html
@@ -8,230 +8,273 @@
padding-bottom:10px;
}
-
-
- The map panel uses 2 letter country or US state codes to plot concentrations
- on a map. Darker terroritories mean more records matched that area. If
- multiple queries are sent from a single panel the first query will be
- displayed
+
+
+
+ The map panel uses 2 letter country or US state codes to plot concentrations
+ on a map. Darker terroritories mean more records matched that area. If
+ multiple queries are sent from a single panel the first query will be
+ displayed
+