website/src/MapPage/map.js
/**
     * Changes from mouse coords to plotly coords
     * @param {int} x - x coord in pixels of the mouse
     * @param {int} y - y coord in pixels of the mouse
     */
Changes from mouse coords to plotly coords
@param {int} x - x coord in pixels of the mouse
@param {int} y - y coord in pixels of the mouse
Changes from mouse coords to plotly coords @param { int } x - x coord in pixels of the mouse @param { int } y - y coord in pixels of the mouse
function toPlotlyCoords(x, y) {
        const width = myPlot.clientWidth + 8;
        const height = myPlot.clientHeight + 8;
        const relX = (x - myPlot.offsetLeft) / width;
        const relY = (y - myPlot.offsetTop) / height;
        const plotlyX = relX * (maxX - minX) + minX;
        const plotlyY = (1.0 - relY) * (maxY - minY) + minY;
        return [plotlyX, plotlyY];
    }
function toPlotlyCoords ( x , y ) { const width = myPlot . clientWidth + 8 ; const height = myPlot . clientHeight + 8 ; const relX = ( x - myPlot . offsetLeft ) / width ; const relY = ( y - myPlot . offsetTop ) / height ; const plotlyX = relX * ( maxX - minX ) + minX ; const plotlyY = ( 1.0 - relY ) * ( maxY - minY ) + minY ; return [ plotlyX , plotlyY ] ; }
Changes from mouse coords to plotly coords
 @param {int} x - x coord in pixels of the mouse
 @param {int} y - y coord in pixels of the mouse
Changes from mouse coords to plotly coords @param { int } x - x coord in pixels of the mouse @param { int } y - y coord in pixels of the mouse