Skip to content

Instantly share code, notes, and snippets.

@odoe
Created July 27, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/ddea10aac0ba4184f687 to your computer and use it in GitHub Desktop.
Save odoe/ddea10aac0ba4184f687 to your computer and use it in GitHub Desktop.
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