ElevationProfile Widget | ArcGIS API for JavaScript 4.24
文章推薦指數: 80 %
Explore in the sandbox. Open in CodePen. View live. The ElevationProfile widget is used to generate and display an elevation profile from an input path. ArcGISAPIforJavaScriptSampleCodeOverviewSampleCodeAPIReferenceShowcaseBlogMenuGetstartedLatestsamplesMappingandviewsLayersQueryEditingLabelsDrawVisualizationPopupsGraphicsRoutingSearchTimeAnalysisWidgetsBasemapGalleryBookmarksCoordinateConversionDaylightDirectionsEditorElevationProfileExpandFeatureFeatureFormFeatureTableFloorFilterHistogramHistogramRangeSliderLayerListLegendLineofsightLocateMeasurementPrintSearchSketchShadowcastSliceSwipeTableListTrackTimeSliderUsingtheview'sUIResponsivewidgetsResponsiveappsusingCSSUtilityNetworkTraceOtherNavigationMenuElevationProfileWidgetExploreinthesandboxOpeninCodePenViewliveTheElevationProfilewidgetisusedtogenerateanddisplayanelevationprofilefromaninputpath.Inthissampletheinputpathisinteractivelycreatedbydrawingasingle-ormulti-segmentline.Thewidgethastheprofilespropertyconfiguredsuchthatitdisplaystwoelevationprofilelines,oneforground,oneforthebuildings.UsedarkcolorsforcodeblocksCopy 1 2 3 4 5 6 7 8 9 10 11 12 13 14 constelevationProfile=newElevationProfile({ view:view, profiles:[{ type:"ground"//firstprofilelinesamplesthegroundelevation },{ type:"view"//secondprofilelinesamplestheviewandshowsbuildingprofiles }], //hidetheselectbutton //thisbuttoncanbedisplayedwhentherearepolylinesinthe //scenetoselectanddisplaytheelevationprofilefor visibleElements:{ selectButton:false } });FormoreusageandconfigurationoptionsseeElevationProfileintheAPIReference.3DelevationprofileSceneView4.18Wasthispagehelpful?YesNoYourbrowserisnolongersupported.Pleaseupgradeyourbrowserforthebestexperience.Seeourbrowserdeprecationpostformoredetails.
延伸文章資訊
- 1ElevationProfile Widget | ArcGIS API for JavaScript 4.18
The ElevationProfile widget is used to generate and display an elevation profile from an input pa...
- 2ElevationProfileLineGround | ArcGIS API for JavaScript 4.24
Profile line which samples elevation from the Ground of the Map currently set in the View. Whenev...
- 3ElevationProfile | API Reference | ArcGIS API for JavaScript 4.24
The ElevationProfile widget is used to generate and display an elevation profile from an input li...
- 4ElevationProfile | API Reference | ArcGIS API for JavaScript 3.41
The Elevation Profile widget allows a user to create an elevation profile based on a polyline geo...
- 5Elevation Profile - Esri Community
These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API fo...