Copied the grid system from mapbox