ElevationProfile Widget | ArcGIS API for JavaScript 4.24

文章推薦指數: 80 %
投票人數:10人

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.



請為這篇文章評分?