How to use the @hpcc-js/leaflet-shim.point 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 / Markers.ts View on Github external
this.data().filter(row => !this.omitNullLatLong() || (!!row[latIdx] && !!row[longIdx])).forEach(row => {
                const marker = new Marker([row[latIdx], row[longIdx]], markerOptions(row))
                    .on("click", e => this.clickHandler(e, marker, row))
                    ;
                const tooltipText = this.tooltipText(this.rowToObj(row), this.propValue(tooltipIdx, row, ""));
                if (tooltipText) {
                    marker.bindTooltip(tooltipText, {
                        direction: this.tooltipDirection(),
                        offset: point(this.tooltipOffsetX(), this.tooltipOffsetY())
                    });
                }
                const popupText = this.popupText(this.rowToObj(row), this.propValue(popupIdx, row, ""));
                if (popupText) {
                    marker.bindPopup(popupText, {
                        offset: point(this.popupOffsetX(), this.popupOffsetY())
                    });
                }
                this.add(marker);
            });
        }
github hpcc-systems / Visualization / packages / map / src / leaflet / Markers.ts View on Github external
this.data().filter(row => !this.omitNullLatLong() || (!!row[latIdx] && !!row[longIdx])).forEach(row => {
                const marker = new Marker([row[latIdx], row[longIdx]], markerOptions(row))
                    .on("click", e => this.clickHandler(e, marker, row))
                    ;
                const tooltipText = this.tooltipText(this.rowToObj(row), this.propValue(tooltipIdx, row, ""));
                if (tooltipText) {
                    marker.bindTooltip(tooltipText, {
                        direction: this.tooltipDirection(),
                        offset: point(this.tooltipOffsetX(), this.tooltipOffsetY())
                    });
                }
                const popupText = this.popupText(this.rowToObj(row), this.propValue(popupIdx, row, ""));
                if (popupText) {
                    marker.bindPopup(popupText, {
                        offset: point(this.popupOffsetX(), this.popupOffsetY())
                    });
                }
                this.add(marker);
            });
        }