How to use the @hpcc-js/leaflet-shim.LatLng 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 / AlbersPR.ts View on Github external
unproject(point) {
        if (!isNaN(point.x) && !isNaN(point.y)) {
            const latLng = projAlbers.invert([point.x, point.y]);
            return new LatLng(latLng[1], latLng[0]);
        } else {
            return new LatLng(0, 0);
        }
    }
};
github hpcc-systems / Visualization / packages / map / src / leaflet / AlbersPR.ts View on Github external
unproject(point) {
        if (!isNaN(point.x) && !isNaN(point.y)) {
            const latLng = projAlbers.invert([point.x, point.y]);
            return new LatLng(latLng[1], latLng[0]);
        } else {
            return new LatLng(0, 0);
        }
    }
};