Fixed the MainFunctions.js
Fixed the point data for different resolution
Fixed issues with changing the resolution for point and spatial data