I'm attempting to set the spatialReference property of the view to 102667. The console logs the error:
init.js:321 [esri.views.MapView] The view could not be initialized with the spatialReference 102667. Try specifying an extent or a center and scale
I'm using the sandbox environment as an example, because I'm not understanding why this wouldn't work. The data I am working with is all projected with this spatial reference, so I thought it would be prudent to set the View to match. The excerpt comes from here:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Get started with MapView - Create a 2D map - 4.4</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.4/esri/css/main.css">
<script src="https://js.arcgis.com/4.4/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"dojo/domReady!"
], function(Map, MapView) {
var map = new Map({
basemap: "streets"
});
var view = new MapView({
container: "viewDiv",
map: map,
zoom: 4,
center: [15, 65], // longitude, latitude
spatialReference: {wkid: 102667}
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>