@hpcc-js/map 2.79.0 → 3.1.1
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.js +888 -31380
- package/dist/index.js.map +7 -1
- package/package.json +41 -40
- package/src/CanvasPinLayer.ts +2 -2
- package/src/CanvasPins.ts +12 -11
- package/src/Choropleth.ts +13 -5
- package/src/ChoroplethContinents.ts +1 -1
- package/src/ChoroplethCounties.ts +9 -7
- package/src/ChoroplethCountries.ts +2 -2
- package/src/ChoroplethStates.ts +1 -2
- package/src/ChoroplethStatesHeat.ts +1 -1
- package/src/GMap.ts +4 -3
- package/src/GMapCounties.ts +2 -2
- package/src/GMapGraph.ts +1 -1
- package/src/GMapHeat.ts +1 -1
- package/src/GMapLayered.ts +2 -2
- package/src/GMapPin.ts +2 -2
- package/src/GMapPinLine.ts +38 -25
- package/src/GeoHash.ts +31 -17
- package/src/Graph.ts +1 -1
- package/src/Graticule.ts +14 -7
- package/src/Heat.ts +13 -8
- package/src/Layer.ts +28 -19
- package/src/Layered.ts +1 -1
- package/src/Lines.ts +6 -3
- package/src/OpenStreet.ts +7 -4
- package/src/Pins.ts +75 -44
- package/src/Projection.ts +1 -1
- package/src/TestHeatMap.ts +1 -1
- package/src/TopoJSONChoropleth.ts +106 -95
- package/src/__package__.ts +2 -2
- package/src/index.ts +29 -30
- package/src/leaflet/AlbersPR.ts +3 -3
- package/src/leaflet/Blank.ts +1 -1
- package/src/leaflet/Circles.ts +2 -2
- package/src/leaflet/ClusterCircles.ts +2 -2
- package/src/leaflet/Countries.ts +2 -2
- package/src/leaflet/DrawLayer.ts +2 -2
- package/src/leaflet/FeatureLayer.ts +3 -3
- package/src/leaflet/GMap.ts +3 -3
- package/src/leaflet/HeatLayer.ts +2 -2
- package/src/leaflet/Icons.ts +2 -2
- package/src/leaflet/Leaflet.ts +10 -9
- package/src/leaflet/MapBox.ts +2 -2
- package/src/leaflet/Markers.ts +2 -2
- package/src/leaflet/OpenStreet.ts +2 -2
- package/src/leaflet/Path.ts +3 -3
- package/src/leaflet/Pins.ts +2 -2
- package/src/leaflet/Polygons.ts +2 -2
- package/src/leaflet/Region.ts +2 -2
- package/src/leaflet/Text.ts +2 -2
- package/src/leaflet/TileLayer.ts +1 -1
- package/src/leaflet/TopoJSON.ts +3 -3
- package/src/leaflet/US.ts +2 -2
- package/src/leaflet/USCounties.ts +2 -2
- package/src/leaflet/USStates.ts +2 -2
- package/src/leaflet/World.ts +8 -7
- package/src/leaflet/index.ts +18 -18
- package/src/leaflet/leaflet-shim.ts +19 -0
- package/src/leaflet/plugins/BeautifyIcon.css +44 -0
- package/src/leaflet/plugins/BeautifyIcon.ts +190 -0
- package/src/leaflet/plugins/BeutifyIcon.licence +21 -0
- package/src/leaflet/plugins/D3SvgOverlay.css +3 -0
- package/src/leaflet/plugins/D3SvgOverlay.licence +21 -0
- package/src/leaflet/plugins/D3SvgOverlay.ts +175 -0
- package/src/leaflet/plugins/HeatLayer.license +22 -0
- package/src/leaflet/plugins/HeatLayer.ts +224 -0
- package/src/leaflet/plugins/Leaflet.GoogleMutant.ts +425 -0
- package/src/leaflet/plugins/lru_map.ts +352 -0
- package/types/CanvasPinLayer.d.ts +1 -2
- package/types/CanvasPins.d.ts +10 -12
- package/types/Choropleth.d.ts +6 -6
- package/types/ChoroplethContinents.d.ts +1 -2
- package/types/ChoroplethCounties.d.ts +6 -8
- package/types/ChoroplethCountries.d.ts +1 -3
- package/types/ChoroplethStates.d.ts +1 -3
- package/types/ChoroplethStatesHeat.d.ts +1 -2
- package/types/GMap.d.ts +3 -4
- package/types/GMapCounties.d.ts +2 -3
- package/types/GMapGraph.d.ts +1 -2
- package/types/GMapHeat.d.ts +1 -2
- package/types/GMapLayered.d.ts +1 -2
- package/types/GMapPin.d.ts +1 -2
- package/types/GMapPinLine.d.ts +35 -56
- package/types/GeoHash.d.ts +23 -34
- package/types/Graph.d.ts +1 -2
- package/types/Graticule.d.ts +12 -17
- package/types/Heat.d.ts +12 -17
- package/types/IChoropleth.d.ts +0 -1
- package/types/Layer.d.ts +26 -40
- package/types/Layered.d.ts +0 -1
- package/types/Lines.d.ts +5 -6
- package/types/OpenStreet.d.ts +6 -7
- package/types/Pins.d.ts +64 -103
- package/types/Projection.d.ts +0 -1
- package/types/TopoJSONChoropleth.d.ts +15 -4
- package/types/Utility.d.ts +0 -1
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +29 -31
- package/types/leaflet/AlbersPR.d.ts +2 -3
- package/types/leaflet/Blank.d.ts +1 -2
- package/types/leaflet/Circles.d.ts +2 -3
- package/types/leaflet/ClusterCircles.d.ts +2 -3
- package/types/leaflet/Countries.d.ts +1 -2
- package/types/leaflet/DrawLayer.d.ts +2 -3
- package/types/leaflet/FeatureLayer.d.ts +3 -4
- package/types/leaflet/GMap.d.ts +2 -3
- package/types/leaflet/HeatLayer.d.ts +2 -3
- package/types/leaflet/Icons.d.ts +2 -3
- package/types/leaflet/Leaflet.d.ts +9 -9
- package/types/leaflet/MapBox.d.ts +2 -3
- package/types/leaflet/Markers.d.ts +2 -3
- package/types/leaflet/OpenStreet.d.ts +2 -3
- package/types/leaflet/Path.d.ts +2 -3
- package/types/leaflet/Pins.d.ts +2 -3
- package/types/leaflet/Polygons.d.ts +2 -3
- package/types/leaflet/Region.d.ts +1 -2
- package/types/leaflet/Text.d.ts +2 -3
- package/types/leaflet/TileLayer.d.ts +1 -2
- package/types/leaflet/TopoJSON.d.ts +2 -3
- package/types/leaflet/US.d.ts +2 -3
- package/types/leaflet/USCounties.d.ts +1 -2
- package/types/leaflet/USStates.d.ts +1 -2
- package/types/leaflet/World.d.ts +5 -8
- package/types/leaflet/index.d.ts +18 -19
- package/types/leaflet/leaflet-shim.d.ts +14 -0
- package/types/leaflet/plugins/BeautifyIcon.d.ts +2 -0
- package/types/leaflet/plugins/D3SvgOverlay.d.ts +36 -0
- package/types/leaflet/plugins/HeatLayer.d.ts +23 -0
- package/types/leaflet/plugins/Leaflet.GoogleMutant.d.ts +1 -0
- package/types/leaflet/plugins/lru_map.d.ts +33 -0
- package/TopoJSON/AT.json +0 -1
- package/TopoJSON/BE.json +0 -1
- package/TopoJSON/BG.json +0 -1
- package/TopoJSON/BR.json +0 -123
- package/TopoJSON/CHLI.json +0 -1
- package/TopoJSON/CY.json +0 -1
- package/TopoJSON/CZ.json +0 -1
- package/TopoJSON/DE.json +0 -1
- package/TopoJSON/DK.json +0 -1
- package/TopoJSON/EE.json +0 -1
- package/TopoJSON/ES.json +0 -1
- package/TopoJSON/FI.json +0 -1
- package/TopoJSON/FR.json +0 -1
- package/TopoJSON/GB.json +0 -1
- package/TopoJSON/GB_idx.json +0 -1
- package/TopoJSON/GE.json +0 -1
- package/TopoJSON/GR.json +0 -1
- package/TopoJSON/HR.json +0 -1
- package/TopoJSON/HU.json +0 -1
- package/TopoJSON/IE.json +0 -1
- package/TopoJSON/IE_idx.json +0 -1
- package/TopoJSON/IS.json +0 -1
- package/TopoJSON/IT.json +0 -1
- package/TopoJSON/KS.json +0 -1
- package/TopoJSON/LT.json +0 -1
- package/TopoJSON/LU.json +0 -1
- package/TopoJSON/LV.json +0 -1
- package/TopoJSON/MD.json +0 -1
- package/TopoJSON/MK.json +0 -1
- package/TopoJSON/MT.json +0 -1
- package/TopoJSON/ND.json +0 -1
- package/TopoJSON/ND_idx.json +0 -1
- package/TopoJSON/NL.json +0 -1
- package/TopoJSON/NO.json +0 -1
- package/TopoJSON/PL.json +0 -1
- package/TopoJSON/PT.json +0 -1
- package/TopoJSON/RO.json +0 -1
- package/TopoJSON/RS.json +0 -1
- package/TopoJSON/SE.json +0 -1
- package/TopoJSON/SI.json +0 -1
- package/TopoJSON/SK.json +0 -1
- package/TopoJSON/UA.json +0 -1
- package/TopoJSON/countries.json +0 -257
- package/TopoJSON/us-counties.json +0 -16550
- package/TopoJSON/us-states.json +0 -458
- package/dist/index.es6.js +0 -31436
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -7
- package/dist/index.min.js.map +0 -1
- package/types/CanvasPinLayer.d.ts.map +0 -1
- package/types/CanvasPins.d.ts.map +0 -1
- package/types/Choropleth.d.ts.map +0 -1
- package/types/ChoroplethContinents.d.ts.map +0 -1
- package/types/ChoroplethCounties.d.ts.map +0 -1
- package/types/ChoroplethCountries.d.ts.map +0 -1
- package/types/ChoroplethStates.d.ts.map +0 -1
- package/types/ChoroplethStatesHeat.d.ts.map +0 -1
- package/types/GMap.d.ts.map +0 -1
- package/types/GMapCounties.d.ts.map +0 -1
- package/types/GMapGraph.d.ts.map +0 -1
- package/types/GMapHeat.d.ts.map +0 -1
- package/types/GMapLayered.d.ts.map +0 -1
- package/types/GMapPin.d.ts.map +0 -1
- package/types/GMapPinLine.d.ts.map +0 -1
- package/types/GeoHash.d.ts.map +0 -1
- package/types/Graph.d.ts.map +0 -1
- package/types/Graticule.d.ts.map +0 -1
- package/types/Heat.d.ts.map +0 -1
- package/types/IChoropleth.d.ts.map +0 -1
- package/types/Layer.d.ts.map +0 -1
- package/types/Layered.d.ts.map +0 -1
- package/types/Lines.d.ts.map +0 -1
- package/types/OpenStreet.d.ts.map +0 -1
- package/types/Pins.d.ts.map +0 -1
- package/types/Projection.d.ts.map +0 -1
- package/types/TestHeatMap.d.ts +0 -5
- package/types/TestHeatMap.d.ts.map +0 -1
- package/types/TopoJSONChoropleth.d.ts.map +0 -1
- package/types/Utility.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/leaflet/AlbersPR.d.ts.map +0 -1
- package/types/leaflet/Blank.d.ts.map +0 -1
- package/types/leaflet/Circles.d.ts.map +0 -1
- package/types/leaflet/ClusterCircles.d.ts.map +0 -1
- package/types/leaflet/Countries.d.ts.map +0 -1
- package/types/leaflet/DrawLayer.d.ts.map +0 -1
- package/types/leaflet/FeatureLayer.d.ts.map +0 -1
- package/types/leaflet/GMap.d.ts.map +0 -1
- package/types/leaflet/HeatLayer.d.ts.map +0 -1
- package/types/leaflet/Icons.d.ts.map +0 -1
- package/types/leaflet/Leaflet.d.ts.map +0 -1
- package/types/leaflet/MapBox.d.ts.map +0 -1
- package/types/leaflet/Markers.d.ts.map +0 -1
- package/types/leaflet/OpenStreet.d.ts.map +0 -1
- package/types/leaflet/Path.d.ts.map +0 -1
- package/types/leaflet/Pins.d.ts.map +0 -1
- package/types/leaflet/Polygons.d.ts.map +0 -1
- package/types/leaflet/Region.d.ts.map +0 -1
- package/types/leaflet/Text.d.ts.map +0 -1
- package/types/leaflet/TileLayer.d.ts.map +0 -1
- package/types/leaflet/TopoJSON.d.ts.map +0 -1
- package/types/leaflet/US.d.ts.map +0 -1
- package/types/leaflet/USCounties.d.ts.map +0 -1
- package/types/leaflet/USStates.d.ts.map +0 -1
- package/types/leaflet/World.d.ts.map +0 -1
- package/types/leaflet/index.d.ts.map +0 -1
- package/types/test.d.ts +0 -24
- package/types/test.d.ts.map +0 -1
- package/types-3.4/CanvasPinLayer.d.ts +0 -23
- package/types-3.4/CanvasPins.d.ts +0 -72
- package/types-3.4/Choropleth.d.ts +0 -59
- package/types-3.4/ChoroplethContinents.d.ts +0 -6
- package/types-3.4/ChoroplethCounties.d.ts +0 -17
- package/types-3.4/ChoroplethCountries.d.ts +0 -12
- package/types-3.4/ChoroplethStates.d.ts +0 -12
- package/types-3.4/ChoroplethStatesHeat.d.ts +0 -5
- package/types-3.4/GMap.d.ts +0 -137
- package/types-3.4/GMapCounties.d.ts +0 -23
- package/types-3.4/GMapGraph.d.ts +0 -6
- package/types-3.4/GMapHeat.d.ts +0 -6
- package/types-3.4/GMapLayered.d.ts +0 -20
- package/types-3.4/GMapPin.d.ts +0 -33
- package/types-3.4/GMapPinLine.d.ts +0 -72
- package/types-3.4/GeoHash.d.ts +0 -48
- package/types-3.4/Graph.d.ts +0 -14
- package/types-3.4/Graticule.d.ts +0 -30
- package/types-3.4/Heat.d.ts +0 -28
- package/types-3.4/IChoropleth.d.ts +0 -2
- package/types-3.4/Layer.d.ts +0 -58
- package/types-3.4/Layered.d.ts +0 -47
- package/types-3.4/Lines.d.ts +0 -17
- package/types-3.4/OpenStreet.d.ts +0 -22
- package/types-3.4/Pins.d.ts +0 -122
- package/types-3.4/Projection.d.ts +0 -6
- package/types-3.4/TestHeatMap.d.ts +0 -5
- package/types-3.4/TopoJSONChoropleth.d.ts +0 -5
- package/types-3.4/Utility.d.ts +0 -80
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -32
- package/types-3.4/leaflet/AlbersPR.d.ts +0 -16
- package/types-3.4/leaflet/Blank.d.ts +0 -5
- package/types-3.4/leaflet/Circles.d.ts +0 -56
- package/types-3.4/leaflet/ClusterCircles.d.ts +0 -30
- package/types-3.4/leaflet/Countries.d.ts +0 -7
- package/types-3.4/leaflet/DrawLayer.d.ts +0 -40
- package/types-3.4/leaflet/FeatureLayer.d.ts +0 -40
- package/types-3.4/leaflet/GMap.d.ts +0 -14
- package/types-3.4/leaflet/HeatLayer.d.ts +0 -32
- package/types-3.4/leaflet/Icons.d.ts +0 -26
- package/types-3.4/leaflet/Leaflet.d.ts +0 -53
- package/types-3.4/leaflet/MapBox.d.ts +0 -9
- package/types-3.4/leaflet/Markers.d.ts +0 -38
- package/types-3.4/leaflet/OpenStreet.d.ts +0 -9
- package/types-3.4/leaflet/Path.d.ts +0 -43
- package/types-3.4/leaflet/Pins.d.ts +0 -32
- package/types-3.4/leaflet/Polygons.d.ts +0 -36
- package/types-3.4/leaflet/Region.d.ts +0 -15
- package/types-3.4/leaflet/Text.d.ts +0 -41
- package/types-3.4/leaflet/TileLayer.d.ts +0 -33
- package/types-3.4/leaflet/TopoJSON.d.ts +0 -14
- package/types-3.4/leaflet/US.d.ts +0 -7
- package/types-3.4/leaflet/USCounties.d.ts +0 -6
- package/types-3.4/leaflet/USStates.d.ts +0 -6
- package/types-3.4/leaflet/World.d.ts +0 -59
- package/types-3.4/leaflet/index.d.ts +0 -19
- package/types-3.4/test.d.ts +0 -24
package/types/leaflet/Blank.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { ClusterLayer, D3SurfaceLayer } from "./FeatureLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { ClusterLayer, D3SurfaceLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export declare class Circles extends ClusterLayer {
|
|
4
4
|
hasBounds(): boolean;
|
|
5
5
|
layerUpdate(map: Map): void;
|
|
@@ -53,4 +53,3 @@ export interface D3Circles {
|
|
|
53
53
|
omitNullLatLong(): boolean;
|
|
54
54
|
omitNullLatLong(_: boolean): any;
|
|
55
55
|
}
|
|
56
|
-
//# sourceMappingURL=Circles.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DivIcon, Map } from "
|
|
2
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { DivIcon, Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
3
3
|
import "../../src/leaflet/ClusterCircles.css";
|
|
4
4
|
export declare class ClusterCircles extends FeatureLayer {
|
|
5
5
|
_palette: any;
|
|
@@ -27,4 +27,3 @@ export interface ClusterCircles {
|
|
|
27
27
|
opacity_default(_: number): this;
|
|
28
28
|
opacity_exists(): boolean;
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=ClusterCircles.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Circle, Control, LatLng, LatLngBounds, LatLngExpression, Map, Polygon, Polyline, Rectangle } from "
|
|
2
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { Circle, Control, LatLng, LatLngBounds, LatLngExpression, Map, Polygon, Polyline, Rectangle } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export interface DrawState {
|
|
4
4
|
polylines: LatLngExpression[][];
|
|
5
5
|
polygons: Array<LatLng[] | LatLng[][] | LatLng[][][]>;
|
|
@@ -37,4 +37,3 @@ export interface DrawLayer {
|
|
|
37
37
|
enableCircle(): boolean;
|
|
38
38
|
enableCircle(_: boolean): this;
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=DrawLayer.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLWidget, Utility } from "@hpcc-js/common";
|
|
2
|
-
import { D3SvgOverlay, FeatureGroup, LatLngBounds, LeafletEvent, Map, MarkerClusterGroup } from "
|
|
3
|
-
import { Leaflet } from "./Leaflet";
|
|
4
|
-
import { ILayer } from "./TileLayer";
|
|
2
|
+
import { D3SvgOverlay, FeatureGroup, LatLngBounds, LeafletEvent, Map, MarkerClusterGroup } from "./leaflet-shim.ts";
|
|
3
|
+
import { Leaflet } from "./Leaflet.ts";
|
|
4
|
+
import { ILayer } from "./TileLayer.ts";
|
|
5
5
|
export declare class FeatureLayer extends Leaflet implements ILayer {
|
|
6
6
|
protected _layer: FeatureGroup | MarkerClusterGroup;
|
|
7
7
|
protected _selection: Utility.SimpleSelection;
|
|
@@ -37,4 +37,3 @@ export declare class D3SurfaceLayer extends FeatureLayer {
|
|
|
37
37
|
layerUpdate(map: Map, projection?: any): void;
|
|
38
38
|
clickHandler(e: any, row: any): void;
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=FeatureLayer.d.ts.map
|
package/types/leaflet/GMap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { TileLayer } from "./TileLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { TileLayer } from "./TileLayer.ts";
|
|
3
3
|
export declare class GMapLayer extends TileLayer {
|
|
4
4
|
constructor();
|
|
5
5
|
init(): Promise<void>;
|
|
@@ -11,4 +11,3 @@ export interface GMapLayer {
|
|
|
11
11
|
googleMapStyles(): object;
|
|
12
12
|
googleMapStyles(_: object): this;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=GMap.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export declare class HeatLayer extends FeatureLayer {
|
|
4
4
|
hasBounds(): boolean;
|
|
5
5
|
layerUpdate(map: Map): void;
|
|
@@ -29,4 +29,3 @@ export interface HeatLayer {
|
|
|
29
29
|
gradient(): object;
|
|
30
30
|
gradient(_: object): any;
|
|
31
31
|
}
|
|
32
|
-
//# sourceMappingURL=HeatLayer.d.ts.map
|
package/types/leaflet/Icons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { Markers } from "./Markers";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { Markers } from "./Markers.ts";
|
|
3
3
|
export declare class Icons extends Markers {
|
|
4
4
|
constructor(cluster?: boolean);
|
|
5
5
|
layerUpdate(map: Map): void;
|
|
@@ -23,4 +23,3 @@ export interface Icons {
|
|
|
23
23
|
export declare class ClusterIcons extends Icons {
|
|
24
24
|
constructor();
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=Icons.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLWidget, IconBar,
|
|
2
|
-
import { AlbersLayer } from "./AlbersPR";
|
|
3
|
-
import { BlankLayer } from "./Blank";
|
|
4
|
-
import { GMapLayer } from "./GMap";
|
|
5
|
-
import { MapBoxLayer } from "./MapBox";
|
|
6
|
-
import { OpenStreetLayer } from "./OpenStreet";
|
|
7
|
-
import { ILayer, TileLayer } from "./TileLayer";
|
|
1
|
+
import { HTMLWidget, IconBar, Widget } from "@hpcc-js/common";
|
|
2
|
+
import { AlbersLayer } from "./AlbersPR.ts";
|
|
3
|
+
import { BlankLayer } from "./Blank.ts";
|
|
4
|
+
import { GMapLayer } from "./GMap.ts";
|
|
5
|
+
import { MapBoxLayer } from "./MapBox.ts";
|
|
6
|
+
import { OpenStreetLayer } from "./OpenStreet.ts";
|
|
7
|
+
import { ILayer, TileLayer } from "./TileLayer.ts";
|
|
8
8
|
import "../../src/leaflet/Leaflet.css";
|
|
9
9
|
export declare class Leaflet extends HTMLWidget {
|
|
10
10
|
protected _leafletElement: any;
|
|
@@ -48,6 +48,6 @@ export interface Leaflet {
|
|
|
48
48
|
defaultLong(_: number): this;
|
|
49
49
|
defaultZoom(): number;
|
|
50
50
|
defaultZoom(_: number): this;
|
|
51
|
-
autoZoomToFit:
|
|
51
|
+
autoZoomToFit(): boolean;
|
|
52
|
+
autoZoomToFit(_: boolean): this;
|
|
52
53
|
}
|
|
53
|
-
//# sourceMappingURL=Leaflet.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { TileLayer } from "./TileLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { TileLayer } from "./TileLayer.ts";
|
|
3
3
|
export declare class MapBoxLayer extends TileLayer {
|
|
4
4
|
constructor();
|
|
5
5
|
attribution(): string;
|
|
6
6
|
getMaxZoom(): number;
|
|
7
7
|
layerEnter(map: Map): void;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=MapBox.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map, Direction } from "
|
|
2
|
-
import { ClusterLayer } from "./FeatureLayer";
|
|
1
|
+
import { Map, Direction } from "./leaflet-shim.ts";
|
|
2
|
+
import { ClusterLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export declare class Markers extends ClusterLayer {
|
|
4
4
|
constructor(cluster?: boolean);
|
|
5
5
|
hasBounds(): boolean;
|
|
@@ -35,4 +35,3 @@ export interface Markers {
|
|
|
35
35
|
popupOffsetY(): number;
|
|
36
36
|
popupOffsetY(_: number): any;
|
|
37
37
|
}
|
|
38
|
-
//# sourceMappingURL=Markers.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { TileLayer } from "./TileLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { TileLayer } from "./TileLayer.ts";
|
|
3
3
|
export declare class OpenStreetLayer extends TileLayer {
|
|
4
4
|
constructor();
|
|
5
5
|
attribution(): string;
|
|
6
6
|
getMaxZoom(): number;
|
|
7
7
|
layerEnter(map: Map): void;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=OpenStreet.d.ts.map
|
package/types/leaflet/Path.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { D3SurfaceLayer } from "./FeatureLayer";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { D3SurfaceLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export type Coordinate = [number, number];
|
|
4
4
|
export type Coordinates = [Coordinate, Coordinate];
|
|
5
5
|
export declare class Path extends D3SurfaceLayer {
|
|
@@ -34,4 +34,3 @@ export interface Lines {
|
|
|
34
34
|
longitude2Column(): string;
|
|
35
35
|
longitude2Column(_: string): this;
|
|
36
36
|
}
|
|
37
|
-
//# sourceMappingURL=Path.d.ts.map
|
package/types/leaflet/Pins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { Markers } from "./Markers";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { Markers } from "./Markers.ts";
|
|
3
3
|
export declare class Pins extends Markers {
|
|
4
4
|
constructor(cluster?: boolean);
|
|
5
5
|
layerUpdate(map: Map): void;
|
|
@@ -29,4 +29,3 @@ export interface Pins {
|
|
|
29
29
|
export declare class ClusterPins extends Pins {
|
|
30
30
|
constructor();
|
|
31
31
|
}
|
|
32
|
-
//# sourceMappingURL=Pins.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LeafletEvent, Map } from "
|
|
2
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { LeafletEvent, Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
3
3
|
type Lat = number;
|
|
4
4
|
type Lon = number;
|
|
5
5
|
type Point = [Lon, Lat];
|
|
@@ -30,4 +30,3 @@ export interface Polygons {
|
|
|
30
30
|
opacity_exists(): boolean;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=Polygons.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { World } from "./World";
|
|
1
|
+
import { World } from "./World.ts";
|
|
2
2
|
export declare class Region extends World {
|
|
3
3
|
constructor();
|
|
4
4
|
protected fetchTopo(regionID: string): Promise<any>;
|
|
@@ -12,4 +12,3 @@ export interface Region {
|
|
|
12
12
|
region(): string;
|
|
13
13
|
region(_: string): this;
|
|
14
14
|
}
|
|
15
|
-
//# sourceMappingURL=Region.d.ts.map
|
package/types/leaflet/Text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Map } from "
|
|
2
|
-
import { Markers } from "./Markers";
|
|
1
|
+
import { Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { Markers } from "./Markers.ts";
|
|
3
3
|
export declare class Text extends Markers {
|
|
4
4
|
constructor(cluster?: boolean);
|
|
5
5
|
layerUpdate(map: Map): void;
|
|
@@ -38,4 +38,3 @@ export interface Text {
|
|
|
38
38
|
textFormat(_: string): this;
|
|
39
39
|
textFormat_exists(): boolean;
|
|
40
40
|
}
|
|
41
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Widget } from "@hpcc-js/common";
|
|
2
|
-
import { LatLngBounds, LeafletEvent, Map } from "
|
|
2
|
+
import { LatLngBounds, LeafletEvent, Map } from "./leaflet-shim.ts";
|
|
3
3
|
export interface ILayer {
|
|
4
4
|
init(): Promise<void>;
|
|
5
5
|
hasBounds(): boolean;
|
|
@@ -30,4 +30,3 @@ export declare class TileLayer extends Widget implements ILayer {
|
|
|
30
30
|
moveEnd(e: LeafletEvent): void;
|
|
31
31
|
viewReset(e: LeafletEvent): void;
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=TileLayer.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeoJSON, Map } from "
|
|
2
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { GeoJSON, Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
3
3
|
export declare function fixDateLine(feature: any, layer: any): void;
|
|
4
4
|
export declare class TopoJSON extends GeoJSON {
|
|
5
5
|
constructor(data: any, options: any);
|
|
@@ -11,4 +11,3 @@ export declare class TopoJSONLayer extends FeatureLayer {
|
|
|
11
11
|
init(): Promise<void>;
|
|
12
12
|
layerEnter(map: Map): void;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=TopoJSON.d.ts.map
|
package/types/leaflet/US.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LatLngBounds } from "
|
|
2
|
-
import { World } from "./World";
|
|
1
|
+
import { LatLngBounds } from "./leaflet-shim.ts";
|
|
2
|
+
import { World } from "./World.ts";
|
|
3
3
|
export declare class US extends World {
|
|
4
4
|
constructor();
|
|
5
5
|
getBounds(): LatLngBounds;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=US.d.ts.map
|
package/types/leaflet/World.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { FeatureLayer } from "./FeatureLayer";
|
|
1
|
+
import { LatLngBounds, Map } from "./leaflet-shim.ts";
|
|
2
|
+
import { FeatureLayer } from "./FeatureLayer.ts";
|
|
4
3
|
import "../../src/leaflet/World.css";
|
|
5
4
|
export declare class World extends FeatureLayer {
|
|
6
5
|
protected _features: any;
|
|
7
|
-
protected _selection: Utility.SimpleSelection;
|
|
8
6
|
_palette: any;
|
|
9
7
|
protected _dataMap: {};
|
|
10
8
|
protected _dataMinWeight: any;
|
|
@@ -33,9 +31,6 @@ export declare class World extends FeatureLayer {
|
|
|
33
31
|
click(row: any, col: any, sel: any): void;
|
|
34
32
|
}
|
|
35
33
|
export interface World {
|
|
36
|
-
autoScaleMode(): string;
|
|
37
|
-
autoScaleMode(_: string): this;
|
|
38
|
-
autoScaleMode_exists(): boolean;
|
|
39
34
|
paletteID(): string;
|
|
40
35
|
paletteID(_: string): this;
|
|
41
36
|
paletteID_exists(): boolean;
|
|
@@ -55,5 +50,7 @@ export interface World {
|
|
|
55
50
|
meshStrokeWidth(): number;
|
|
56
51
|
meshStrokeWidth(_: number): this;
|
|
57
52
|
meshStrokeWidth_exists(): boolean;
|
|
53
|
+
internalOnly(): boolean;
|
|
54
|
+
internalOnly(_: boolean): this;
|
|
55
|
+
internalOnly_exists(): boolean;
|
|
58
56
|
}
|
|
59
|
-
//# sourceMappingURL=World.d.ts.map
|
package/types/leaflet/index.d.ts
CHANGED
|
@@ -1,19 +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";
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./Circles.ts";
|
|
2
|
+
export * from "./ClusterCircles.ts";
|
|
3
|
+
export * from "./Countries.ts";
|
|
4
|
+
export * from "./DrawLayer.ts";
|
|
5
|
+
export * from "./FeatureLayer.ts";
|
|
6
|
+
export * from "./HeatLayer.ts";
|
|
7
|
+
export * from "./Icons.ts";
|
|
8
|
+
export * from "./Leaflet.ts";
|
|
9
|
+
export * from "./Markers.ts";
|
|
10
|
+
export * from "./Polygons.ts";
|
|
11
|
+
export * from "./Path.ts";
|
|
12
|
+
export * from "./Pins.ts";
|
|
13
|
+
export * from "./Region.ts";
|
|
14
|
+
export * from "./Text.ts";
|
|
15
|
+
export * from "./TileLayer.ts";
|
|
16
|
+
export * from "./USCounties.ts";
|
|
17
|
+
export * from "./USStates.ts";
|
|
18
|
+
export * from "./World.ts";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import L, { Circle, Control, CRS, Direction, DivIcon, Draw, FeatureGroup, GeoJSON, Icon, LatLng, LatLngBounds, LatLngExpression, LeafletEvent, Map, Marker, point, Point, Polygon, Polyline, Rectangle, TileLayer, Transformation, Util } from "leaflet";
|
|
2
|
+
import "leaflet/dist/leaflet.css";
|
|
3
|
+
import "leaflet-draw";
|
|
4
|
+
import "leaflet-draw/dist/leaflet.draw.css";
|
|
5
|
+
import "leaflet.markercluster";
|
|
6
|
+
import "leaflet.markercluster/dist/MarkerCluster.css";
|
|
7
|
+
import "leaflet.markercluster/dist/MarkerCluster.Default.css";
|
|
8
|
+
export { GoogleMutant } from "./plugins/Leaflet.GoogleMutant.ts";
|
|
9
|
+
export { BeautifyIcon } from "./plugins/BeautifyIcon.ts";
|
|
10
|
+
export { D3SvgOverlay } from "./plugins/D3SvgOverlay.ts";
|
|
11
|
+
export { HeatLayer as LHeatLayer } from "./plugins/HeatLayer.ts";
|
|
12
|
+
export type MarkerClusterGroup = L.MarkerClusterGroup;
|
|
13
|
+
export declare const MarkerClusterGroup: typeof L.MarkerClusterGroup;
|
|
14
|
+
export { L, Circle, Control, CRS, Direction, DivIcon, Draw, FeatureGroup, GeoJSON, Icon, LatLng, LatLngBounds, LatLngExpression, LeafletEvent, Map, Marker, point, Point, Polygon, Polyline, Rectangle, TileLayer, Transformation, Util };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as L from "leaflet";
|
|
2
|
+
import "./D3SvgOverlay.css";
|
|
3
|
+
export declare class LeafletLayer extends L.Layer {
|
|
4
|
+
_rootGroup: any;
|
|
5
|
+
}
|
|
6
|
+
export type DrawCallback = (element: any, projection: any, zoom: any) => void;
|
|
7
|
+
export declare class D3SvgOverlay extends LeafletLayer {
|
|
8
|
+
private _svg;
|
|
9
|
+
map: any;
|
|
10
|
+
selection: any;
|
|
11
|
+
projection: any;
|
|
12
|
+
private _pixelOrigin;
|
|
13
|
+
private _zoomDiff;
|
|
14
|
+
private _zoom;
|
|
15
|
+
private _scale;
|
|
16
|
+
private _shift;
|
|
17
|
+
private _wgsOrigin;
|
|
18
|
+
private _wgsInitialShift;
|
|
19
|
+
constructor(options?: {});
|
|
20
|
+
svg(): any;
|
|
21
|
+
private _drawCallback;
|
|
22
|
+
drawCallback(): DrawCallback;
|
|
23
|
+
drawCallback(_: DrawCallback): this;
|
|
24
|
+
getBounds(): L.LatLngBounds;
|
|
25
|
+
_undef(a: any): a is undefined;
|
|
26
|
+
_options(options: any): any;
|
|
27
|
+
draw(): void;
|
|
28
|
+
_zoomChange(evt: any): void;
|
|
29
|
+
onAdd(map: any): this;
|
|
30
|
+
getEvents(): {
|
|
31
|
+
zoomend: (evt: any) => void;
|
|
32
|
+
viewreset: (evt: any) => void;
|
|
33
|
+
};
|
|
34
|
+
onRemove(map: any): this;
|
|
35
|
+
addTo(map: any): this;
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as L from "leaflet";
|
|
2
|
+
export declare class LeafletLayer2 extends L.Layer {
|
|
3
|
+
}
|
|
4
|
+
export declare class HeatLayer extends LeafletLayer2 {
|
|
5
|
+
_latlngs: any;
|
|
6
|
+
_heat: any;
|
|
7
|
+
_frame: any;
|
|
8
|
+
_canvas: any;
|
|
9
|
+
constructor(latlngs: any, options?: {});
|
|
10
|
+
initialize(options: any): void;
|
|
11
|
+
setLatLngs(latlngs: any): this;
|
|
12
|
+
addLatLng(latlng: any): this;
|
|
13
|
+
setOptions(options: any): this;
|
|
14
|
+
redraw(): this;
|
|
15
|
+
onAdd(map: any): this;
|
|
16
|
+
onRemove(map: any): this;
|
|
17
|
+
addTo(map: any): this;
|
|
18
|
+
_initCanvas(): void;
|
|
19
|
+
_updateOptions(): void;
|
|
20
|
+
_reset(): void;
|
|
21
|
+
_redraw(): void;
|
|
22
|
+
_animateZoom(e: any): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GoogleMutant: any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare class Entry<T> {
|
|
2
|
+
key: string;
|
|
3
|
+
value: T;
|
|
4
|
+
constructor(key: string, value: T);
|
|
5
|
+
}
|
|
6
|
+
export declare class LRUMap<T> {
|
|
7
|
+
size: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
oldest: Entry<T>;
|
|
10
|
+
newest: Entry<T>;
|
|
11
|
+
_keymap: Map<string, Entry<T>>;
|
|
12
|
+
constructor(entries: Entry<T>[]);
|
|
13
|
+
constructor(limit: number, entries: Entry<T>[]);
|
|
14
|
+
_markEntryAsUsed(entry: Entry<T>): void;
|
|
15
|
+
assign(entries: Entry<T>[]): void;
|
|
16
|
+
get(key: string): T;
|
|
17
|
+
set(key: string, value: T): this;
|
|
18
|
+
shift(): (string | T)[];
|
|
19
|
+
find(key: string): T;
|
|
20
|
+
has(key: string): boolean;
|
|
21
|
+
delete(key: string): T;
|
|
22
|
+
clear(): void;
|
|
23
|
+
keys(): any;
|
|
24
|
+
values(): any;
|
|
25
|
+
entries(): this;
|
|
26
|
+
[Symbol.iterator](): any;
|
|
27
|
+
forEach(fun: any, thisObj: any): void;
|
|
28
|
+
/** Returns a JSON (array) representation */
|
|
29
|
+
toJSON(): any[];
|
|
30
|
+
/** Returns a String representation */
|
|
31
|
+
toString(): string;
|
|
32
|
+
}
|
|
33
|
+
export {};
|