condensed to one js for the magnitude map