Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require([
"esri/Map",
"esri/views/MapView",
"esri/views/SceneView",
"dojo/domReady!"
], function (Map, MapView, SceneView){
// one map, 2 views
var map = new Map({
basemap: "streets"
});
var s_view = new SceneView({
container: "sceneDiv",
map: map,
scale: 240000000
});
var m_view = new MapView({
container: "viewDiv",
map: map,
zoom: 3,
center: [-118, 35.5]
});
s_view.watch('center', function(val) {
m_view.center = val;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment