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 | 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...
- 2ElevationProfile Widget | ArcGIS API for JavaScript 4.24
Explore in the sandbox. Open in CodePen. View live. The ElevationProfile widget is used to genera...
- 3Profile—ArcGIS REST APIs
The Profile request is used to sample elevation values along input lines. The output polyline fea...
- 4user-specified input geometry | ArcGIS API for JavaScript 3.41
Description. This sample allows input of either a polyline or freehand polyline geometry. The ele...
- 5ElevationProfileViewModel | ArcGIS API for JavaScript 4.24
Collection of elevation profile lines which are to be generated and displayed in the widget's cha...