Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
FeatureLayer.prototype.mixin(Utility.SimpleSelectionMixin);
FeatureLayer.prototype.publishReset(["layers"]);
// ---------------------------------------------------------------------------
export class ClusterLayer extends FeatureLayer {
constructor(cluster = true) {
super(cluster);
}
}
ClusterLayer.prototype._class += " map_ClusterLayer";
// ---------------------------------------------------------------------------
export class D3SurfaceLayer extends FeatureLayer {
protected _lfd3 = new D3SvgOverlay()
.drawCallback((selection, projection) => this.layerUpdate(undefined, projection));
hasBounds(): boolean {
return true;
}
getBounds() {
return this._lfd3.getBounds();
}
layerEnter(map: Map) {
super.layerEnter(map);
this.add(this._lfd3);
}
layerUpdate(map: Map, projection?) {