Using the OSM layer, is it possible to customize SpatialReference ?
Can you clarify what you're referring to when you say "OSM layer"? Do you mean the feature services? Or the vector tile basemap service?
the vector tile basemap service
require(["esri/layers/OpenStreetMapLayer", "esri/Map", "esri/views/SceneView"], (
OpenStreetMapLayer,
Map,
SceneView
) => {
const map = new Map({
ground: "world-elevation"
});
const view = new SceneView({
map: map,
container: "viewDiv"
});
const osmLayer = new OpenStreetMapLayer();
map.add(osmLayer);
});