ポイントレイヤーのポップアップに地面の高さの値を表示する方法はありますか? ポイントレイヤー(2D)でわかるのはx,y座標だけですが、そこからESRIの「terrain 3D」の値を取得できるはずです。
Map ViewerとScene Viewerの両方で利用できるようにしたいです。
ありがとうございます
Hi Joe Nunn ,
As far as I know this is not possible yet. I have heard that performing a REST call will be possible in the feature. With this you will be able to request the elevation for any point.
To give you an example of how I assume this will look, see below a URL to query the NED30m global elevation service:
https://elevation.arcgis.com/arcgis/rest/services/NED30m/ImageServer/identify?geometry=%7B%22x%22+%3A+-118.15%2C+%22y%22+%3A+33.80%2C+%22spatialReference%22+%3A+%7B%22wkid%22+%3A+4326%7D%7D&geometryType=esriGeometryPoint&mosaicRule=&renderingRule=&pixelSize=&time=&returnGeometry=false&returnCatalogItems=false&f=json
If you look at the page using the HTML format (change last parameter of URL), you will see this:
The resulting json can be used to unpack the value you are interested in (in this case the value "17.2376")
Hi Xander - going a step forward is there a way of using a similar REST call in arcade in a popup in AGOL?
I had read that arcade can reference other layers: Pump up Your Pop-ups With Arcade FeatureSets and the Living Atlas
So imagine you could do something similar using a Terrain raster layer as well?
Thanks
Joe
Hi joe.nunn@landuse.co.uk ,
Unfortunately, terrain layer, imagery layer, tiled layers are all not supported at this time. You can use content from the living atlas, but they will have to be feature layers.
Thanks Xander - thats a shame there isn't a way to use those yet. I know if done outside of AGOL it would be an easy task i would think. Have done something similar in google maps api years ago that returns the elevation at a location.
I agree that being able to do analysis in Arcade using raster layers would be pretty cool and being able to do REST calls from Arcade will also help a lot to accomplish certain workflows. Could you create an idea for this: https://community.esri.com/community/arcgis-ideas (please post back when you do).
I would certainly give my vote to this!
Added:
https://community.esri.com/ideas/18886
Remember to vote your own idea up. I just voted.
サインインすると、投稿したり、更新をフォローしたりできます。初めての方ですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.