Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[45.786490, -108.526600, 45.796180, -108.535652],
[45.796180, -108.535652, 45.774320, -108.494370],
[45.774320, -108.494370, 45.777062, -108.549835],
[45.777062, -108.549835, 51.897969, -8.475438]]),
new Pins()
.opacity(0.75)
.columns(geo.GMap.simple.columns)
.data(geo.GMap.simple.data)
]);
render(layered);
break;
case CanvasPinLayer:
case Graph:
break;
case Leaflet.ClusterPins:
render(new Leaflet.ClusterPins()
.columns(flightPath.columns)
.data(flightPath.data)
.latitudeColumn("dest_lat")
.longitudeColumn("dest_long")
);
break;
default:
it.skip("Has test", () => {
expect(false).to.be.true;
});
}
}
});
}
.polygonColumn("polys")
.weightColumn("weight")
.on("moveEnd", () => {
this.refresh();
})
;
protected _clusterMap = new Leaflet.ClusterCircles()
.columns(["latitude", "longitude", "weight"])
.latitudeColumn("latitude")
.longitudeColumn("longitude")
.weightColumn("weight")
.weightFormat(".0s")
;
protected _pinsMap = new Leaflet.ClusterPins()
.columns(["latitude", "longitude", "payload"])
.latitudeColumn("latitude")
.longitudeColumn("longitude")
.tooltipColumn("payload")
.popupColumn("payload")
;
constructor() {
super();
this
.layers([this._polyMap, this._clusterMap, this._pinsMap])
.mapType("Google")
.autoZoomToFit(false)
;
}
const f = area(points) * 6;
return [x / f, y / f];
}
export class RoxieRegion extends Leaflet.Leaflet {
protected _clusterMap = new Leaflet.ClusterCircles()
.columns(["latitude", "longitude", "weight"])
.latitudeColumn("latitude")
.longitudeColumn("longitude")
.weightColumn("weight")
.weightFormat("")
;
protected _pinsMap = new Leaflet.ClusterPins()
.columns(["latitude", "longitude", "payload"])
.latitudeColumn("latitude")
.longitudeColumn("longitude")
.tooltipColumn("payload")
.popupColumn("payload")
;
constructor() {
super();
this
.layers([this._clusterMap, this._pinsMap, this._drawMap])
.mapType("Google")
.autoZoomToFit(false)
;
}
import { Leaflet } from "@hpcc-js/map";
new Leaflet.ClusterPins()
.target("target")
.columns(["latitude", "longitude", "color", "icon"])
.data([
[51.897969, -8.475438, "green", "fa-plus"],
[35.652930, 139.687128],
[37.665074, -122.384375, "navy"],
[32.690680, -117.178540],
[39.709455, -104.969859],
[41.244123, -95.961610, "navy"],
[32.688980, -117.192040],
[45.786490, -108.526600],
[45.796180, -108.535652],
[45.774320, -108.494370],
[45.777062, -108.549835, "red", "fa-minus"]
])
.mapType("Google")
import { Leaflet } from "@hpcc-js/map";
new Leaflet.ClusterPins()
.target("target")
.columns(["latitude", "longitude", "color", "icon"])
.data([
[51.897969, -8.475438, "green", "fa-plus"],
[35.652930, 139.687128],
[37.665074, -122.384375, "navy"],
[32.690680, -117.178540],
[39.709455, -104.969859],
[41.244123, -95.961610, "navy"],
[32.688980, -117.192040],
[45.786490, -108.526600],
[45.796180, -108.535652],
[45.774320, -108.494370],
[45.777062, -108.549835, "red", "fa-minus"]
])
.mapType("MapBox")
import { Leaflet, topoJsonFolder } from "@hpcc-js/map";
topoJsonFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/map@2.0.0/TopoJSON");
const usStates = new Leaflet.USStates()
.columns(["State ID", "Weight"])
.data([["AL", 4779736], ["AK", 710231], ["AZ", 6392017], ["AR", 2915918], ["CA", 37253956], ["CO", 5029196], ["CT", 3574097], ["DC", 601723], ["FL", 18801310], ["GA", 9687653], ["HI", 1360301], ["ID", 1567582], ["IL", 12830632], ["IN", 6483802], ["IA", 3046355], ["ME", 1328361], ["MD", 5773552], ["MA", 6547629], ["MI", 9883640], ["MN", 5303925], ["MS", 2967297], ["MO", 5988927], ["MT", 989415], ["NE", 1826341], ["NV", 2700551], ["NH", 1316470], ["NJ", 8791894], ["NM", 2059179], ["NY", 19378102], ["NC", 9535483], ["ND", 672591], ["OH", 11536504], ["OK", 3751351], ["OR", 3831074], ["PA", 12702379], ["RI", 1052567], ["SC", 4625364], ["SD", 814180], ["TN", 6346105], ["TX", 25145561], ["UT", 2763885], ["VT", 625741], ["VA", 8001024], ["WA", 6724540], ["WV", 1852994], ["WI", 5686986], ["WY", 563626]])
;
const pins = new Leaflet.ClusterPins()
.columns(["latitude", "longitude", "pin", "circle"])
.data([
[37.665074, -122.384375],
[32.690680, -117.178540],
[39.709455, -104.969859],
[41.244123, -95.961610],
[32.688980, -117.192040],
[45.786490, -108.526600],
[45.796180, -108.535652],
[45.774320, -108.494370],
[45.777062, -108.549835]
])
.latitudeColumn("latitude")
.longitudeColumn("longitude")
;