@hpcc-js/map 2.75.3 → 2.75.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es6.js +8 -28
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +8 -28
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +10 -10
- package/src/Choropleth.ts +0 -2
- package/src/ChoroplethCounties.ts +1 -1
- package/src/ChoroplethCountries.ts +1 -1
- package/src/ChoroplethStates.ts +1 -1
- package/src/GMap.ts +5 -5
- package/src/GMapCounties.ts +0 -3
- package/src/GMapPin.ts +0 -2
- package/src/GMapPinLine.ts +0 -2
- package/src/GeoHash.ts +0 -2
- package/src/IChoropleth.ts +0 -1
- package/src/OpenStreet.ts +0 -6
- package/src/Pins.ts +0 -2
- package/src/Projection.ts +1 -1
- package/src/TopoJSONChoropleth.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/test.ts +1 -0
- package/types/Choropleth.d.ts.map +1 -1
- package/types/GMapCounties.d.ts.map +1 -1
- package/types/GMapPin.d.ts.map +1 -1
- package/types/GMapPinLine.d.ts.map +1 -1
- package/types/GeoHash.d.ts.map +1 -1
- package/types/OpenStreet.d.ts.map +1 -1
- package/types/Pins.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/test.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -21,8 +21,8 @@ function _mergeNamespaces(n, m) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
var PKG_NAME = "@hpcc-js/map";
|
|
24
|
-
var PKG_VERSION = "2.75.
|
|
25
|
-
var BUILD_VERSION = "2.102.
|
|
24
|
+
var PKG_VERSION = "2.75.6";
|
|
25
|
+
var BUILD_VERSION = "2.102.11";
|
|
26
26
|
|
|
27
27
|
/*! *****************************************************************************
|
|
28
28
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4448,7 +4448,7 @@ function resolve(id) {
|
|
|
4448
4448
|
if (retVal) {
|
|
4449
4449
|
return retVal();
|
|
4450
4450
|
}
|
|
4451
|
-
console.
|
|
4451
|
+
console.warn("Unknown projection: " + id);
|
|
4452
4452
|
return mercator();
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
@@ -5095,10 +5095,8 @@ var Choropleth = /** @class */ (function (_super) {
|
|
|
5095
5095
|
};
|
|
5096
5096
|
// Events ---
|
|
5097
5097
|
Choropleth.prototype.click = function (row, column, selected) {
|
|
5098
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5099
5098
|
};
|
|
5100
5099
|
Choropleth.prototype.dblclick = function (row, column, selected) {
|
|
5101
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5102
5100
|
};
|
|
5103
5101
|
return Choropleth;
|
|
5104
5102
|
}(Layer));
|
|
@@ -5326,7 +5324,7 @@ var ChoroplethCountries = /** @class */ (function (_super) {
|
|
|
5326
5324
|
.attr("d", function (d) {
|
|
5327
5325
|
var retVal = base._d3GeoPath(rFeatures$3[d[0]]);
|
|
5328
5326
|
if (!retVal) {
|
|
5329
|
-
console.
|
|
5327
|
+
console.warn("Unknown Country: " + d);
|
|
5330
5328
|
}
|
|
5331
5329
|
return retVal;
|
|
5332
5330
|
})
|
|
@@ -5419,7 +5417,7 @@ var ChoroplethCounties = /** @class */ (function (_super) {
|
|
|
5419
5417
|
.attr("d", function (d) {
|
|
5420
5418
|
var retVal = base._d3GeoPath(rFeatures$2[d[0]]);
|
|
5421
5419
|
if (!retVal) {
|
|
5422
|
-
console.
|
|
5420
|
+
console.warn("Unknown US County: " + d[0]);
|
|
5423
5421
|
}
|
|
5424
5422
|
return retVal;
|
|
5425
5423
|
})
|
|
@@ -5507,7 +5505,7 @@ var ChoroplethStates = /** @class */ (function (_super) {
|
|
|
5507
5505
|
.attr("d", function (d) {
|
|
5508
5506
|
var retVal = base._d3GeoPath(rFeatures$1[d[0]]);
|
|
5509
5507
|
if (!retVal) {
|
|
5510
|
-
console.
|
|
5508
|
+
console.warn("Unknown US State: " + d[0]);
|
|
5511
5509
|
}
|
|
5512
5510
|
return retVal;
|
|
5513
5511
|
})
|
|
@@ -5631,10 +5629,8 @@ var GeoHash = /** @class */ (function (_super) {
|
|
|
5631
5629
|
};
|
|
5632
5630
|
// Events ---
|
|
5633
5631
|
GeoHash.prototype.click = function (row, column, selected) {
|
|
5634
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5635
5632
|
};
|
|
5636
5633
|
GeoHash.prototype.dblclick = function (row, column, selected) {
|
|
5637
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5638
5634
|
};
|
|
5639
5635
|
return GeoHash;
|
|
5640
5636
|
}(Layer));
|
|
@@ -6564,7 +6560,7 @@ var GMap = /** @class */ (function (_super) {
|
|
|
6564
6560
|
}
|
|
6565
6561
|
};
|
|
6566
6562
|
GMap.prototype.statusError = function (response) {
|
|
6567
|
-
console.
|
|
6563
|
+
console.warn("Data not found for this location.");
|
|
6568
6564
|
};
|
|
6569
6565
|
return GMap;
|
|
6570
6566
|
}(HTMLWidget));
|
|
@@ -6706,7 +6702,6 @@ var GMapCounties = /** @class */ (function (_super) {
|
|
|
6706
6702
|
GMapCounties.prototype.render = function (callback) {
|
|
6707
6703
|
var _this = this;
|
|
6708
6704
|
return _super.prototype.render.call(this, function (w) {
|
|
6709
|
-
console.log("as:" + _this.autoScale());
|
|
6710
6705
|
if (_this._renderCount > 1 && _this.autoScale()) {
|
|
6711
6706
|
var bounds = _this._counties.getDataBounds();
|
|
6712
6707
|
if (bounds.x && bounds.y &&
|
|
@@ -6735,10 +6730,8 @@ var GMapCounties = /** @class */ (function (_super) {
|
|
|
6735
6730
|
_super.prototype.exit.call(this, domNode, element);
|
|
6736
6731
|
};
|
|
6737
6732
|
GMapCounties.prototype.click = function (row, column, selected) {
|
|
6738
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
6739
6733
|
};
|
|
6740
6734
|
GMapCounties.prototype.dblclick = function (row, column, selected) {
|
|
6741
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
6742
6735
|
};
|
|
6743
6736
|
return GMapCounties;
|
|
6744
6737
|
}(GMapLayered));
|
|
@@ -7045,10 +7038,8 @@ var Pins$1 = /** @class */ (function (_super) {
|
|
|
7045
7038
|
};
|
|
7046
7039
|
// Events ---
|
|
7047
7040
|
Pins.prototype.click = function (row, column, selected) {
|
|
7048
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
7049
7041
|
};
|
|
7050
7042
|
Pins.prototype.dblclick = function (row, column, selected) {
|
|
7051
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
7052
7043
|
};
|
|
7053
7044
|
return Pins;
|
|
7054
7045
|
}(Layer));
|
|
@@ -7124,7 +7115,6 @@ var GMapPin = /** @class */ (function (_super) {
|
|
|
7124
7115
|
_super.prototype.exit.call(this, domNode, element);
|
|
7125
7116
|
};
|
|
7126
7117
|
GMapPin.prototype.click = function (row, column, selected) {
|
|
7127
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
7128
7118
|
};
|
|
7129
7119
|
GMapPin.prototype.clickStreetView = function (row, column, selected) {
|
|
7130
7120
|
if (this.streetViewOnClick()) {
|
|
@@ -7135,7 +7125,6 @@ var GMapPin = /** @class */ (function (_super) {
|
|
|
7135
7125
|
}
|
|
7136
7126
|
};
|
|
7137
7127
|
GMapPin.prototype.dblclick = function (row, column, selected) {
|
|
7138
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
7139
7128
|
};
|
|
7140
7129
|
return GMapPin;
|
|
7141
7130
|
}(GMapLayered));
|
|
@@ -7284,10 +7273,8 @@ var GMapPinLine = /** @class */ (function (_super) {
|
|
|
7284
7273
|
_super.prototype.exit.call(this, domNode, element);
|
|
7285
7274
|
};
|
|
7286
7275
|
GMapPinLine.prototype.click = function (row, column, selected) {
|
|
7287
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
7288
7276
|
};
|
|
7289
7277
|
GMapPinLine.prototype.dblclick = function (row, column, selected) {
|
|
7290
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + "," + selected);
|
|
7291
7278
|
};
|
|
7292
7279
|
return GMapPinLine;
|
|
7293
7280
|
}(GMapLayered));
|
|
@@ -7508,7 +7495,6 @@ function IChoropleth() {
|
|
|
7508
7495
|
IChoropleth.prototype._palette = Palette.rainbow("default");
|
|
7509
7496
|
// Events ---
|
|
7510
7497
|
IChoropleth.prototype.click = function (row, column, selected) {
|
|
7511
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
7512
7498
|
};
|
|
7513
7499
|
|
|
7514
7500
|
function defaultScale(t) {
|
|
@@ -7654,9 +7640,6 @@ var OpenStreet = /** @class */ (function (_super) {
|
|
|
7654
7640
|
var scaleGUpdate = scaleG.enter().append("g")
|
|
7655
7641
|
.attr("class", "scaleG")
|
|
7656
7642
|
.attr("transform", stringify(tilesScale))
|
|
7657
|
-
.each(function (d) {
|
|
7658
|
-
console.log(d);
|
|
7659
|
-
})
|
|
7660
7643
|
.merge(scaleG);
|
|
7661
7644
|
scaleG.exit()
|
|
7662
7645
|
.style("opacity", 1)
|
|
@@ -7680,9 +7663,6 @@ var OpenStreet = /** @class */ (function (_super) {
|
|
|
7680
7663
|
.attr("width", 256)
|
|
7681
7664
|
.attr("height", 256)
|
|
7682
7665
|
.attr("xlink:href", function (d) { return "http://" + "abc"[d.y % 3] + ".tile.openstreetmap.org/" + d.z + "/" + d.x + "/" + d.y + ".png"; })
|
|
7683
|
-
.each(function (d) {
|
|
7684
|
-
console.log("http://" + "abc"[d.y % 3] + ".tile.openstreetmap.org/" + d.z + "/" + d.x + "/" + d.y + ".png");
|
|
7685
|
-
})
|
|
7686
7666
|
.transition().duration(500)
|
|
7687
7667
|
.style("opacity", 1);
|
|
7688
7668
|
};
|
|
@@ -7766,7 +7746,7 @@ TopoJSONChoropleth.prototype.layerUpdate = function (base) {
|
|
|
7766
7746
|
.attr("d", function (d) {
|
|
7767
7747
|
var retVal = base._d3GeoPath(context._choroTopologyFeatures[d[0]]);
|
|
7768
7748
|
if (!retVal) {
|
|
7769
|
-
console.
|
|
7749
|
+
console.warn("Unknown Country: " + d);
|
|
7770
7750
|
}
|
|
7771
7751
|
return retVal;
|
|
7772
7752
|
})
|