Using OpenLayers 7.3, my goal is to display a Vector Tile Layer (VTL) that has a coordinate system of EPSG:7856, with other layers (Tile and Vector layers) that have coordinate systems in EPSG:3857 (Web Mercator).
I've got the projection from EPSG's website and registered it in OpenLayers:
import proj4 from 'proj4';
import {register} from 'ol/proj/proj4.js';
import {get as getProjection} from 'ol/proj.js';
proj4.defs("EPSG:7856","+proj=utm +zone=56 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs");
register(proj4);
let proj7856 = getProjection(projCode);
But I don't understand where I should be setting this. Thinking out loud, if I want to project all layers in the Map to one coord system, can I not use OpenLayers default projection of EPSG:3857, in which case would I expect OpenLayers to discover the VTL is in EPSG:7856 and automatically project it to EPSG:3857, along with the other layers?
Or do I set the projection on the Map View as well as all layers to EPSG:7856?
I haven't had success with either, hence my post. Trying either option, the VTL is rendered at a much larger scale than the other layers.