English

Problem: Unable to add center, extent, and level URL parameters to specify the center location, extent, and zoom level in ArcGIS Online Scene Viewer

Description

In ArcGIS Online, users are able to view and interact with 2D data in Map Viewer and 3D data in Scene Viewer. In Map Viewer, adding center, extent, and level URL parameters specify the center location, extent, and zoom level of the web map. However, adding the same URL parameters used in Map Viewer into Scene Viewer does not change anything on the web scene.

The image below shows the map extent of a web scene without any URL parameters.


The map extent without any URL parameters.

The image below shows the map extent of a web scene after the extent URL parameter is added behind the web scene URL. There are no visible changes made to the map extent.

This is the map extent after the extent URL parameter is added.

Cause

This is as designed. Adding the center, extent, and level URL parameters used in the Map Viewer URL into the Scene Viewer URL does not change the specified center location, extent, and zoom level. In Scene Viewer, these attributes are changed by modifying the viewpoint=cam URL parameter.

Solution or Workaround

In ArcGIS Online Scene Viewer, modify the viewpoint=cam URL parameter to specify the center location (latitude and longitude), zoom level, rotation value, and pan value. The following is the viewpoint=cam URL parameter and the attribute components that made up the parameter.

viewpoint=cam:(Longitude)(Latitude)(Zoom level)(Rotation value)(Pan value)
AttributeDefinitionThe Value of Zero ('0')
LongitudeThe angular distance measured east or west of the Greenwich Prime MeridianThe Greenwich Prime Meridian
LatitudeThe angular distance measured north or south of the equatorThe Equator
Zoom LevelThe display of a larger or smaller region of an on-screen map or imageTechnically, it is not possible to have a zero zoom level. Setting the web scene to have a zero zoom level makes the web scene appears as a white space.
Rotation ValueThe deviation from NorthThe compass points directly to North This is the compass.
Pan ValueThe deviation from the plane parallel to the datumThe direct-down aerial view. No sideways tilt.

For example, viewpoint=cam:-112.8458024,37.57146344,6228.413;0,64.237 consists of the following attributes:

  • Longitude: -112.8458024
  • Latitude: 37.57146344
  • Zoom level: 6228.413
  • Rotation value: 0 (compass points north)
  • Pan value: 64.237

Use one of the following methods to specify the viewpoint=cam URL parameter in a web scene:

Adjust the map position and share the short link

Use this method to specify the attribute components by manually adjusting, panning, and zooming the web scene to locate the center location and the desired zoom level.

  1. In ArcGIS Online, open the web scene in Scene Viewer.
  2. Pan and zoom the map to the preferred center location and zoom level. This is the initial center location and zoom level when the web scene is opened.
  3. Click the Share button This is the Share button. to open the Share window.
This is the Share window.
 
  1. Share the short link.

    Opening the short link in another tab displays the web scene with the modified center location and zoom level. The URL portion highlighted in the image below shows the viewpoint=cam URL parameter is located behind the web scene URL.
This is the Scene Viewer.

Manually modify the viewpoint=cam parameter based on the specific values of attribute components

Use this method if users have specific values for the attribute components.

  1. In ArcGIS Online, open the web scene in Scene Viewer.
  2. Click the Share button This is the Share button. to open the Share window.
  3. Uncheck the Short Link check box.
This is the Short Link check box.
  1. For convenience, copy and paste the URL in a text editor. For example, Notepad.
  2. Manually modify the viewpoint=cam URL parameter by changing the longitude, latitude, zoom level, rotation value, and pan value to the specific values.

    In this example, the longitude, latitude, zoom level, rotation value, and pan value of the initial map extent are -108.99225153, 40.62748158, 7026.101, 206.908, and 65.947 respectively. The values are changed to -108.92107691, 40.49533633, 4352.988, 0, and 65.998 respectively.
Manually modify the parameter.
  1. Share the modified URL.

    The modified URL opens the web scene with the specified center location, zoom level, rotation value, and pan value. The URL portion highlighted in the image below shows the viewpoint=cam URL parameter is located behind the web scene URL.

    This is the Scene Viewer.

Related Information