@hpcc-js/map 2.79.3 → 2.79.5

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.
Files changed (89) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +88 -88
  3. package/TopoJSON/BR.json +122 -122
  4. package/TopoJSON/GB_idx.json +1 -1
  5. package/TopoJSON/IE_idx.json +1 -1
  6. package/TopoJSON/ND_idx.json +1 -1
  7. package/TopoJSON/countries.json +257 -257
  8. package/TopoJSON/us-counties.json +16550 -16550
  9. package/TopoJSON/us-states.json +458 -458
  10. package/dist/index.es6.js +49 -49
  11. package/dist/index.es6.js.map +1 -1
  12. package/dist/index.js +49 -49
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.min.js +1 -1
  15. package/dist/index.min.js.map +1 -1
  16. package/package.json +7 -7
  17. package/src/CanvasPinLayer.ts +99 -99
  18. package/src/CanvasPins.ts +396 -396
  19. package/src/Choropleth.css +27 -27
  20. package/src/Choropleth.ts +195 -195
  21. package/src/ChoroplethContinents.ts +13 -13
  22. package/src/ChoroplethCounties.ts +109 -109
  23. package/src/ChoroplethCountries.ts +100 -100
  24. package/src/ChoroplethStates.ts +104 -104
  25. package/src/ChoroplethStatesHeat.ts +8 -8
  26. package/src/GMap.css +16 -16
  27. package/src/GMap.ts +879 -879
  28. package/src/GMapCounties.ts +93 -93
  29. package/src/GMapGraph.ts +61 -61
  30. package/src/GMapHeat.ts +27 -27
  31. package/src/GMapLayered.ts +94 -94
  32. package/src/GMapPin.ts +115 -115
  33. package/src/GMapPinLine.ts +125 -125
  34. package/src/GeoHash.css +15 -15
  35. package/src/GeoHash.ts +125 -125
  36. package/src/Graph.css +10 -10
  37. package/src/Graph.ts +98 -98
  38. package/src/Graticule.css +13 -13
  39. package/src/Graticule.ts +90 -90
  40. package/src/Heat.css +2 -2
  41. package/src/Heat.ts +82 -82
  42. package/src/IChoropleth.ts +8 -8
  43. package/src/Layer.ts +90 -90
  44. package/src/Layered.css +19 -19
  45. package/src/Layered.ts +206 -206
  46. package/src/Lines.css +9 -9
  47. package/src/Lines.ts +75 -75
  48. package/src/OpenStreet.css +15 -15
  49. package/src/OpenStreet.ts +123 -123
  50. package/src/Pins.css +18 -18
  51. package/src/Pins.ts +319 -319
  52. package/src/Projection.ts +42 -42
  53. package/src/TestHeatMap.ts +8 -8
  54. package/src/TopoJSONChoropleth.ts +114 -114
  55. package/src/Utility.ts +482 -482
  56. package/src/__package__.ts +3 -3
  57. package/src/index.ts +34 -34
  58. package/src/leaflet/AlbersPR.ts +48 -48
  59. package/src/leaflet/Blank.ts +9 -9
  60. package/src/leaflet/Circles.ts +139 -139
  61. package/src/leaflet/ClusterCircles.css +26 -26
  62. package/src/leaflet/ClusterCircles.ts +88 -88
  63. package/src/leaflet/Countries.ts +43 -43
  64. package/src/leaflet/DrawLayer.ts +167 -167
  65. package/src/leaflet/FeatureLayer.ts +138 -138
  66. package/src/leaflet/GMap.ts +44 -44
  67. package/src/leaflet/HeatLayer.ts +77 -77
  68. package/src/leaflet/Icons.ts +60 -60
  69. package/src/leaflet/Leaflet.css +3 -3
  70. package/src/leaflet/Leaflet.ts +238 -238
  71. package/src/leaflet/MapBox.ts +35 -35
  72. package/src/leaflet/Markers.ts +109 -109
  73. package/src/leaflet/OpenStreet.ts +27 -27
  74. package/src/leaflet/Path.ts +138 -138
  75. package/src/leaflet/Pins.ts +73 -73
  76. package/src/leaflet/Polygons.ts +113 -113
  77. package/src/leaflet/Region.ts +138 -138
  78. package/src/leaflet/Text.ts +99 -99
  79. package/src/leaflet/TileLayer.ts +81 -81
  80. package/src/leaflet/TopoJSON.ts +146 -146
  81. package/src/leaflet/US.ts +15 -15
  82. package/src/leaflet/USCounties.ts +43 -43
  83. package/src/leaflet/USStates.ts +41 -41
  84. package/src/leaflet/World.css +3 -3
  85. package/src/leaflet/World.ts +171 -171
  86. package/src/leaflet/index.ts +18 -18
  87. package/src/test.ts +114 -114
  88. package/types/__package__.d.ts +2 -2
  89. package/types-3.4/__package__.d.ts +2 -2
package/src/leaflet/US.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { LatLngBounds } from "@hpcc-js/leaflet-shim";
2
- import { World } from "./World";
3
-
4
- export class US extends World {
5
-
6
- constructor() {
7
- super();
8
- }
9
-
10
- getBounds() {
11
- const retVal = super.getBounds();
12
- return new LatLngBounds([retVal.getNorth(), retVal.getWest()], [17.755278, -64.565]);
13
- }
14
-
15
- }
1
+ import { LatLngBounds } from "@hpcc-js/leaflet-shim";
2
+ import { World } from "./World";
3
+
4
+ export class US extends World {
5
+
6
+ constructor() {
7
+ super();
8
+ }
9
+
10
+ getBounds() {
11
+ const retVal = super.getBounds();
12
+ return new LatLngBounds([retVal.getNorth(), retVal.getWest()], [17.755278, -64.565]);
13
+ }
14
+
15
+ }
@@ -1,43 +1,43 @@
1
- import { json as d3Json } from "d3-request";
2
- import * as topojson from "topojson-client";
3
- import { topoJsonFolder } from "../Choropleth";
4
- import { US } from "./US";
5
-
6
- let usCounties = null;
7
- const usCountyNames = {};
8
-
9
- export class USCounties extends US {
10
-
11
- init(): Promise<void> {
12
- if (!this._initPromise) {
13
- this._initPromise = new Promise((resolve, reject) => {
14
- if (usCounties) {
15
- resolve(usCounties);
16
- }
17
- d3Json(`${topoJsonFolder()}/us-counties.json`, function (_usCounties) {
18
- usCounties = _usCounties;
19
- resolve(usCounties);
20
- });
21
- }).then((usCounties: any) => {
22
- this._features = topojson.feature(usCounties.topology, usCounties.topology.objects.counties).features;
23
- for (const key in this._features) {
24
- if (this._features[key].id) {
25
- const code = this._features[key].id;
26
- const name = usCounties.countyNames[code];
27
- this._features[key].properties.hpccID = code;
28
- usCountyNames[code] = name;
29
- }
30
- }
31
-
32
- });
33
- }
34
- return this._initPromise;
35
- }
36
-
37
- tooltipHandler(l, featureID) {
38
- const row = this._dataMap[featureID];
39
- const value = row && row[1] || "";
40
- return this.tooltipText(this.rowToObj(row), `<b>${usCountyNames[featureID]}</b>: ${value}`);
41
- }
42
- }
43
- USCounties.prototype._class += " map_USCounties";
1
+ import { json as d3Json } from "d3-request";
2
+ import * as topojson from "topojson-client";
3
+ import { topoJsonFolder } from "../Choropleth";
4
+ import { US } from "./US";
5
+
6
+ let usCounties = null;
7
+ const usCountyNames = {};
8
+
9
+ export class USCounties extends US {
10
+
11
+ init(): Promise<void> {
12
+ if (!this._initPromise) {
13
+ this._initPromise = new Promise((resolve, reject) => {
14
+ if (usCounties) {
15
+ resolve(usCounties);
16
+ }
17
+ d3Json(`${topoJsonFolder()}/us-counties.json`, function (_usCounties) {
18
+ usCounties = _usCounties;
19
+ resolve(usCounties);
20
+ });
21
+ }).then((usCounties: any) => {
22
+ this._features = topojson.feature(usCounties.topology, usCounties.topology.objects.counties).features;
23
+ for (const key in this._features) {
24
+ if (this._features[key].id) {
25
+ const code = this._features[key].id;
26
+ const name = usCounties.countyNames[code];
27
+ this._features[key].properties.hpccID = code;
28
+ usCountyNames[code] = name;
29
+ }
30
+ }
31
+
32
+ });
33
+ }
34
+ return this._initPromise;
35
+ }
36
+
37
+ tooltipHandler(l, featureID) {
38
+ const row = this._dataMap[featureID];
39
+ const value = row && row[1] || "";
40
+ return this.tooltipText(this.rowToObj(row), `<b>${usCountyNames[featureID]}</b>: ${value}`);
41
+ }
42
+ }
43
+ USCounties.prototype._class += " map_USCounties";
@@ -1,41 +1,41 @@
1
- import { json as d3Json } from "d3-request";
2
- import * as topojson from "topojson-client";
3
- import { topoJsonFolder } from "../Choropleth";
4
- import { US } from "./US";
5
-
6
- let usStates = null;
7
- const usStateNames = {};
8
-
9
- export class USStates extends US {
10
-
11
- init(): Promise<void> {
12
- if (!this._initPromise) {
13
- this._initPromise = new Promise((resolve, reject) => {
14
- if (usStates) {
15
- resolve(usStates);
16
- }
17
- d3Json(`${topoJsonFolder()}/us-states.json`, function (_usStates) {
18
- usStates = _usStates;
19
- resolve(usStates);
20
- });
21
- }).then((usStates: any) => {
22
- this._features = topojson.feature(usStates.topology, usStates.topology.objects.states).features;
23
- for (const key in this._features) {
24
- if (this._features[key].id) {
25
- const { code, name } = usStates.stateNames[this._features[key].id];
26
- this._features[key].properties.hpccID = code;
27
- usStateNames[code] = name;
28
- }
29
- }
30
- });
31
- }
32
- return this._initPromise;
33
- }
34
-
35
- tooltipHandler(l, featureID) {
36
- const row = this._dataMap[featureID];
37
- const value = row && row[1] || "";
38
- return this.tooltipText(this.rowToObj(row), `<b>${usStateNames[featureID]}</b>: ${value}`);
39
- }
40
- }
41
- USStates.prototype._class += " map_USStates";
1
+ import { json as d3Json } from "d3-request";
2
+ import * as topojson from "topojson-client";
3
+ import { topoJsonFolder } from "../Choropleth";
4
+ import { US } from "./US";
5
+
6
+ let usStates = null;
7
+ const usStateNames = {};
8
+
9
+ export class USStates extends US {
10
+
11
+ init(): Promise<void> {
12
+ if (!this._initPromise) {
13
+ this._initPromise = new Promise((resolve, reject) => {
14
+ if (usStates) {
15
+ resolve(usStates);
16
+ }
17
+ d3Json(`${topoJsonFolder()}/us-states.json`, function (_usStates) {
18
+ usStates = _usStates;
19
+ resolve(usStates);
20
+ });
21
+ }).then((usStates: any) => {
22
+ this._features = topojson.feature(usStates.topology, usStates.topology.objects.states).features;
23
+ for (const key in this._features) {
24
+ if (this._features[key].id) {
25
+ const { code, name } = usStates.stateNames[this._features[key].id];
26
+ this._features[key].properties.hpccID = code;
27
+ usStateNames[code] = name;
28
+ }
29
+ }
30
+ });
31
+ }
32
+ return this._initPromise;
33
+ }
34
+
35
+ tooltipHandler(l, featureID) {
36
+ const row = this._dataMap[featureID];
37
+ const value = row && row[1] || "";
38
+ return this.tooltipText(this.rowToObj(row), `<b>${usStateNames[featureID]}</b>: ${value}`);
39
+ }
40
+ }
41
+ USStates.prototype._class += " map_USStates";
@@ -1,4 +1,4 @@
1
- .leaflet-interactive.selected {
2
- stroke: red;
3
- stroke-width: 1.25px;
1
+ .leaflet-interactive.selected {
2
+ stroke: red;
3
+ stroke-width: 1.25px;
4
4
  }
@@ -1,171 +1,171 @@
1
- import { Palette, SVGGlowFilter, Utility } from "@hpcc-js/common";
2
- import { LatLngBounds, Map } from "@hpcc-js/leaflet-shim";
3
- import { select as d3Select } from "d3-selection";
4
- import { FeatureLayer } from "./FeatureLayer";
5
- import { TopoJSON } from "./TopoJSON";
6
-
7
- import "../../src/leaflet/World.css";
8
-
9
- export class World extends FeatureLayer {
10
-
11
- protected _features;
12
- protected _selection: Utility.SimpleSelection;
13
- _palette;
14
-
15
- protected _dataMap = {};
16
- protected _dataMinWeight = null;
17
- protected _dataMaxWeight = null;
18
-
19
- constructor() {
20
- super();
21
- Utility.SimpleSelectionMixin.call(this);
22
- }
23
-
24
- hasBounds() {
25
- return true;
26
- }
27
-
28
- getBounds() {
29
- const retVal = super.getBounds();
30
- if (!retVal.isValid()) {
31
- return new LatLngBounds([90, -180], [-90, 180]);
32
- }
33
- return new LatLngBounds([retVal.getNorth(), retVal.getWest()], [retVal.getSouth(), retVal.getEast()]);
34
- }
35
-
36
- updateDataMap(_?) {
37
- this._dataMap = {};
38
- this._dataMinWeight = null;
39
- this._dataMaxWeight = null;
40
-
41
- const context = this;
42
- _.forEach(function (item) {
43
- context._dataMap[item[0]] = item;
44
- if (!context._dataMinWeight || item[1] < context._dataMinWeight) {
45
- context._dataMinWeight = item[1];
46
- }
47
- if (!context._dataMaxWeight || item[1] > context._dataMaxWeight) {
48
- context._dataMaxWeight = item[1];
49
- }
50
- });
51
- }
52
-
53
- data(_?) {
54
- const retVal = super.data.apply(this, arguments);
55
- if (arguments.length) {
56
- this.updateDataMap(_);
57
- }
58
- return retVal;
59
- }
60
-
61
- styleFeature(feature) {
62
- const d = this._dataMap[feature.properties.hpccID];
63
- const fillColor = d ? this._palette(d[1], this._dataMinWeight, this._dataMaxWeight) : "transparent";
64
- return {
65
- color: this.meshVisible() ? this.meshColor() : undefined,
66
- opacity: 1,
67
- weight: this.meshStrokeWidth(),
68
- fillColor,
69
- fillOpacity: this.opacity()
70
- };
71
- }
72
-
73
- svgGlowID() {
74
- return this.id() + "_svgGlow";
75
- }
76
-
77
- private _topoJson;
78
- private _svgElement;
79
- layerEnter(map: Map) {
80
- super.layerEnter(map);
81
- if (!this._svgElement) {
82
- this._svgElement = d3Select(map.getContainer()).select(".leaflet-pane.leaflet-overlay-pane > svg");
83
- const svgDefs = this._svgElement.append("defs");
84
- new SVGGlowFilter(svgDefs, this.svgGlowID());
85
- this._selection.widgetElement(this._svgElement);
86
- }
87
- }
88
-
89
- private _prevFeatures;
90
- layerUpdate(map: Map) {
91
- if (this._prevFeatures !== this._features) {
92
- this.clear();
93
- this._topoJson = new TopoJSON(this._features, {
94
- onEachFeature: (f, l) => {
95
- l.on("click", e => this.clickHandler(e, l, l.feature.properties.hpccID));
96
- }
97
- }).bindTooltip((l: any) => this.tooltipHandler(l, l.feature.properties.hpccID), {
98
- direction: "top",
99
- sticky: true
100
- });
101
- this.add(this._topoJson);
102
- }
103
- super.layerUpdate(map);
104
-
105
- this._palette = this._palette.switch(this.paletteID());
106
- if (this.useClonedPalette()) {
107
- this._palette = this._palette.cloneNotExists(this.paletteID() + "_" + this.id());
108
- }
109
-
110
- this._topoJson.setStyle(feature => this.styleFeature(feature));
111
- }
112
-
113
- // Events ---
114
- clickHandler(e, l, featureID): boolean {
115
- const sel = this._selection.click(e.originalEvent.target);
116
- this.click(this.rowToObj(this._dataMap[featureID]), this.columns()[0], sel);
117
- return sel;
118
- }
119
-
120
- tooltipText(row: object, tooltip: string): string {
121
- return tooltip;
122
- }
123
-
124
- tooltipHandler(l, featureID) {
125
- const row = this._dataMap[featureID];
126
- const value = row && row[1] || "";
127
- return this.tooltipText(this.rowToObj(row), `<b>${featureID}</b>: ${value}`);
128
- }
129
-
130
- // Events ---
131
- click(row, col, sel) {
132
- }
133
- }
134
- World.prototype._class += " map_World";
135
- World.prototype._palette = Palette.rainbow("default");
136
- World.prototype.mixin(Utility.SimpleSelectionMixin);
137
-
138
- export interface World {
139
- autoScaleMode(): string;
140
- autoScaleMode(_: string): this;
141
- autoScaleMode_exists(): boolean;
142
- paletteID(): string;
143
- paletteID(_: string): this;
144
- paletteID_exists(): boolean;
145
- useClonedPalette(): boolean;
146
- useClonedPalette(_: boolean): this;
147
- useClonedPalette_exists(): boolean;
148
- opacity(): number;
149
- opacity(_: number): this;
150
- opacity_default(_: number): this;
151
- opacity_exists(): boolean;
152
- meshVisible(): boolean;
153
- meshVisible(_: boolean): this;
154
- meshVisible_exists(): boolean;
155
- meshColor(): string;
156
- meshColor(_: string): this;
157
- meshColor_exists(): boolean;
158
- meshStrokeWidth(): number;
159
- meshStrokeWidth(_: number): this;
160
- meshStrokeWidth_exists(): boolean;
161
- }
162
-
163
- World.prototype.publish("paletteID", "YlOrRd", "set", "Color palette for this widget", World.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
164
- World.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
165
-
166
- World.prototype.publish("opacity", 0.5, "number", "Opacity", null, { tags: ["Advanced"] });
167
-
168
- World.prototype.publish("meshVisible", true, "boolean", "Mesh Visibility");
169
- World.prototype.publish("meshColor", "black", "html-color", "Stroke Color");
170
- World.prototype.publish("meshStrokeWidth", 0.25, "number", "Stroke Width");
171
- World.prototype.publish("internalOnly", false, "boolean", "Internal mesh only");
1
+ import { Palette, SVGGlowFilter, Utility } from "@hpcc-js/common";
2
+ import { LatLngBounds, Map } from "@hpcc-js/leaflet-shim";
3
+ import { select as d3Select } from "d3-selection";
4
+ import { FeatureLayer } from "./FeatureLayer";
5
+ import { TopoJSON } from "./TopoJSON";
6
+
7
+ import "../../src/leaflet/World.css";
8
+
9
+ export class World extends FeatureLayer {
10
+
11
+ protected _features;
12
+ protected _selection: Utility.SimpleSelection;
13
+ _palette;
14
+
15
+ protected _dataMap = {};
16
+ protected _dataMinWeight = null;
17
+ protected _dataMaxWeight = null;
18
+
19
+ constructor() {
20
+ super();
21
+ Utility.SimpleSelectionMixin.call(this);
22
+ }
23
+
24
+ hasBounds() {
25
+ return true;
26
+ }
27
+
28
+ getBounds() {
29
+ const retVal = super.getBounds();
30
+ if (!retVal.isValid()) {
31
+ return new LatLngBounds([90, -180], [-90, 180]);
32
+ }
33
+ return new LatLngBounds([retVal.getNorth(), retVal.getWest()], [retVal.getSouth(), retVal.getEast()]);
34
+ }
35
+
36
+ updateDataMap(_?) {
37
+ this._dataMap = {};
38
+ this._dataMinWeight = null;
39
+ this._dataMaxWeight = null;
40
+
41
+ const context = this;
42
+ _.forEach(function (item) {
43
+ context._dataMap[item[0]] = item;
44
+ if (!context._dataMinWeight || item[1] < context._dataMinWeight) {
45
+ context._dataMinWeight = item[1];
46
+ }
47
+ if (!context._dataMaxWeight || item[1] > context._dataMaxWeight) {
48
+ context._dataMaxWeight = item[1];
49
+ }
50
+ });
51
+ }
52
+
53
+ data(_?) {
54
+ const retVal = super.data.apply(this, arguments);
55
+ if (arguments.length) {
56
+ this.updateDataMap(_);
57
+ }
58
+ return retVal;
59
+ }
60
+
61
+ styleFeature(feature) {
62
+ const d = this._dataMap[feature.properties.hpccID];
63
+ const fillColor = d ? this._palette(d[1], this._dataMinWeight, this._dataMaxWeight) : "transparent";
64
+ return {
65
+ color: this.meshVisible() ? this.meshColor() : undefined,
66
+ opacity: 1,
67
+ weight: this.meshStrokeWidth(),
68
+ fillColor,
69
+ fillOpacity: this.opacity()
70
+ };
71
+ }
72
+
73
+ svgGlowID() {
74
+ return this.id() + "_svgGlow";
75
+ }
76
+
77
+ private _topoJson;
78
+ private _svgElement;
79
+ layerEnter(map: Map) {
80
+ super.layerEnter(map);
81
+ if (!this._svgElement) {
82
+ this._svgElement = d3Select(map.getContainer()).select(".leaflet-pane.leaflet-overlay-pane > svg");
83
+ const svgDefs = this._svgElement.append("defs");
84
+ new SVGGlowFilter(svgDefs, this.svgGlowID());
85
+ this._selection.widgetElement(this._svgElement);
86
+ }
87
+ }
88
+
89
+ private _prevFeatures;
90
+ layerUpdate(map: Map) {
91
+ if (this._prevFeatures !== this._features) {
92
+ this.clear();
93
+ this._topoJson = new TopoJSON(this._features, {
94
+ onEachFeature: (f, l) => {
95
+ l.on("click", e => this.clickHandler(e, l, l.feature.properties.hpccID));
96
+ }
97
+ }).bindTooltip((l: any) => this.tooltipHandler(l, l.feature.properties.hpccID), {
98
+ direction: "top",
99
+ sticky: true
100
+ });
101
+ this.add(this._topoJson);
102
+ }
103
+ super.layerUpdate(map);
104
+
105
+ this._palette = this._palette.switch(this.paletteID());
106
+ if (this.useClonedPalette()) {
107
+ this._palette = this._palette.cloneNotExists(this.paletteID() + "_" + this.id());
108
+ }
109
+
110
+ this._topoJson.setStyle(feature => this.styleFeature(feature));
111
+ }
112
+
113
+ // Events ---
114
+ clickHandler(e, l, featureID): boolean {
115
+ const sel = this._selection.click(e.originalEvent.target);
116
+ this.click(this.rowToObj(this._dataMap[featureID]), this.columns()[0], sel);
117
+ return sel;
118
+ }
119
+
120
+ tooltipText(row: object, tooltip: string): string {
121
+ return tooltip;
122
+ }
123
+
124
+ tooltipHandler(l, featureID) {
125
+ const row = this._dataMap[featureID];
126
+ const value = row && row[1] || "";
127
+ return this.tooltipText(this.rowToObj(row), `<b>${featureID}</b>: ${value}`);
128
+ }
129
+
130
+ // Events ---
131
+ click(row, col, sel) {
132
+ }
133
+ }
134
+ World.prototype._class += " map_World";
135
+ World.prototype._palette = Palette.rainbow("default");
136
+ World.prototype.mixin(Utility.SimpleSelectionMixin);
137
+
138
+ export interface World {
139
+ autoScaleMode(): string;
140
+ autoScaleMode(_: string): this;
141
+ autoScaleMode_exists(): boolean;
142
+ paletteID(): string;
143
+ paletteID(_: string): this;
144
+ paletteID_exists(): boolean;
145
+ useClonedPalette(): boolean;
146
+ useClonedPalette(_: boolean): this;
147
+ useClonedPalette_exists(): boolean;
148
+ opacity(): number;
149
+ opacity(_: number): this;
150
+ opacity_default(_: number): this;
151
+ opacity_exists(): boolean;
152
+ meshVisible(): boolean;
153
+ meshVisible(_: boolean): this;
154
+ meshVisible_exists(): boolean;
155
+ meshColor(): string;
156
+ meshColor(_: string): this;
157
+ meshColor_exists(): boolean;
158
+ meshStrokeWidth(): number;
159
+ meshStrokeWidth(_: number): this;
160
+ meshStrokeWidth_exists(): boolean;
161
+ }
162
+
163
+ World.prototype.publish("paletteID", "YlOrRd", "set", "Color palette for this widget", World.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
164
+ World.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
165
+
166
+ World.prototype.publish("opacity", 0.5, "number", "Opacity", null, { tags: ["Advanced"] });
167
+
168
+ World.prototype.publish("meshVisible", true, "boolean", "Mesh Visibility");
169
+ World.prototype.publish("meshColor", "black", "html-color", "Stroke Color");
170
+ World.prototype.publish("meshStrokeWidth", 0.25, "number", "Stroke Width");
171
+ World.prototype.publish("internalOnly", false, "boolean", "Internal mesh only");
@@ -1,18 +1,18 @@
1
- export * from "./Circles";
2
- export * from "./ClusterCircles";
3
- export * from "./Countries";
4
- export * from "./DrawLayer";
5
- export * from "./FeatureLayer";
6
- export * from "./HeatLayer";
7
- export * from "./Icons";
8
- export * from "./Leaflet";
9
- export * from "./Markers";
10
- export * from "./Polygons";
11
- export * from "./Path";
12
- export * from "./Pins";
13
- export * from "./Region";
14
- export * from "./Text";
15
- export * from "./TileLayer";
16
- export * from "./USCounties";
17
- export * from "./USStates";
18
- export * from "./World";
1
+ export * from "./Circles";
2
+ export * from "./ClusterCircles";
3
+ export * from "./Countries";
4
+ export * from "./DrawLayer";
5
+ export * from "./FeatureLayer";
6
+ export * from "./HeatLayer";
7
+ export * from "./Icons";
8
+ export * from "./Leaflet";
9
+ export * from "./Markers";
10
+ export * from "./Polygons";
11
+ export * from "./Path";
12
+ export * from "./Pins";
13
+ export * from "./Region";
14
+ export * from "./Text";
15
+ export * from "./TileLayer";
16
+ export * from "./USCounties";
17
+ export * from "./USStates";
18
+ export * from "./World";