This example is for all elevations
https://developers.arcgis.com/javascript/latest/sample-code/layers-custom-elevation-exaggerated/
If i want to a range elevations make changes, Is there a way?
Creating a custom elevation services specific to your needs is one option. If you'd like to use the BaseElevationLayer then you have full control of the extent of the layer and the elevation values used. I updated the codepen to show how you could use a constant elevation, an elevation offset, or an exaggerated elevation value. https://codepen.io/john-grayson/pen/YzxXKLO
I hope this helps.
I build localArea, SceneView can use, and ExaggeratedElevationLayer load fullExtent use clippingArea.
Want to present Depth effect, Seems inappropriate.
const localArea = new Extent({ spatialReference: { wkid: 3857 }, xmin: -2.0037507842788246E7, ymin: -2.0037508659999996E7, xmax: 2.0037507842788246E7, ymax: 2.0037508340000004E7});
this.addResolvingPromise( this._elevation.load().then(() => { this.tileInfo = this._elevation.tileInfo; this.spatialReference = this._elevation.spatialReference; this.fullExtent = clippingArea; }));
One possible way to do this is to use a local viewing mode and set the clip area as needed. I updated the codepen example to show this concept.
Thank you.
This example is for Elevation data values, Can use Elevation extent?
if((data.values[i] >= onlyExagerateElevationRange.min) && (data.values[i] <= onlyExagerateElevationRange.max)){ data.values[i] = data.values[i] * exaggeration;}
I want to change to control which elevation values get exaggerated
Do you mean you want to change the "exaggeration" value?
properties: {exaggeration: 70},
Here's a modified version of the example that shows how to control which elevation values get exaggerated:
https://codepen.io/john-grayson/pen/YzxXKLO
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.