How to use the @hpcc-js/leaflet-shim.Circle function in @hpcc-js/leaflet-shim

To help you get started, we’ve selected a few @hpcc-js/leaflet-shim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / map / src / leaflet / Circles.ts View on Github external
this.data().filter(row => !this.omitNullLatLong() || (!!row[latIdx] && !!row[longIdx])).forEach(row => {
            this.add(new Circle([row[latIdx], row[longIdx]], {
                color: this.propValue(strokeColorIdx, row, this.strokeColor()),
                fill: true,
                fillColor: this.propValue(fillColorIdx, row, this.fillColor()),
                fillOpacity: this.fillOpacity(),
                radius: this.radius(),
                origRow: row
            } as any).on("click", e => this.clickHandler(e, row)));
        });
    }