So I have been wanting to experiment with 3D using the Javascript API. As a scenario, I've chosen to visualize subsurface wellbores/boreholes. After creating a 3D feature class and publishing it as a map service, I bring it into my map and show it in a SceneView. So far so good. The features below the surface look great but navigation is really touchy and it's easy to pan 1000s of miles. from you where want to be.
Right now, I've kept it as simple as below. Experiments with other constraints have not been fruitful.
var map = new Map({
basemap: "topo",
ground: "world-elevation"
});
map.ground.navigationConstraint = {
type: "none"
};
var view = new SceneView({
container: "viewDiv",
map: map,
center: {
x: <x>,
y: <y>,
},
zoom : 12,
viewingMode: "local",
});
I heard someone mention that this is common and that it helps to add some kind of background so the panning tool doesn't grab the horizon and take you to Neverland... something like that. Does thing ring a bell, is this a common back?
Hi Arne, navigating underground can be tricky and even more so if you try to pan against the horizon. So adding features in the background is a good advice. However, which API version are you using? We did make some improvements in navigation to make it a bit more stable a couple of releases ago. And just out of curiosity, is navigation in your scene more difficult than in this sample? Local scene
Raluca, thanks for hearing my plea!
// The clipping extent for the scene
var kansasExtent = {
// autocasts as new Extent()
xmax: -10834217,
xmin: -10932882,
ymax: 4493918,
ymin: 4432667,
spatialReference: {
// autocasts as new SpatialReference()
wkid: 3857
}
// Use the exent defined in clippingArea to define the bounds of the scene
clippingArea: kansasExtent,
extent: kansasExtent,
// Turns off atmosphere and stars settings
environment: {
atmosphere: null,
starsEnabled: false
}