ElevationProfileLineGround | ArcGIS API for JavaScript 4.24
文章推薦指數: 80 %
Profile line which samples elevation from the Ground of the Map currently set in the View. Whenever layers are added or removed from the Ground or their ... ArcGISAPIforJavaScriptAPIReferenceOverviewSampleCodeAPIReferenceShowcaseBlogMenuesriesri/analysisesri/coreesri/formesri/geometryesri/identityesri/layersesri/networksesri/popupesri/portalesri/renderersesri/restesri/smartMappingesri/supportesri/symbolsesri/viewsesri/webdocesri/webmapesri/websceneesri/widgetsReferenceNavigationMenuElevationProfileLineGround ProfilelinewhichsampleselevationfromtheGroundofthe MapcurrentlysetintheView. WheneverlayersareaddedorremovedfromtheGroundortheirvisibilitychanges,the profilelinewillbeupdated. Seealso: ElevationProfile ElevationProfileViewModel ElevationProfileLineInput ElevationProfileLineQuery ElevationProfileLineView Example: constelevationProfile=newElevationProfile({ view:view, profiles:[{ type:"ground",//autocastsasnewElevationProfileLineGround(), color:"red",//displaythisprofileinred title:"Worldelevation"//withacustomlabel }] }); PropertyOverview Anypropertiescanbeset,retrievedorlistenedto.SeetheWorkingwithPropertiestopic. Showinheritedproperties Hideinheritedproperties Name Type Summary Class colorColormoredetailsColorofthelineonthechartandintheview.moredetailsElevationProfileLineGround declaredClassStringmoredetailsThenameoftheclass.moredetailsAccessor hoveredPointPointmoredetailsPointbeinghoveredinthechart,intheview'sspatialreference.moredetailsElevationProfileLine idStringmoredetailsUniqueidentifierfortheprofileline.moredetailsElevationProfileLine progressNumbermoredetailsHowfaralongthegenerationofthisprofileis.moredetailsElevationProfileLine samplesElevationProfileSample[]moredetailsListofsamplesthatmakeuptheelevationprofile.moredetailsElevationProfileLine statisticsElevationProfileStatisticsmoredetailsStatisticsaboutthegeneratedelevationprofile,ifavailable.moredetailsElevationProfileLine titleStringmoredetailsTitleoftheline,tobedisplayedinthecharttooltipandinthechartlegend.moredetailsElevationProfileLine typeStringmoredetailsThelinetype.moredetailsElevationProfileLineGround viewVisualizationEnabledBooleanmoredetailsWhetheralinevisualizationrepresentingelevationSamplesshouldbeaddedtotheSceneView.moredetailsElevationProfileLineGround visibleBooleanmoredetailsWhetherthelineshouldbecomputedandshowninthechart.moredetailsElevationProfileLine PropertyDetails colorColorautocast Autocastsfrom Object|Number[]|String Colorofthelineonthechartandintheview. DefaultValue:#ff7f00 declaredClassStringreadonly inherited Thenameoftheclass.Thedeclaredclassnameisformattedasesri.folder.className. hoveredPointPointreadonly inherited Pointbeinghoveredinthechart,intheview'sspatialreference. idString inherited Uniqueidentifierfortheprofileline. progressNumberreadonly inherited Howfaralongthegenerationofthisprofileis.0meansnothingwasloaded and1meansloadingiscomplete. samplesElevationProfileSample[]readonly inherited Listofsamplesthatmakeuptheelevationprofile.Itcanbepassedtoagraphinglibraryin ordertodisplaytheprofilein2D. statisticsElevationProfileStatisticsreadonly inherited Statisticsaboutthegeneratedelevationprofile,ifavailable. Forslopecomputationsprofilesaresampledataminimumsamplingdistanceof10m(32.8ft).Higherresolution profilesaredownsampledtoa10m(32.8ft)samplingdistancebeforetheslopeiscalculated. titleString inherited Titleoftheline,tobedisplayedinthecharttooltipandinthechartlegend. typeStringreadonly Thelinetype. ForElevationProfileLineGroundthetypeisalways"ground". viewVisualizationEnabledBoolean Since:ArcGISAPIforJavaScript4.20 WhetheralinevisualizationrepresentingelevationSamples shouldbeaddedtotheSceneView.Thispropertydoesn'tapplytoMapView. DefaultValue:true visibleBoolean inherited Whetherthelineshouldbecomputedandshowninthechart. DefaultValue:true PropertiesShowtableofcontentsPropertiesWasthispagehelpful?YesNoWasthispagehelpful?YesNoYourbrowserisnolongersupported.Pleaseupgradeyourbrowserforthebestexperience.Seeourbrowserdeprecationpostformoredetails.
延伸文章資訊
- 1Profile—ArcGIS REST APIs
The Profile request is used to sample elevation values along input lines. The output polyline fea...
- 2ElevationProfile Widget | ArcGIS API for JavaScript 4.18
The ElevationProfile widget is used to generate and display an elevation profile from an input pa...
- 3ElevationProfileLineGround | ArcGIS API for JavaScript 4.24
Profile line which samples elevation from the Ground of the Map currently set in the View. Whenev...
- 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...
- 5ElevationProfile | API Reference | ArcGIS API for JavaScript 4.24
The ElevationProfile widget is used to generate and display an elevation profile from an input li...