Skip to content

Shared view requirements

Save a view as one link so you can reopen it later. Share that link so someone else can reopen it too. Save the flat map or 3D camera you were using. The same link can also open in the other mode when the viewer can restore useful framing. Shared view specification · Decision record

ID Requirement How to evaluate it
R1 Reopen and share the same view. Save it as one link with one copyable value. The value identifies the saved view type and can be pasted on its own. Save a link, close the viewer and reopen the link. Then share it and check that someone else can reopen the same view. Test each value on its own and with raw or escaped URL separators.
R2 Restore the camera the sender chose. Keep the eye, orientation and lens when given. The horizontal coordinates and height always give the camera’s own position. Restore a tilted view, a banked camera and a skyward camera. Compare eye, forward and image-up in the same frame. Share the same view from two viewers with different camera controls. Check that both strings give the camera’s position.
R3 Open a shared view in either mode. A flat map can open as a straight-down camera. A straight-down camera can open as a flat map. The receiver supplies the ground height. Use a tilted camera for a flat map when a useful approximation is possible. Report the approximation. Open each type in 2D and 3D using the same value. Compare center, ground scale and screen-up direction in landscape and portrait. Repeat in a viewer without terrain and check what it reports.
R4 Report useful approximations. A viewer can use the fields it supports. The adapter returns what it changed, inferred or could not use, and the viewer explains changes that affect what the person sees. Check the outcome, values used and reasons for zoom steps, missing roll, chosen lens, height reference, ground height and terrain limits. If there is no useful flat view, check whether the viewer can mark the eye position. Adapter results
R5 Keep links short, readable and familiar. People should recognize and edit the main fields in each type. Height is above mean sea level and uses the horizontal axes’ shared linear unit when they have one, or metres otherwise. An untagged pair uses latitude, longitude, the order people type into a map search. Ask readers to find the map center and change how much ground the map shows. For a camera, ask them to find the eye and lens, then edit tilt. Ask them to set the eye to a summit height from a map and check where it opens. Ask them to identify the reference system, axis order and height unit of a tagged camera. Compare raw and escaped lengths at equivalent precision.
R6 Give each value one meaning. Define coordinate order, units, height reference, rotation order, lens axis and what an omitted field means. Keep those rules fixed for a given type and coordinate reference system. Try an omitted lens, a missing height, conflicting fields and an unknown prefix. Change the map’s projection and check that a tagged value keeps its meaning. Omit the tag and check that the pair follows the WGS84 rule.
R7 Make the format independent of frameworks and providers. Convert through adapters for public SDKs and existing viewer links. Start with ArcGIS Maps SDK for JavaScript. Then test MapLibre GL JS, OpenLayers, Leaflet, Mapbox GL JS and CesiumJS. Check supported fields and report gaps. Test public links separately. Include latitude,longitude, Web Mercator and a local projected grid.
R8 Save the view in the mode you are using. In the same viewer, projection and usable map area, a flat 2D share restores the center, direction at screen-up and visible ground. A 3D share restores the camera, including when it looks straight down. Share and reopen each type in its original mode. Repeat on a different screen and in another viewer. Check center, screen-up direction and recognizable features. Report changes in detail or coverage.
R9 Keep a shared camera view recognizable in portrait and landscape. Keep the eye and orientation when the screen changes shape. Keep a comparable apparent size around the center. Allow the visible area at the edges to change. Open the same tilted and straight-down shares in portrait and landscape. Share in each direction and rotate an open view. Check the camera pose, apparent size of centered landmarks and surrounding terrain kept in frame.
R10 Support locations in more than one spatial reference. A map: center or cam: eye can give its two horizontal coordinates in a named CRS. The reference, axis order, axis directions and units must be recoverable from the copyable value. The app chooses which CRS to emit and which transforms it supports. Round-trip tagged and untagged values. Check WGS84, LV95, LV03, Web Mercator and a northing-first projected CRS across readers and adapters that support them. Check axis directions and the derived camera height unit. An app reports a CRS it cannot use.

Test against public standards, SDKs and links. Use the same map and camera cases for each format that can carry them.

First check that each format meets the requirements. Rate each criterion from 0 to 5 and calculate weight × rating / 5. The weights are set in advance. Scoring remains open pending the release checks and reader trials.

Criterion Weight What earns a high score
Camera fidelity 25 Recovers eye, orientation and lens. Keeps the scene recognizable across screen shapes. Preserves precision. Handles oblique, nadir, rolled and skyward cases.
Flat and 3D top-view continuity 20 The original mode can restore the view. Either type can open in both modes with comparable framing where possible. The approach gives a clear rule for a different screen.
Framework and product interoperability 15 Converts through defined reference frames and reports losses across public APIs and viewer links.
Human readability 15 People recognize semantic groups, copy a coordinate pair and edit fields reliably. Values match what people read on maps.
Brevity 10 Uses fewer characters at comparable precision and semantic coverage, including URL escaping.
Evolution and backward compatibility 10 Existing values keep their meaning. Readers can distinguish unsupported CRSs from malformed tags, prefixes and fields.
Implementation and migration 5 The format is practical to check, convert and adopt in existing adapters.
Total 100

Camera fidelity and continuity add up to 45 points. Readability and brevity add up to 25. Compare length using the same view and precision. A shorter provider link may carry fewer fields. Record that in the compatibility check.

The decision record connects these outcomes to the format. For example, R8 describes what a flat share restores. The decision compares reference zoom with ground resolution and explains why local scale stays fixed across screen sizes. For R9, the comparison shows why camera shares use one optional diagonal field of view. Requirements to format · Shared view specification

These are checks to run before release. Use the same inputs across frameworks where they can show the view. Compare geometry with the spec’s formulas and reference values.

Test case What must hold Requirements
Optional fields Test diagonal FOV present or absent with each set of supplied or omitted heading, tilt and roll. The coordinates always give the eye. Missing orientation angles mean zero. Missing f gives no specified lens. Keep a supplied lens even if it matches the viewer’s default. R2, R6
Read and write Read the shortest valid string and a fully populated string for each type. Read optional suffix fields in any order. Include explicit zero angles, signed zero, extra zeros and more digits than the default. The writer orders suffix fields and removes redundant zeros. It preserves the CRS tag, meaning and any extra precision. A second read and write produces the same text. R1, R5, R6, R10
Capture and copy Capture a WGS84 place-only map and a camera at 47.047° N, 8.474° E with a 1,800 m eye. Expect map:47.047,8.474 and cam:47.047,8.474,1800. Copy the same values with an explicit epsg:4326: and keep that tag. Capture a place-only share of the LV95 pair 2678675.39,1211181.8 at default precision and expect map:epsg:2056:2678675.4,1211181.8. Copy map:epsg:2056:2678675.39,1211181.8 and retain its extra digit. R1, R5, R6, R10
Tilted Wildspitz camera Import the same view from an eye-based source and a focus-based source. Both imports give the same eye. Compare eye, forward direction, image-up and lens. R2
Camera angles Test both roll signs, including −180° and values just below +180°. A new capture omits ±0.46° roll and includes ±0.5°. Reading and rewriting a link with 0.3r or -0.3r keeps that roll. Test heading at 0° and just below 360°. Test at and near straight down, horizontal and straight up. Compare forward and image-up in the same frame. Keep the given heading and roll at both vertical poses. R2, R6
Position and height Test longitude near the date line and at −180°, both poles with different longitude values, and zero, negative and positive heights. At a pole, use the supplied longitude to set the local frame. For an untagged or epsg:4326: pair, check that a swapped pair is rejected when the first value lies beyond ±90°. Open the same height in a viewer that uses sea-level heights and in one that uses ellipsoid heights. Check that the eye sits at the same height above the terrain. Record the geoid model used. Import a height with another reference and check that the adapter converts it. Report any reference the viewer assumed or converted. R2, R4, R6, R7
Lens and screen size Test f at 1280×720 and 390×844. Keep the diagonal angle. Check the projected size of the same centered landmarks relative to the viewport diagonal. Vary padding and device pixel ratio. Check the horizontal and vertical angles the viewer applies and report limits. Verify that pixel ratio alone keeps the framing. R2, R3, R4, R9
Capture a lens Convert a single directional angle using the source viewport and check the saved diagonal. Also test deriving the diagonal from both directional angles. Keep a known diagonal when the source viewport is unavailable. If only a horizontal or vertical angle is known without the source aspect, omit f and report the missing information. R2, R4, R6, R7
Precision Compare the default rounding and extra digits for nearby objects, distant subjects and a narrow lens. Measure eye movement, forward and image-up error, and movement on screen. For a new capture, verify that 179.9999996° longitude becomes -180, 359.96° heading is omitted after wrapping to zero, and 179.96° roll becomes -180r. Keep extra digits if rounding would put f at 0° or 180° or move a supported z view beyond the WebMercatorQuad latitude limit. At latitude 85.0511287797°, keep enough digits in a z capture to stay within the limit. A supported g capture at the same latitude can round to 85.051129. Check that copying and reopening do not round the view again. R2, R5, R6

For live flat-map checks with a continuous scale and no active constraints, the measured screen-up resolution at the settled center must be within 0.1% of the requested value. Compare the absolute difference divided by the requested resolution. For constrained views, check the applied scale against the SDK limit or snap rule and verify the report. Use exact inputs and expected strings for writer rounding tests.

Test case What must hold Requirements
Reopen and share Save one flat view and one 3D view. Close the viewer and reopen each link. Open each link in a separate browser session. Paste each value by itself and recover the same fields. R1, R2, R8
Share from flat 2D Save the flat map. Reopen its map: at 1280×720 and 390×844. Check that center, heading and local ground scale along screen-up match. Measure the change in visible area. Changing only device pixel ratio keeps the framing. Open the same value as a straight-down camera in both sizes and measure scale on its reported reference plane. Check that the adapter identifies an elevated-plane approximation when it affects framing. R1, R3, R8
Place only Open a map: with neither g nor z in a viewer that already shows a map and in a fresh one. Check that it centers on the point, keeps or picks a zoom and reports it. Open it in 3D and check the point is in view. R1, R3, R4
Map scale and coordinate limits Read and write positive fractional g, fractional z, omitted or zero h, reordered fields and extra digits. Check that the Rigi 7g and 13.893z examples agree within the live scale tolerance in WGS84 and LV95. Change the latitude to 60° N and verify that only g preserves the original ground resolution. Measure along screen-up after applying heading in a projection with unequal directional scales. Accept -3z and 99z. Check that a usable snap or clamp reports the achieved resolution and reason. Check for unsupported shared scale if the scale cannot be converted or the viewer cannot apply a finite positive approximation. Check that matching 256- and 512-pixel zoom ladders give the same resolution after the one-level adjustment. Test a rotated local grid, the date line and shared scale at the WebMercatorQuad latitude limit. Accept map:89,10 and map:89,10,13z. Check that a viewer that supports the center can show the place and reports unsupported shared scale when z is present. Check that map:89,10,7g restores its requested scale in a viewer that supports the position and resolution. Check for unsupported position when the viewer cannot show the center. Check that a viewer heading limit is reported. R4, R5, R6, R7
Explicit reference-zoom output For a synthetic north-up view at the equator with exactly 7 m/CSS px, request a fresh reference-zoom share and expect map:0,0,14.439z. Repeat with the default capture and expect map:0,0,7g. Verify that a host can select reference-zoom output for legacy readers. If the conversion is unavailable, check the reported scale error and any explicitly selected fallback. R1, R6, R7
Share from top-down 3D Save a straight-down camera in 3D and confirm the share still carries a camera. Open the same value in both modes. For the diagonal Wildspitz example with the ground at 857.5 m, check 11.6° screen-up, about 13,794 m of diagonal span in both sizes, and different vertical spans and ground scales. Compare center, screen-up and scale in both modes. R1, R3, R8, R9
Share across screen shapes Capture the tilted and straight-down Wildspitz cameras at 1280×720 and 390×844. Check that each share stores the known lens as diagonal FOV. Open each share at the other size and rotate an already open view. Keep the eye, forward, image-up and diagonal angle. Compare landmarks near the center and record any crop. Copy the open share again and check that resize kept its payload. R1, R2, R6, R9
Flat fallback Open a tilted view in flat mode and report the approximation. When no useful heading is available, report the heading the viewer chose. Test a viewer with terrain, one that looks up the ground height and one with neither. Test a missing lens. Report the ground height used and any framing chosen by the viewer. If the flat viewer snaps or clamps the estimated scale, check the applied resolution and capture a fresh g from the settled map. If a skyward view has no useful flat framing, an eye marker can still show the position. R3, R4
Links and browser history Test each type, with and without a CRS tag, as a bare string, under ?view= and under #view=. Use raw or escaped separators. Each form recovers the same value, including the tag. Check that View and VIEW are treated as unrelated key names and that a host’s separate sr or crs parameter has no effect on the shared pair. Keep unrelated app state intact. Check copy, paste, sharing and redirects. If the host syncs the URL, check that routine view changes replace the current history entry. Use Back and Forward between entries with shared views and check that restoration preserves both entries. Browser history R1, R6, R8, R10
Ground-resolution readback Open the tagged and untagged Rigi 7g examples in views actually rendered in Web Mercator and LV95 where available. After each view settles, two samples one CSS pixel above and below the usable center should be 14 m apart on the WGS84 ellipsoid within the 0.1% live tolerance when the viewer can match the scale. Repeat with asymmetric padding and a different device-pixel ratio at the same CSS viewport size. Check that any zoom snap or clamp reports the applied ground resolution and the reason. R4, R7, R8, R10
Directional ground resolution Render map:60,10,7g and map:60,10,7g,90h on a grid with equal screen spacing per degree of longitude and latitude (plate carrée). Use a 100 CSS-pixel ruler through the center on each axis. Both shares should show about 700 m along screen-up when the viewer can match the scale. Screen-right should show about 350 m north-up and 1,400 m east-up. Compare with a 90° rotation at fixed native resolution, where the readings swap and screen-up falls to about 350 m. Expected values R4, R7, R8
Rotated Web Mercator At Rigi, hold the native scale corresponding to shared 13.893z. Rotate the map from north-up to east-up at the same center. Compare the measured screen-up scale in both orientations with the formula within the live tolerance. East-up should measure about 0.313% more ground per CSS pixel. R4, R7, R8
Coarse ground-resolution readback Use a north-up Web Mercator view at the equator with reference zoom -3z. Expect local resolution of roughly 1,243,961 m/CSS px. Compare a two-pixel span with an analytic scale or progressively smaller pixel offsets. The two-pixel estimate is about 0.62% low. Worked check R4, R6, R7
Copy versus fresh share Copy existing z and g links, including one with 7.000g. Expect the original payload verbatim. Open a z link and choose Share current view without moving, then repeat after a pan or zoom. Both captures should write g from the settled view. Repeat with a g link that snaps on open. Copying keeps the requested scale, and a fresh capture uses the applied scale. Reopen and capture again to check that the settled scale stays within the live tolerance or at the same supported zoom step. R1, R4, R6, R8
Reading and editing Ask readers to copy latitude and longitude and paste them into a public map search. Ask how long a 700 m stretch running up the screen near the center would look at 7g and what value would make it twice as long. Check whether readers understand what adding one z level does and can distinguish ground resolution, reference zoom and native zoom. Have them edit camera tilt and enter a summit height from a map. Check for accidental changes to other fields. Compare raw and escaped lengths for the same view and precision. R5
Tagged horizontal position Open equivalent tagged and untagged Rigi points as map centers and camera eyes. Verify the equivalent position against a reference transform and record the difference in metres, including a near subject or narrow lens in 3D. Check that scale, true-north heading, camera height, tilt, roll and lens keep their meanings. Capture a grid-north-up LV95 map at Rigi at 7 ground metres per CSS pixel. Expect map:epsg:2056:2678675.4,1211181.8,7g,0.8h because grid north is 0.756° clockwise from true north there. Test an explicit epsg:4326: tag, an unavailable transform and a well-formed code the app does not recognize. In both failure cases, check that the app reports the CRS and keeps the current view. Rigi reference values R1, R2, R4, R6, R7, R10
Northing-first projected pair In adapters that support these CRSs, test map:epsg:2193:5380181.71,1558376.32 against the LINZ reference point and map:epsg:3035:3210000,4321000 at 52°N, 10°E. Verify northing first for the maps and the same pairs used as camera eyes. Check that missing axis metadata yields unsupported CRS. LINZ fixture · EPSG overview R6, R7, R10
Camera height units Open the EPSG:2227 and EPSG:2222 CSV camera rows. Verify that 32808.333 US survey feet and 32808.399 international feet each restore 10,000 m above mean sea level to within 1 mm before any new-capture rounding. Repeat the international-foot check with deprecated EPSG:3359, whose name says ftUS. Reproject each eye to WGS84 and check that the height is written in metres. Repeat the metre fallback check with a grad-based CRS using the inventory examples. Check that the height unit comes from the link’s CRS even when the viewer uses another one. EPSG camera examples R2, R5, R6, R7, R10
Projected pole In an adapter that supports EPSG:3413, open cam:epsg:3413:0,0,1200,90h and cam:90,0,1200,90h. Compare the eye, forward and image-up in the same frame. Move the projected eye 5 cm east to cam:epsg:3413:0.05,0,1200,90h. Compare its orientation with the local frame at 89.999999538° N, 45° E. Capture and reopen the same camera at 0.04,0 and at 0.049,0.051 metres. With the default heading precision, check that the shortest angle between the original and reopened image-up vectors is at most 0.05°. The first pair rounds onto the pole at decimetre precision. The second stays off the pole but changes meridian. Also test a geographic pole with an explicitly different longitude and check that removing the CRS tag from the projected example gives the WGS84 point at 0°N, 0°E. Heading at a pole R2, R6, R10
Coordinate epoch Transform map:epsg:9000:47.047,8.474 to ETRF2014 (EPSG:9069) with geocentric operation EPSG:8880 and zero ellipsoidal height for this 2D test. At epoch 2025.0 expect latitude 47.046994876°, longitude 8.473990568°, within 0.00000001° per axis. With a separately supplied epoch, check that the adapter uses it and reports its source. Repeat with EPSG:8366 at the same epoch and expect the same position. With no epoch, both operations must report coordinate epoch required and keep the current view, even when the library silently returns a result. Check that an epoch-independent operation can still open without an epoch. Coordinate epoch R4, R6, R10
Framework adapters Start in ArcGIS MapView and SceneView. Follow the framework order in R7. Capture each supported view as a link and apply the shared link back to the SDK. Read back what the SDK applied where available. Test coordinate order, Web Mercator, a local grid, true versus grid north and sea-level versus ellipsoid heights. Record each field the SDK keeps, changes or cannot use. R2, R3, R4, R7, R10
ArcGIS camera value Give the reader an ArcGIS viewpoint=cam: value and a shared view=cam: value for the same camera. Check that the reader takes only view=. Check that it rejects the ArcGIS value, with its semicolon and longitude first, when pasted as a shared view. Check that the adapter swaps latitude and longitude in both directions. R6, R7
CRS support Check that well-formed pairs tagged with epsg:4978:, epsg:4979:, epsg:6360: (vertical), epsg:7405: (compound), epsg:4226: or epsg:102100: report unsupported CRS. Import ArcGIS Web Mercator with wkid: 102100 and latestWkid: 3857 and check that an EPSG-tagged output uses 3857. For a point failure, inverse-project map:epsg:32632:100000000,0 using PROJ and verify unsupported position if the operation fails. Check the equivalent EPSG:5513 and 5514 positions in the specification. CRS and position support R4, R6, R7, R10
Position validation Compare LV95 map:epsg:2056:0,0 (opens, with an accuracy notice when the area is known) and map:epsg:2056:10000000,10000000 (unsupported position). Reject map:epsg:4258:95,10 even if the transform returns its input. For a repeating Web Mercator map at 30000000,0, capture map:epsg:3857:-10075016.7,0 and reopen it. Reading map:epsg:3857:30000000,0 directly must report unsupported position. Each rejected position leaves the current view in place. R4, R6, R10
Cross-product location handoff Paste a Google Maps link into the converter. Open each generated link in a fresh browser session and check that swisstopo and Google Earth show the same identifiable location. Check that the converter reports differences in scale, heading or camera framing. Repeat with a link that has no unambiguous location and verify that the converter explains what input it needs. R1, R4, R5, R7
Public viewers Open generated native links in landscape and portrait. Record the shared input, generated link, viewport and what opens. Note which fields the viewer keeps, changes or cannot use. Record unavailable conversions. A generated URL or an SDK result does not verify a public link. R4, R7

Reject unknown prefixes and fields, repeated fields and missing required values. For maps, test repeated g or z, a map containing both, zero or negative g, a number without a letter and 360° heading. For cameras, test repeated f, unsupported suffixes such as x and y, a missing height, a height with a suffix, 360° heading, 180° roll and FOV at 0° and 180°. For both, reject misplaced, repeated or malformed CRS tags such as EPSG:2056: and epsg:02056:. Also reject spaces, non-ASCII digits, a semicolon, exponents and leading plus signs. For WGS84, reject a latitude beyond ±90° and 180° longitude. Reject duplicate view parameters after decoding. Reject a view in both the query and fragment, even if the values match. Decode once. Show an error and leave the current view in place. Payload syntax · URL rules

  • The independent format probe passed 12 canonical round trips, all 16 combinations of optional camera fields and 28 invalid payloads. It checked orientation for 540 poses, including poles and vertical views. The Wildspitz focus and eye fixtures agreed within 0.033 m. The 68.4° diagonal lens gave a vertical angle of 36.85° at 1280 × 720 and 63.34° at 390 × 844. Precision calculations
  • Chromium 152 preserved both view types with raw and escaped query and fragment carriers through redirect, reload, history updates, back and forward. The production TypeScript reader also passed its payload and carrier tests.
  • ArcGIS MapView 5.2.7, MapLibre GL JS 6.19.0, OpenLayers 10.6.1 with Web Mercator and LV95, and Mapbox GL JS 3.35.2 reached the Wildspitz center, 11.6° heading and about 9.39653 m/CSS px at 1280 × 720 and 390 × 844. Leaflet 1.9.4 matched the scale with fractional zoom enabled, stayed north up and placed its center within about 5 m. Web Mercator viewers applied their own high-latitude and zoom limits.
  • ArcGIS SceneView preserved the tested eye, heading, tilt and diagonal lens. Its camera has no roll field. MapLibre preserved the tested camera fields with pitch limits adjusted and the lens set before the eye. Mapbox’s tested FreeCamera path limited tilt to 85° and vertical FOV to 60°. CesiumJS 1.145.0 matched the requested eye and orientation with a controlled geoid offset and explicit Cartesian vectors. At exact zenith the setView path returned image-up reversed by 180°. Applying the vectors directly restored the requested orientation.
  • Pasting the Wildspitz Google Maps URL recovered map:47.080826,8.579398,13z. At 1280 × 720 and 390 × 844, swisstopo reopened the LV95 center with a crosshair at level 6. Google Earth resolved its coordinate search to the same latitude and longitude and chose different camera distances for the two screens. Both open a location with viewer-specific framing. swisstopo URL parameters · Google Earth view sharing
  • An ArcGIS camera over Zug reopened as a direct Google Earth camera link in both viewport sizes. Earth kept the eye latitude and longitude, heading and tilt to the shared format’s displayed precision. It raised the eye from 426.1 to about 439.9 m based on its resulting URL. The link uses Earth’s default lens. Google Earth sharing
  • The browser app passed paste, copy, reopen and provider search at both sizes. A public Google Maps short link expanded to its place coordinates. An unresolved link showed an input error and kept the previous view. Automated round trips check the location in each generated URL using a point in the viewer’s area.
  • Public viewer probes found zoom rounding, regional basemap limits and loading states. Outdooractive and Alpenvereinaktiv needed literal commas in their zc tuple. HERE retained the requested zoom via its web map URL. The app lists links such as Trailforks and ViaTopo as unavailable where the public URL schema or location reopen could not be confirmed. Provider evidence

Record terrain, projection, viewport and camera limits alongside each measurement. Remaining release checks include human reader trials, capture and restore through full SDK integrations and field-by-field public viewer verification across screen shapes and native apps. Verification cases

The shared format covers still views. Area fit, feature IDs, layers, time and camera motion each need their own requirements and tests. Test a banked aircraft still. Aircraft-relative controls and replaying its motion are open topics.