How to use the @hpcc-js/leaflet-shim.BeautifyIcon 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 / Pins.ts View on Github external
super.layerUpdate(map, (row) => {
            return {
                icon: BeautifyIcon({
                    iconShape: "marker",
                    icon: this.propValue(faCharIdx, row, this.faChar()),
                    textColor: this.propValue(faCharColorIdx, row, this.faCharColor()),
                    borderColor: this.propValue(strokeColorIdx, row, this.strokeColor()),
                    backgroundColor: this.propValue(fillColorIdx, row, this.fillColor()),
                    props: {
                        owner: this,
                        row
                    }
                }),
                draggable: false
            };
        });
    }