Hi
with a Scene one can provide the "&viewpoint=cam:<coordinates> " as a URL parameter to have a custom viewpoint. Is it possible to build similar URL for starting the 3D Viewer App with a custom Viewpoint?
bestPål Herman
I ran a quick test with a local scene and it worked for me. Perhaps its something with your local scene. If its public can you send me the link and I can take a look?
https://jsapi.maps.arcgis.com/apps/instant/3dviewer/index.html?appid=93730225fcb54e658851159cda059a79&viewpoint=cam:-115.86965716,32.66202139,-5615.499;310.6,100.348
Yes you can use a custom viewpoint via url param to load the app at a particular viewpoint. Here's an example:
https://www.arcgis.com/apps/instant/3dviewer/index.html?appid=4e8c21a7013c454caf04a99369e481fd&viewpoint=cam:7.60518687,51.95322645,97.038;59.413,90.367
An easy way to generate the url is to use the share tool in the upper right corner of the app. If you set pan/zoom/rotate to get the map the way you want it then click the Share > Copy Link it will copy a link to the clipboard with the custom viewpoint.
Thanks @KellyHutchins I did notice that text in the documentation, maybe I am troubling but I can only get that "viewpoint-thing" to function when the underlying scene is a global one.
Thanks again @KellyHutchins I was of course working in a scene with EPSG:25833 refsys and have to add the EPSG code into the URL parameters. Can not share the scene but these parameters are fine:
&viewpoint=cam:-30000,6733000,400,25833;0,90 (being X,Y,Z,EPSG code, direction/azimuth, camera angle)
Many thanks for prompt reply's - much appreciated 🙂
best
Pål Herman/pH
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.