Shared view specification
Draft · 26 November 2026
A shared view is one string you can copy. Save a flat 2D view as map: and a 3D view as cam:. A 3D camera looking straight down still saves as cam:. Both use the URL key view=. A viewer can open either type in the other mode when it can give useful framing. Shared view requirements · Format decision
A map stores its center and can include local scale and heading. It keeps its local scale when the screen changes. A camera stores the eye and orientation. It can also carry a known diagonal field of view. Full drawing · Flat map drawing · Editable drawing
Draft verification results are available. End-to-end release verification is pending. Results · Release checks
Both view types default to WGS84 latitude first, longitude second, in decimal degrees. In the patterns below, parts in […] are optional.
Flat map at a glance
Section titled “Flat map at a glance”map:47.047,8.474,7g opens a north-up map. At its center, one CSS pixel toward the top covers 7 ground metres.
view=map:<latitude>,<longitude>[,<resolution>g | ,<zoom>z][,<heading>h]To use another coordinate reference system (CRS), add its EPSG code. <axis1> and <axis2> hold the coordinates along the CRS’s first and second registered axes, in their respective units. Horizontal position
view=map:epsg:<code>:<axis1>,<axis2>[,<resolution>g | ,<zoom>z][,<heading>h]Ground resolution · g is the default for new shares. At the map center, 7g means one CSS pixel toward the top of the map covers 7 ground metres. A 700 m stretch along that direction spans about 100 CSS pixels near the center. Use 3.5g to make the same stretch appear twice as long on screen. Coverage and map content can vary across viewers.
Reference zoom · z imports or exports a known zoom on the shared 256 CSS-pixel Web Mercator ladder. SDKs may use a different ladder. At the same center and heading, adding one level doubles the screen size of nearby features. Either scale field works with any supported coordinate tag. Include at most one. Leave both out to share just the place. Why the format supports both
Heading: h is the direction at the top of the map, in degrees. It counts clockwise from true north, not magnetic north: 0h is north, 90h east, 180h south and 270h west. Leave it out for 0°, with true north at the top.
| Value | What it opens |
|---|---|
map:47.047,8.474,7g |
A north-up map at Rigi, at 7 ground metres per CSS pixel. |
map:47.080826,8.579398 |
A place only. The viewer centers on it and picks the zoom. |
map:47.047,8.474,13.893z |
Approximately the same view at Rigi, specified as reference zoom. |
map:47.080826,8.579398,9.3971g,11.6h |
A Wildspitz map turned so that 11.6° clockwise from true north is at the top, for example along a valley or a route. |
map:epsg:2056:2678675.4,1211181.8,7g |
The Rigi view with its center in Swiss LV95, easting first and northing second. |
map:epsg:2193:5380181.71,1558376.32,13z |
New Zealand Transverse Mercator 2000 center in metres, with northing first and easting second. |
The diagram shows a fresh ground-resolution share with an untagged WGS84 center.

Camera at a glance
Section titled “Camera at a glance”cam:47.047,8.474,1800,90h,45t places the eye 1,800 metres above mean sea level, facing east and tilted 45° up from straight down.
view=cam:<latitude>,<longitude>,<height>[,<heading>h][,<tilt>t][,<roll>r][,<fov>f]The camera’s horizontal position follows the same CRS rules as a map center. Horizontal position · Camera fields
view=cam:epsg:<code>:<axis1>,<axis2>,<height>[,<heading>h][,<tilt>t][,<roll>r][,<fov>f]The number after the horizontal pair gives the eye’s height above mean sea level. If both axes use the same linear unit, the height uses that unit. Otherwise it uses metres, as in a WGS84 latitude and longitude link. It carries no letter.
Heading: h is the direction the camera faces, in degrees. It counts clockwise from true north, not magnetic north: 0h is north, 90h east, 180h south and 270h west.
Tilt: t counts up from straight down, in degrees: 0t looks at the ground, 90t at the horizon and 180t straight up.
Roll: The optional r field banks the camera, in degrees. A positive r banks to the right, as an aircraft does in a right turn, and a negative r banks to the left. A viewer without roll control can omit r from fresh captures.
Lens (field of view): f is the angle the view covers from corner to corner, in degrees. A small value is a zoomed-in view and a large one is wide. Leave it out and the viewer uses its own lens.
As a flat map: A viewer that opens a camera as a flat map uses its own terrain or looks up the ground height. Camera to map
| Use case | Value | What it opens |
|---|---|---|
| Top view (2D) | cam:47.080826,8.579398,11006.3 |
A camera looking straight down with true north at the top. The viewer picks the lens. |
| Rotated top view (2D) | cam:47.080826,8.579398,11006.3,11.6h |
The same view turned so that 11.6° clockwise from true north is at the top, for example along a valley or a route. |
| Exact top view (2D) | cam:47.080826,8.579398,11006.3,11.6h,68.4f |
The same rotated top view with the sender’s lens, so it shows the same ground on another screen. |
| Terrain view | cam:47.082215,8.578901,1578.2,160.4h,75.6t |
A tilted view across the valley. The viewer picks the lens. This is what a link without a lens field converts to. |
| Exact terrain view | cam:47.082215,8.578901,1578.2,160.4h,75.6t,68.4f |
The same tilted view with the sender’s lens. This is the usual share from a 3D viewer. |
| Panorama | cam:47.082215,8.578901,1578.2,180h,90t,60f |
From the same spot, looking south at the horizon with a 60° lens. |
| Banked flight view | cam:47.08,8.57,1850,95h,80t,25r,120f |
A paraglider, aircraft or drone at 1,850 m, heading east and looking just below the horizon, banked 25° in a right turn, with a wide action-camera lens. |
| Swiss grid eye | cam:epsg:2056:2678675.39,1211181.8,1800,24h,34t |
An eye at 1,800 m above mean sea level, with its horizontal position in LV95. |
Other combinations are valid and are not separate use cases. A tilt without a heading faces true north. A roll while looking straight down is the same turn as a heading. A camera looking straight up, at 180t, is an edge case for viewers that draw the sky.
Heading, tilt and roll default to zero. The lens has no default. Roll is optional and not every viewer can use it. A viewer without roll, such as one built on the ArcGIS camera, deck.gl or Apple MapKit, shows a level image and reports that it dropped the roll. Roll comparison
| Field | Left out means |
|---|---|
h heading |
0°. The camera heads true north. |
t tilt |
0°. The camera looks straight down. |
r roll |
0°. The image is level. |
f field of view |
Lens not specified. The viewer uses its own and reports it. |
The diagram shows the untagged WGS84 form.

Payload
Section titled “Payload”The prefixes map: and cam: have fixed meanings. A reader rejects any other prefix.
The grammar below applies to the decoded text. Each quoted token is literal and case-sensitive. Spaces in the grammar separate terms. The payload itself contains no whitespace.
view = map | camera ;map = "map:", position, { ",", map-field } ;map-field = number, ("g" | "z" | "h") ;camera = "cam:", position, ",", number, { ",", camera-field } ;camera-field = number, ("h" | "t" | "r" | "f") ;position = [ crs-tag ], number, ",", number ;crs-tag = "epsg:", nonzero, { digit }, ":" ;number = ["-"], digit, { digit }, [".", digit, { digit }] ;digit = "0" | nonzero ;nonzero = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;Use finite, plain decimals with ASCII digits. Accept more digits than the default precision. Read suffix fields in any order within their type. A CRS tag may appear once, immediately after the view type. The code is a positive decimal integer with no leading zero. Invalid input includes malformed syntax, repeated fields, a map with both g and z, missing required fields and values outside ranges defined by this spec. CRS and position support
When serializing a value, remove extra leading and trailing zeros and any decimal point left without digits after it. Write signed zero as zero. When reserializing an existing value, retain significant digits. Copying an existing link preserves its payload verbatim, so 7.000g stays 7.000g. For a new capture, follow the rounding and wrapping rules under Precision.
Horizontal position
Section titled “Horizontal position”For both view types, an untagged pair means WGS84 geodetic latitude, longitude in decimal degrees. An explicit epsg:4326: has the same meaning. Write new WGS84 views untagged. Preserve an explicit tag when copying an existing view. Latitude is in [−90, 90] and longitude is in [−180, 180).
A tag identifies a two-dimensional horizontal CRS in the EPSG registry. Read <axis1> and <axis2> in the registered order, direction and units of that CRS. The units must allow plain decimal coordinates, such as degrees, grads, metres or feet. Camera height uses the pair’s shared linear unit when there is one, with mean sea level as its height reference. EPSG examples and units
| Tag | CRS | <axis1> |
<axis2> |
Unit |
|---|---|---|---|---|
epsg:4326: |
WGS84 | Latitude | Longitude | Degrees |
epsg:2056: |
CH1903+ / LV95 | Easting | Northing | Metres |
epsg:21781: |
CH1903 / LV03 | Easting | Northing | Metres |
epsg:3857: |
WGS84 / Pseudo-Mercator | Easting | Northing | Metres |
epsg:2193: |
NZGD2000 / New Zealand Transverse Mercator 2000 | Northing | Easting | Metres |
The app chooses which CRS to emit. A registered 2D horizontal engineering grid or deprecated CRS can be used under the same rules. A reader can recover the tag and pair from the syntax before resolving the code. Resolve the code in the EPSG namespace. On open, report unsupported CRS if the tagged code is unknown, its axes cannot be represented by the two-number horizontal pair, or the receiver lacks the axis order, direction, units or transform it needs. For either an unsupported CRS or an unsupported position, keep the current view.
For a tagged geographic pair, check the latitude axis in its registered unit. Its magnitude can be at most a quarter turn (90° or 100 grads). When converting to WGS84, require a finite latitude in [−90°, 90°] and a finite longitude, then wrap that longitude into [−180°, 180°). The input ranges above still apply to untagged and explicit WGS84 pairs. Report unsupported position if a resolved CRS cannot represent the supplied point, the operation fails, or a result is non-finite, or the resulting latitude exceeds its valid range.
A projected pair must identify the supplied position through the conversion. Report unsupported position when the projection folds or wraps the pair onto a materially different grid point. A receiver can check the projection domain or convert back with the same operation, allowing for numerical error in the source axis units. If the point converts consistently and the receiver knows it lies outside the published area of use, open it and report uncertain accuracy.
On capture from a repeating map, normalize the horizontal position to the primary world before formatting it. For EPSG:3857, use easting in [−πa, πa), where a = 6,378,137 m. On read, a supplied easting in another world copy is an unsupported position. This rule concerns easting and applies independently of the reference zoom latitude limit.
| Example | Result |
|---|---|
map:EPSG:2056:2678675.39,1211181.8 or map:epsg:02056:2678675.39,1211181.8 |
Invalid syntax. Use lowercase epsg: and a code without a leading zero. |
map:47,8,epsg:4326 or map:epsg:4326:epsg:4326:47,8 |
Invalid syntax. A tag appears at most once, before the pair. |
map:epsg:5513:1043009.5,742805.84 |
Southing, westing. The same point is map:epsg:5514:-742805.84,-1043009.5 in easting, northing order. |
cam:epsg:4979:47.047,8.474,1800 or cam:epsg:4978:1,2,1800 |
Unsupported CRS. The codes identify an ellipsoidal 3D and a geocentric 3D CRS respectively. |
map:epsg:4226:6,-5 |
Unsupported CRS. Its axes require formatted degrees, minutes and seconds with hemisphere letters. |
map:epsg:102100:943321.36,5949749.05 |
Unsupported CRS. ArcGIS uses 102100 as an Esri identifier for Web Mercator. Its EPSG code is 3857. |
map:epsg:2056:0,0 |
Converts back to within about 1 mm of the input in PROJ. Open it with an accuracy notice when the receiver knows the LV95 area of use. |
map:epsg:2056:10000000,10000000 |
Unsupported position. PROJ gives a finite geographic result that converts back more than 9,000 km from the supplied pair. |
map:epsg:3857:30000000,0 |
Unsupported position on read. A writer capturing this world copy at default precision emits map:epsg:3857:-10075016.7,0. |
map:epsg:4258:95,10 |
Unsupported position. The registered latitude axis is in degrees. |
Heading at a pole
Section titled “Heading at a pole”At a geographic pole, a supplied longitude sets the reference meridian for the local frame. Express that meridian in WGS84 for the reference geometry. If the coordinate pair cannot distinguish meridians at the pole, use WGS84 longitude 0° (Greenwich) for that frame, ignoring any longitude generated by the inverse projection. For example, cam:epsg:3413:0,0,1200,90h has the same eye and orientation as cam:90,0,1200,90h. At 0.05,0 in the same grid, the eye is off the pole and the transformed longitude of 45° sets its local frame. NSIDC polar stereographic projection
Coordinate epoch
Section titled “Coordinate epoch”The payload carries no coordinate epoch. Before transforming a position, check whether the selected operation requires the observation epoch of the input coordinate. Even in a dynamic reference frame, some operations work without one. For an operation that requires one, such as EPSG:8880 from ITRF2014 to ETRF2014, use a separately supplied epoch for this pair and report its source. If the operation needs an epoch and none was supplied, report coordinate epoch required and keep the current view, even when the library would return coordinates using a default. The frame reference epoch, the operation’s central epoch and the opening date are all unsuitable substitutes. PROJ operation metadata · OGC coordinate metadata, section 16
Flat map
Section titled “Flat map”| Field | Value and convention | If absent |
|---|---|---|
map: |
Fixed prefix. The position is the map center. | Invalid. |
| Center | Required horizontal pair. Use <latitude>,<longitude> by default or <axis1>,<axis2> with an EPSG tag. Horizontal position |
Invalid without the pair. |
g |
Ground resolution as a finite positive plain decimal. The unit is WGS84 ellipsoidal ground metres per CSS pixel along screen-up at the center, after applying heading. This unit is independent of the horizontal CRS and its units. | Use z if present. Otherwise the scale is unspecified. |
z |
Reference zoom as any finite plain decimal. Negative and fractional values are valid. The zoom-zero world is 256 CSS pixels wide in EPSG:3857. | Use g if present. Otherwise the scale is unspecified. |
h |
Heading. The direction at the top of the screen in degrees clockwise from true north, in [0, 360). | Exactly 0°. |
Write at most one scale field before nonzero h. Share current view captures what the settled viewer shows and writes g by default when scale is available. This applies even if the user has not moved the map since opening a link. If the viewer snapped or clamped the scale, capture the scale it applied. Copy original link preserves the original payload, including its scale field and formatting.
Use z for explicit reference-zoom input or when the caller selects reference-zoom output for a fresh capture. A host can select that output while deploying reader support to installations that only understand z. For a fresh z capture, convert the settled ground resolution at the captured center and heading to reference zoom, then round it. If this conversion is unsupported, report unsupported shared scale. The host may offer a g share or a place-only link. Deploy support for reading g before switching the default writer in those installations.
Use true north for h with any CRS. An adapter converts between grid headings and true headings at the center. LV95 example
A map: without either scale field is a place. If the viewer supports the location, center on it. Keep the current zoom if a map is already open, otherwise use the viewer’s own zoom. Report the applied ground resolution or native zoom when available. In 3D, look at the point from the viewer’s own distance. If the viewer cannot show the center, report unsupported position. A map field requires its suffix. Accept explicit zero heading.
Measuring and applying ground resolution
Section titled “Measuring and applying ground resolution”Ground resolution is the local rate of change of horizontal WGS84 ellipsoidal distance per CSS pixel along screen-up at the center of the usable map area, after applying the heading. Use an analytic local scale calculation when the projection and view expose one. Otherwise, sample equal CSS-pixel offsets above and below the center and divide the ellipsoidal distance between the horizontal positions by their total CSS-pixel separation. A local east and north calculation can approximate this distance for short samples.
Use a short enough segment to estimate the scale at the center, even for a world view. Compare successively smaller offsets, including fractional CSS pixels where supported, to check that the estimate is stable at the required precision. A one-sided sample can estimate the same local rate at a projection boundary where only one side is valid. Account for padding and convert CSS positions into the SDK’s pixel coordinate system before sampling. Near the date line, sample the same world copy. If the SDK cannot provide a reliable estimate, report the limitation. Ground resolution along screen-right or away from the center can differ. Coarse-zoom example
On open, apply the center and heading, then match the requested screen-up resolution in the viewer’s active projection. A g share supplies that resolution directly. A z share supplies it through the conversion below at the linked center and heading. If the viewer limits heading, keep the requested resolution as the scale target, use the applied heading for readback and report the heading change. Check the scale after the view settles. When snapping or zoom limits prevent an exact match, keep the available scale and report the requested and applied resolution with the reason. Report unsupported shared scale when the requested scale has no usable conversion or the viewer cannot apply a finite positive approximation. Use the place behavior if the viewer offers that fallback. If the sender cannot measure the resolution, report the limitation and offer a place-only share. A scale match is judged on screen-up. Report directional differences when they affect the view. A horizontal scale bar can correctly report a different distance. Framework checks
Keep local screen-up resolution as the drawing area changes. A shorter viewport can show less of a route at the same scale. To keep the whole route visible, fit its extent through the host’s area-fit feature. Basemap labels, feature visibility and imagery sharpness depend on the viewer’s data and style. The viewer chooses whether to hold ground resolution during live panning. Directional scale and coverage examples
Reference zoom and ground scale
Section titled “Reference zoom and ground scale”The reference uses the OGC WebMercatorQuad scale ladder. Fractional zoom follows the same formula as whole zoom. Each extra level halves the projected metres per CSS pixel. The shared zoom can be outside a viewer’s own zoom range. Report any limit the receiver applies. WebMercatorQuad
The reference zoom conversion is supported through the WebMercatorQuad latitude limit of ±atan(sinh(π)) radians, about ±85.0511287798°. Beyond that limit a map: with z is valid. Report unsupported shared scale. The viewer may show the location as a place if it supports the center. A g value can carry scale there if the viewer supports the position and can realize the requested resolution.
For WGS84 geodetic latitude φ at the center and true heading h, let a = 6,378,137 m and f = 1 / 298.257223563 be the WGS84 ellipsoid constants. For a center given in another CRS, get φ from the equivalent WGS84 point. Use radians in the formulas:
e² = f × (2 − f)w = sqrt(1 − e² × sin²(φ))N = a / wM = a × (1 − e²) / w³kE = (N/a) × cos(φ)kN = (M/a) × cos(φ)k = 1 / hypot(sin(h)/kE, cos(h)/kN)
projected metres per CSS pixel = (2 × π × a) / (256 × 2^z)ground metres per CSS pixel along screen-up = projected metres per CSS pixel × kN is the prime vertical radius of curvature. M is the meridian radius of curvature. The k factor converts a projected distance in the reference map to a ground distance along screen-up at the center. This measure uses the WGS84 ellipsoid. The sender’s terrain or target projection can give a different scale away from the center. Report unsupported shared scale if the receiver cannot calculate a finite positive resolution.
To convert ground resolution to explicit reference zoom within the reference latitude limit, divide the ground resolution by k to get projected resolution. Then calculate z = log2((2 × π × a) / (256 × projected resolution)). Moving the center to another latitude can change the ground resolution of the same z. The same g requests the same local ground resolution. Ground-resolution comparison · North-up lookup table
Camera
Section titled “Camera”A camera describes the eye, the position from which you look. The coordinate pair and height always refer to that position.
| Field | Value and convention | If absent |
|---|---|---|
cam: |
Fixed prefix. The position and height give the eye. | Invalid. |
| Horizontal eye position | Required horizontal pair. Use <latitude>,<longitude> by default or <axis1>,<axis2> with an EPSG tag. Horizontal position |
Invalid without the pair. |
| Height after the pair | Signed height of the eye above mean sea level, with no suffix. If both horizontal axes use the same linear unit, use that exact unit. Otherwise use metres. Resolve the axes before interpreting a tagged height. Missing unit metadata yields unsupported CRS. One US survey foot is exactly 1200/3937 m and one international foot is exactly 0.3048 m. Sea-level models differ a little, by 0.6 m at Wildspitz between two common ones. The format does not pick one. | Invalid. |
h |
Heading. The direction the camera faces in degrees clockwise from true north, in [0, 360). With zero roll it is the direction at the top of the view. | Exactly 0°. |
t |
Tilt in degrees from local nadir (straight down), in [0, 180]. 0° points down, 90° points along the local horizontal and 180° points up. | Exactly 0°. |
r |
Roll in degrees about the forward axis, in [−180, 180). Positive roll turns the image-up vector toward the unrolled screen-right direction. Optional. A viewer that cannot roll shows a level image and reports the change. | Exactly 0°. |
f |
Full diagonal perspective field of view in degrees strictly between 0 and 180. The diagonal runs between opposite corners of the centered image. | Lens unspecified. |
Write suffixes in h,t,r,f order. Accept explicit zero heading, tilt and roll, and omit those fields when writing zero. When capturing a new view, express roll in [−180, 180) and omit it if its absolute value before rounding is less than 0.5°. Apply any roll that a link gives. When writing an existing share back unchanged, keep every nonzero roll and the diagonal FOV at their original precision. At straight up or down, heading and roll set which direction appears at the top of the image. Keep them as separate fields when writing the view. More than one pair can give the same image-up vector there.
| Example | Interpretation |
|---|---|
cam:47,8,1200,68.4f |
A straight-down eye that keeps a 68.4° diagonal field of view when the screen changes shape. |
cam:47,8,1200,180t,12r,60f |
A skyward, rolled eye with a diagonal lens. |
cam:47,8,1200 |
An eye 1,200 m above sea level, looking straight down with true north at screen top and an unspecified lens. |
cam:epsg:2227:6272553.48,2097098.59,32808.333 |
An eye about 10,000 m above mean sea level. All three position values are in US survey feet. |
cam:47,8 |
Invalid. A camera needs a height. |
camera:47,8,1200,20h |
Invalid. The prefix is not map: or cam:. |
cam:47,8,1200,38y |
Invalid. A shared lens uses the diagonal suffix f. |
Geometry
Section titled “Geometry”For the reference geometry, express the eye’s horizontal position in WGS84 and calculate its position in Earth-centered, Earth-fixed (ECEF) Cartesian metres on the WGS84 ellipsoid. Calculate geodetic east, north and up unit vectors E, N and U at the eye. Geodetic up is perpendicular to the ellipsoid. Read h, t and r in that local frame. At a pole, use the reference meridian rule to set the frame. Use radians in the formulas.
A = N cos(h) + E sin(h)F = A sin(t) − U cos(t)V = A cos(t) + U sin(t)I = V cos(r) + (F × V) sin(r)R = F × IF points from the eye into the scene. I is image-up. R is image-right. At nadir, F = −U. With zero roll, the heading points toward the top of the image. The formulas also work when the camera points straight up (zenith).
Let P be the eye position in ECEF. The point q metres along the central viewing ray is P + qF. A viewer that needs a focus uses the point where that ray meets the ground.
On import, read the source height unit independently of the source horizontal axes. Convert the eye height to the receiving unit. A viewer whose terrain uses sea-level heights can then use it directly. For ECEF, convert to metres and add the geoid height at the eye. An ellipsoid-based viewer uses the same sum in its own unit. Report the geoid model used, such as EGM2008. When writing the view with a different horizontal CRS, convert the height to the new link’s unit. If a source height has another reference, convert it through the adapter. Report any assumed height reference or change needed to keep the eye above terrain. Let adapters convert projected positions, grid headings and heights.
Lens and viewport
Section titled “Lens and viewport”Save a known centered perspective lens as diagonal FOV f, even when it matches the source viewer’s default. Convert a horizontal or vertical angle using the source viewport. If only a horizontal or vertical angle is known and the source aspect ratio is unavailable, omit f and report the missing information. A missing f leaves the lens unspecified.
On open and on resize, keep the eye, orientation and saved diagonal angle. Derive the angles the viewer needs using the receiving viewport. Copying the share after a resize keeps its original value. Recalculate the viewer’s camera settings if changing its lens also changes the eye. Report the applied angle if the viewer chose or limited it.

Let W and H be the positive width and height of the usable drawing area in CSS pixels. Let D be its diagonal. The full horizontal angle fovX uses the left and right edge midpoints. The full vertical angle fovY uses the top and bottom edge midpoints. The full diagonal angle fovD uses opposite corners. Each angle is measured between rays from the eye. Use radians in the formulas below. The three ratios are equal for a centered perspective lens.
D = hypot(W, H)tan(fovD/2) / D = tan(fovX/2) / W = tan(fovY/2) / Htan(fovD/2) = hypot(tan(fovX/2), tan(fovY/2))Divide the tangent of half the supplied angle by its matching dimension. Multiply by the dimension for the angle you need, take arctangent and double it. If both directional angles describe the same centered image, the last equation gives the diagonal directly. Measure the viewport the angle describes. If controls or padding crop or shift that viewport, account for the difference and report any framing change.
Viewport with 68.4f |
Horizontal FOV | Vertical FOV |
|---|---|---|
| 1280 × 720 | 61.28° | 36.85° |
| 390 × 844 | 31.82° | 63.34° |
With f, a centered subject keeps the same size relative to the viewport diagonal. The screen shape still determines what fits at the edges. R9 and verification · Framing decision and evidence
One top view in flat 2D and 3D
Section titled “One top view in flat 2D and 3D”

The converter diagram starts from the Wildspitz 13.468z example below. Its scale is about 9.3965 m/CSS px, roughly 0.006% below the 9.3971 m/CSS px in the flat-map capture shown earlier. With a plane at 857.5 m and a 68.4f lens at 1280 × 720, the converter’s camera height is 11,010.4 m. The camera-to-map example below uses the independently captured camera at 11,006.3 m. A fresh flat share uses the scale measured in the receiving map.
Map to camera
Section titled “Map to camera”Use the map center and heading. If the link has neither scale field, use the place behavior described under Flat map. If the shared scale is unsupported, report it and use the same place behavior if the viewer offers that fallback. For a supported scale, choose a plane at the rendered surface height at the center, perpendicular to local geodetic up. Use sea level if the viewer shows no terrain. Use the map’s ellipsoidal ground scale s as an initial estimate of metres per CSS pixel on that plane. With the receiving viewer’s effective vertical FOV and usable height H in CSS pixels, estimate the eye distance above the plane:
distance = s × H / (2 × tan(fovY/2))Place the eye that distance above the center along geodetic up. Keep the heading and set tilt and roll to zero. A metre on an elevated plane corresponds to a slightly different distance on the ellipsoid. An adapter that uses the estimate directly reports that approximation when it matters to the framing. Report the plane height, its reference, the lens and any terrain or camera limits. If the viewer cannot determine a plane or lens, report the missing information and any framing it chooses. With a receiving lens of 68.4f, the Wildspitz reference-zoom example map:47.080826,8.579398,13.468z,11.6h puts the eye about 10,153 m above the plane at 1280 × 720 and 6,428 m at 390 × 844. Both give about 9.3965 m/CSS px on the plane along screen-up.
Camera to map
Section titled “Camera to map”?view=cam:47.080826,8.579398,11006.3,11.6h,68.4fIn 3D, set the eye height, orientation and lens from the string. In flat 2D, find the focus. It is the point where the central viewing ray meets the ground. A viewer with terrain uses its rendered surface. A viewer without terrain looks up the ground height or assumes one. Report the ground height used and where it came from. Center the map on the focus. Project image-up onto the local horizontal plane to get the map heading. Estimate the flat-map scale from the span of the plane through the focus, perpendicular to the viewing ray. distance runs from the eye to the focus.
spanY = 2 × distance × tan(fovY/2)spanX = 2 × distance × tan(fovX/2)plane metres per CSS pixel = spanY / H = spanX / WA straight-down camera has its focus directly below the eye. The distance is the eye height minus the ground height. With the ground at 857.5 m, the example eye is 10,148.8 m above it. That gives a diagonal span of 13,794.23 m at either size. At 1280 × 720 the vertical span is 6,762.78 m and the estimated scale on that plane is 9.3927 m/CSS px. At 390 × 844 the vertical span is 12,522.00 m and the scale is 14.8365 m/CSS px. Screen-up is 11.6° clockwise from true north. The scale changes in proportion to the distance. Assuming the ground at sea level here shows about 8% more ground per pixel. Terrain, projection, padding and zoom steps can change what the viewer shows. Convert the center and heading to the receiving viewer’s settings and use the plane scale as an initial estimate. For a fresh flat share, measure the settled map’s WGS84 ellipsoidal ground resolution before writing g. A metre on an elevated camera plane differs slightly from a horizontal metre on the ellipsoid.
For a tilted camera, center the flat map on the focus. Project image-up onto the local horizontal plane. Use the span of the perpendicular plane to estimate the flat scale. If image-up gives no usable heading, choose one and report the choice. If the lens is absent, the viewer can use its effective lens. Report what it inferred. A tilted ray is sensitive to the ground height. If the viewer cannot find where the ray meets the ground, it can mark the eye position alone. A skyward camera has no focus. A fresh g capture uses the scale of the settled flat view, including beyond the WebMercatorQuad latitude limit. If the viewer snaps or clamps the scale, keep the applied view and report its achieved resolution. If it cannot realize a finite positive scale, report unsupported shared scale and offer a place-only fallback when the focus is supported.
Copying the original link keeps its payload. Saving a new share uses the current mode and view. A new flat share encodes the center, scale and heading as map: using the flat-map capture rules.
URL carrier
Section titled “URL carrier”Use ?view= for either view type. A host can use #view= when it controls the fragment parameters and only the browser needs the value. Each host writes one form. Both forms decode to the same bytes and meaning. The value’s prefix identifies the type. Naming decision
https://example.org/map?view=map:47.080826,8.579398,9.3971g,11.6hhttps://example.org/map?view=map:epsg:2056:2678675.4,1211181.8,7ghttps://example.org/map?view=map:epsg:2056:2678675.39,1211181.8,13zhttps://example.org/map?view=cam:47.080826,8.579398,11006.3,11.6h,68.4fhttps://example.org/map#view=cam:47.080826,8.579398,11006.3,11.6h,68.4fSplit the query or host-controlled fragment into parameters. Decode each name and value once. Match the decoded key case-sensitively. Only lowercase view carries a shared view. Treat raw and percent-encoded colons and commas the same way, including the colons in a CRS tag. The shared position gets its CRS from the payload alone. Reject duplicate view parameters. Reject a link that gives a view in both the query and the fragment. Report invalid input and keep the current view. Hosts can use separate parameters for routes, layers and scenes. Adapters write links in the receiving viewer’s format.
ArcGIS Scene Viewer also writes cam:, under its own key viewpoint, as viewpoint=cam:longitude,latitude,height;heading,tilt. That is a different format with longitude first and a semicolon. A reader takes a shared view only from the key view and rejects a value with a semicolon. An adapter converts between the two. Link envelope comparison
The counts below include ?view= or #view= where shown. The encoded column escapes colons and commas.
| Example payload | Value length | Raw carrier and value | Encoded carrier and value |
|---|---|---|---|
map:47.080826,8.579398,9.3971g,11.6h |
36 | 42 | 50 |
cam:47.082215,8.578901,1578.2,160.4h,75.6t,68.4f |
48 | 54 | 66 |
cam:47.080826,8.579398,11006.3,11.6h,68.4f |
42 | 48 | 58 |
map:epsg:2056:2678675.4,1211181.8,7g |
36 | 42 | 52 |
map:epsg:2056:2678675.39,1211181.8,13z |
38 | 44 | 54 |
cam:epsg:2056:2678675.39,1211181.8,1800,24h,34t |
47 | 53 | 67 |
The query reaches the server and can support redirects and previews. The fragment carries the view in the browser without sending it to the server. Carrier review and HTTP check
Browser history
Section titled “Browser history”The host decides whether to keep the address bar in sync as the view moves. If it does, use history.replaceState() for routine view changes. Use history.pushState() when a view is meant to be a separate Back and Forward stop. Keep unrelated URL parameters and history state. On Back or Forward, apply any shared view in the destination URL and preserve that history entry during restoration. Copying a share link needs no history entry.
Precision
Section titled “Precision”Use this precision when capturing a new view.
| Field | Precision | Step |
|---|---|---|
| Horizontal coordinates in degrees | 6 decimal places | About 0.1 m |
| Camera height in metres | 1 decimal place | 0.1 m |
| Map ground resolution | 5 significant digits | Varies with scale |
| Map reference zoom | 3 decimal places | 0.07% of the scale |
| Heading, tilt, roll and lens | 1 decimal place | 0.1° |
For horizontal axes in other units, use the fewest decimal places giving a step of at most 0.000001° for angles or 0.1 m for lengths, per axis. These defaults describe formatting precision. The source and coordinate operation determine accuracy. For height in another unit, use the fewest decimal places whose rounding step is at most 0.1 m, or keep extra digits when needed. Rewriting the same view preserves its CRS tag and coordinate precision apart from removing redundant zeros. Six WGS84 coordinate decimals set the limit for the Wildspitz precision check. Rounding any one field then moves the restored view by about one CSS pixel at most on a 1280 × 720 screen. Together they moved the Wildspitz example by up to 1.7 pixels.
When capturing a new view, omit roll if its magnitude before rounding is below 0.5°. For example, omit both 0.46° and −0.46°, and keep both 0.5° and −0.5°. Small rolls usually appear when a viewer measures up in a different way. Omitting them turns the picture by under half a degree. The center stays and a corner moves by up to 6.4 pixels. Roll comparison
Round each field once to the chosen precision. After rounding, wrap WGS84 longitude and roll into [−180, 180) and heading into [0, 360). For example, a WGS84 longitude of 179.9999996° becomes -180, a heading of 359.96° becomes zero and is omitted, and a roll of 179.96° becomes -180r. Remove extra zeros and omit zero heading, tilt and roll after wrapping.
Extra digits
Section titled “Extra digits”A reader accepts more digits than the table gives. A link that is passed on unchanged keeps its digits. For a new capture, keep enough extra digits if rounding would put f at 0° or 180°, move a primary-world easting outside its interval, or move the center of a supported z view beyond the WebMercatorQuad latitude limit.
For a new map or camera, compare the WGS84 reference meridians of the unrounded and rounded horizontal pairs, using the pole rule for each. If the shortest angle between the meridians exceeds 0.05° (half the default heading step), keep more coordinate digits until it is within 0.05°. This also applies when both pairs are off the pole. For example, capture an EPSG:3413 eye 4 cm along the positive easting axis as cam:epsg:3413:0.04,0,1200,90h. Rounding the pair to 0,0 would change its reference meridian from 45° E to Greenwich and turn the reopened image by 45°.
A writer can also add precision to preserve framing in these cases.
- Objects very close to the camera. Position rounding moves an object 60 m away by one pixel and an object 10 m away by about 6 pixels.
- A very narrow lens. With an 8° lens the angle rounding moves the view by about 9 pixels.
- A flat map zoomed in very far. Position rounding reaches one pixel at zoom 21 and 2 pixels at zoom 22.
Between different viewers, terrain, height models, zoom steps and tilt limits change the view by more than this rounding. Close views calculation
Map precision
Section titled “Map precision”Round g to five significant digits and write a plain decimal without an exponent. The rounding error is at most about 0.005% of ground resolution. For example, the Wildspitz capture writes 9.3971g and a close view at 0.05248761 m/CSS px rounds to 0.052488g.
Three decimals in z change the scale by at most about 0.0347% from zoom rounding alone. The Wildspitz 13.468z gives about 9.39653 m/CSS px compared with 9.3971 m/CSS px before rounding. With the same center and heading, that difference moves a corner by about 0.045 CSS px in a 1280×720 map. Rounding center or heading also changes framing. Check the total error where the landmarks are. Rounding and screen-shape comparison · Calculation
Camera precision
Section titled “Camera precision”| Quantity | Step at default precision | Maximum rounding of one value |
|---|---|---|
| Latitude and longitude | 0.000001° each. Near Wildspitz, about 11.1 cm north–south and 7.6 cm east–west. | About 5.6 cm north–south and 3.8 cm east–west there. Longitude spacing varies with latitude. |
| Height | At most 0.1 m, expressed in the link’s unit | At most 0.05 m. |
| Heading, tilt, roll and lens | 0.1° | 0.05° each for fields kept in a new capture. |
Each value can move by up to half its rounding step. When you calculate a point along the viewing ray, errors in eye position and direction combine. The effect of direction error grows with distance. Height conversion, terrain, projection and viewer limits can add more error.
Wildspitz precision check
Section titled “Wildspitz precision check”We compared the tilted example with an unrounded camera. The check takes sea level as the WGS84 ellipsoid surface. The numbers below give latitude, longitude, height, far test distance, heading, tilt and the original vertical FOV. The camera is level. We converted that angle to diagonal at 1280 × 720 before rounding and kept the diagonal fixed across viewport sizes. At each depth, we placed five landmarks on a plane perpendicular to the viewing ray. One was at the center and four were at screen-normalized positions (±0.75, ±0.75). We measured their screen positions at depths of 100 m and 2,654.9 m. Viewports are 1280 × 720 and 390 × 844 CSS px. Wildspitz viewer comparison
47.08221538669956,8.578900716241673,1578.1675722971559,2654.9,160.36513352482734,75.57683777073791,36.8698976Rounding moved the eye by 0.058 m and a point 2,654.9 m along the viewing ray by 1.92 m. The viewing direction changed by 0.041°. Calculation
| Distance | Max movement in landscape | Max movement in portrait |
|---|---|---|
| 100 m | 1.711 CSS px | 1.075 CSS px |
| 2,654.9 m | 1.247 CSS px | 0.729 CSS px |
A second check with a vertical lens compared three profiles. Its reference eye height already used decimetres. With three angle decimals the plain list of six camera numbers took 46 characters and landmarks moved by up to 0.403 CSS px at 100 m. With one angle decimal, the default, it took 41 characters and they moved by up to 1.197 CSS px at 100 m and 1.44 CSS px at 2,654.9 m. With five coordinate decimals, whole metres and whole degrees it took 30 characters and they moved by up to 16.1 CSS px. The table above also counts eye height rounding. Both checks use controlled geometry. Precision alternatives and evidence · Second calculation
Adapter results
Section titled “Adapter results”When this spec says to report a result, return it from the adapter to the viewer that called it. Include the outcome (applied as requested, applied with changes, or unable to open), the view actually applied when known, and any field the adapter changed, inferred or could not use. For each affected field, include the requested value if present, the value used if any, and the reason. Include relevant coordinate and height references, the source of an inferred plane or lens, and any limit the viewer applied.
Show the applied view when available. Tell the person opening the link about any approximation, fallback or failure that affects what they see. For example, when an adapter drops a requested 12° roll, return the requested roll, the applied 0° value and the lack of roll support so the viewer can explain why the image opened level. The adapter interface chooses the report’s representation.
When an adapter generates a native link, return the link and any changes made during conversion. Report whether opening the link has been verified. Include an observed view only when a viewer opened the link and the result was checked.
Use the fields the viewer supports. If it measures pitch from horizontal, convert tilt to that angle. Interpret the link’s horizontal pair using its CRS and axis order before converting to the viewer’s reference system and coordinate order. When changing orientation frames, transform both forward and image-up vectors. Adapter research · Verification cases
If the viewer cannot use or transform the horizontal pair in its declared CRS, return unable to open with the CRS code. Give unsupported CRS, unsupported position or coordinate epoch required as the reason. Keep the current view. If a transform involves a material approximation, report it along with the operation used when known. When importing a provider identifier, use its registered EPSG equivalent. For ArcGIS, use latestWkid when it identifies that EPSG equivalent. Its Web Mercator example pairs wkid: 102100 with latestWkid: 3857. Esri spatial reference documentation
For a z share on the same Web Mercator ladder with a 512 CSS-pixel zoom-zero world, the native zoom is z − 1 when the linked center and heading can be applied. In other cases, apply the requested ground resolution along screen-up and check the result. Measure heading from true north, which can differ from grid north. Scale and heading in the SDKs
Some viewers supply a focus, viewing direction and distance. Convert the source direction and image-up to ECEF using the source’s frame. With a focus Q, forward vector F and distance q, calculate the eye as Q − qF. Express the same forward and image-up vectors in the eye’s local frame. A viewer that takes a focus finds it where the viewing ray meets its rendered surface. Report the pivot it used.