Overview

Viz Maps lets a journalist build an on-air 2D map in Pilot Edge in a few steps: search a place, add labels and highlighted areas, frame the shot, and save.

Designers set up everything the journalist works within, ahead of time, in three tools:

  • Map Designer defines the map style: the look of the base map (colours, fonts, borders, which layers show).

  • Viz Artist defines the map scene: the label and area prototypes, containers and animations the Viz Engine renders.

  • Template Builder turns that scene into a Pilot Edge template with a map field, so journalists only see the controls they need.

The journalist's result is a normal Pilot Edge data element. It can be dragged into a rundown and played out through the Media Sequencer and Viz Engine like any other graphic.

Supported Features

Area

Feature

Notes

Search

Place search

Worldwide searchable locations results in the installation's language; can be limited to the current view.

Search

Region search

Countries, states, counties and similar, saved as stable shape URLs. Can be added to highlight areas on the map.

Search

Reverse lookup

Names hops from their location; Right click on the map to open Browse Features that lists all points or shapes of interest at a point.

Labels

Add, drag and move points

From search, from Add label, or by clicking the map. Reflected on the map with a indicator but shows how it will look on the graphic with the preview Engine view.

Shapes

Highlight

Show or hide in the editor, reorder (saved), duplicate, delete. Use search to find areas to highlight or provide a GeoJson geometry via url or raw json.

Shapes

Detailed coastlines

Clip highlighted shapes's coastline to viewport from zoom 7. Important to use if the map is zoomed in and the highlighted area needs to increase the coastling fitting.

Shapes

Custom GeoJSON

As a URL, or inline up to 64 KB.

Camera

Hops (camera flights)

Add the current view, update, reorder; per-hop bearing, pitch, zoom lift, duration, motion, flight direction, stop type and pause duration depending on what is exposed from the scene.

Styles

Map styles from Map Designer

Published styles only; per template or installation default. Set on the scene.

Preview

Editor and preview

Map Editor / Map Preview switch, Shift to peek, Show in preview jumps to a hop.

Organization

Worldview

Disputed borders drawn as the chosen country wordview sees them. Must be set up by Vizrt.

Organization

Attribution

Map data credit added to the style, can be turned off depending on license. Must be set up by Vizrt. End of show attribution credits should include OpenStreetMaps if that is the norm.

Integration

Custom HTML panels

Own UI through payloadhosting.js, MapLibre GL JS and the Viz Maps API. Customers can use their API key to use Viz Maps API to make maps with the styles and use its functionality.

Integration

Proxy server

A proxy can stand in for api.maps.vizrt.com. The proxy can also be configured to attach the customer specific API key header that is required.

Key concepts

A Pilot Edge map is not one special object. It is a set of ordinary template fields, usually rows in lists, holding points, shapes and camera views as plain strings. The Pilot Edge Map Editor panel lets the journalist edit them all on one interactive map.

Think of a map template as a form. The designer decides which fields exist; the journalist fills them in by clicking on a map instead of typing coordinates.

Term

What it is

Who makes it

Map style

A MapLibre style JSON stored in DocumentStore that sets the base map's look: layers, colours, fonts, borders. Only published styles are offered in Pilot Edge.

Designer, in Map Designer

Map scene

The Viz Artist scene that renders the map. Its control plugins expose the geo fields to the template.

Designer, in Viz Artist

Location field

A point, saved as "<longitude> <latitude>" in decimal degrees, for example "10.75 59.91". Media type application/vnd.vizrt.geo.coordinate.

Journalist fills it

Shape field

A highlighted region such as a country, state or county, saved as a shape URL or as inline GeoJSON. Media type application/vnd.vizrt.geojson.

Journalist fills it

GeoNav field

A camera flight: a hops list of views, each saved as "west south east north". Comes from the ControlGeoNavigator control plugin.

Journalist fills it

Map Editor panel

The template's interactive map, which edits all the geo fields above in one place. Stored in the template's UI definition, not in the payload.

Designer adds it in Template Builder

Prototype list

In the Artist scene a prototype list can be used to allow Pilot Edge users to select which variants to use for labels, shapes etc.

Designer, in Viz Artist but Journalist selects.

Map Editor Panel

Template Builder has no "Viz Maps" field type to pick. A template becomes a map template when its scene exposes geo fields; the designer then adds a Map Editor panel to the template's custom view and decides how it behaves. While editing the template click the Map Editor icon to add map editor to the current view.

image-20261102-125804.png

Note. The Map field type in the type picker (application/vnd.vizrt.curious.map) is the older Viz World field. It is not Viz Maps.

image-20261109-080124.png

Template Builder with a Map Editor panel added. The left tree shows the 01geonavigator GeoNav field and its hop columns; the selected ui:mapfragment item opens Map editor settings.


Workflow

  1. Build the map scene in Viz Artist with the control plugins for Viz Maps including geometry, locations, shapes and the camera (ControlGeoNavigator). Use the Control ProtoList to make alternatives for labels and shapes. Their fields appear in the template model with the geo media type.

  2. Open the template in Template Builder and go to the custom view's layout editor. When the model has geo fields, the toolbar offers Map Editor.

  3. Add the panel. It is pre-filled by Auto configure, which guesses each list's name, subtitle and hop columns and the presets from the field names and choices. The default panel size is 4 × 5 grid cells.

  4. Open Map editor settings and adjust them. The dialog has three tabs: General settings, Template fields and Map object presets.

Map editor settings

In the map editor settings the Template Builder can fine-tune which fields should be used and exposed when showing the Pilot Edge Map Editor to the Pilot Edge users. This is an important step to make the best out of the Map Editor.

  1. Before opening the map editor settings make sure the data is correct.

    1. The map object lists are exposed from the scene and might not have approperiate names - start by renaming e.g. 01geonavigator and any lists like labels or shapes from the scene in left pane editor in Template Builder. Some can also be renamed in the settings editor later. It is also possible to limit the allowed number of hops, labels or shapes but modifying the “Maximum number of rows”. If you want to limit the user to create e.g. 2 hops, set the maximum number of rows for the geonavigator.hops to 2.

      image-20261109-083151.png
  2. Click the “Map editor settings” to open the dialog for fine-tuning the Map Editor for this specific template and show “General settings”

    1. Entrance to map editor - select if the editor should be opened always or if the user need to click a button to open it

    2. Map texture for the editor - select which map style the user should use for the map editor preview.

    3. Included Map Fields - select which map field from the scene to include in the editor that the user should be able to modify.

    4. Included Non-Map Fields - select any additional fields that should be exposed to the user for editing.

  3. Select “Template fields” to specify more in detail which fields should be visible in the editor, how they should be named and possible to modify

    1. Map object identificatior - select which field to use for the headline of the item. If none is used it will combine all.

    2. Subtitle - select 2nd field to use for headline

    3. Hop - Select which field to indicate which hop the item belongs to if any.

    4. Structure map object fields

      1. Set alternative names for the source and lon\lat the user should use.

      2. Drag fields from the Uncategorized section to one of the structure object fields to make them editable or move them out to not expose them.

      3. Give aliases for files if needed in the textbox

        image-20261109-122947.png
  4. Select “Quick Presets” to manage and rename the presets available for the lists of map objects. The quick presets are used by the user when selection options from the objects that are dynamically added to the map.

    image-20261109-123013.png

Under each of the Lists headers users can change the Option label and the preset name for each of the presets without modifying the data. The value comes from the scene and will be used in the payload to draw the graphic on the map.
The options here will affect how the Map Editor is shown to the end-user.

image-20261109-123158.png


The Map editor settings can be used to modify existing templates so you can go back-and-forth until you are happy with the terms used.

Before saving the Map it is possible to set up some defaults in the map editor that will be there when the journalist opens the template. Use the Map Editor to add Hops, Shapes and labels and save the template to keep it as the default.

image-20261109-124536.png

Pilot Edge: filling in a map

The journalist edits the map in the Map Editor panel. Every change is written back to the template's normal fields, so the result saves and plays out like any other data element.The Map wide settings tab: each shape is a row with show/hide and a menu, and the highlighted regions show on the map.

  1. Open the map. It opens on its own or with a button, depending on the template. The Map Editor works only when Viz Maps is configured for the installation (see the last section).

  2. Navigate the map. Type in any location in the search bar on the top right. Results come from location search and shape search. Turn on Limit search to viewport to keep results inside the current view. Picking a result moves the selected item there, or moves the view.

    image-20261109-133446.png
  3. Add a Hop

    1. On the left pane click “Add current view as hop”

    2. Add a hop from the search result by clicking the plus icon in a search result.

      image-20261109-133823.png

  4. Add a Shape to a Hop

    1. Press edit to open a Hop or just keep it selected in the list

    2. Then do another search in the top bar and click the shape icon to add the shape for that location\area.

      image-20261109-140104.png

    3. Edit the hop and expand the dropdown for the added shape to see its properties. Use the mouse wheel to zoom in some more. Select the options you want.

    4. image-20261109-140602.png

      Then add a label by right clicking on the map and select either a Empty Label or use the Browse Features to look for a feature in that location. If there are more than 1 location in the scene you have to choose where to add it.

      image-20261109-140825.pngimage-20261109-142352.png


  5. Map wide settings.

    1. Any points that should always be visible can be added here

    2. All non-map fields will also be shown under this tab.

  6. Adjust items.

    • Points: drag them, or select one and click the map to move it.

    • Shapes: are added from search as stable shape URLs. Clip coastline to viewport (from zoom 7) fetches a more detailed outline for the current view.

    • Order: right-click an item and move it forward, backward, to the front or to the back. This reorders the list rows and is saved.

    • Hide from map hides an item in the editor only. It is not saved.

  7. Check the result. Switch between Map Editor and Map Preview, or hold Shift to peek at the other one. Show in preview jumps the graphics preview to that hop.

  8. Save the data element and drag it into a rundown.

Custom map UI with an HTML panel

An HTML panel can replace the built-in Map Editor with any UI. It needs three pieces: payloadhosting.js to read and write template fields, the Viz Maps REST API for search and shapes, and MapLibre GL JS to draw the map. The only requirement is that it writes the same strings to the same fields, because those strings are what Viz Engine renders.

Piece

Where to get it

Used for

payloadhosting.js

http://<pdshost>:8177/app/templatebuilder/js/payloadhosting.js (ships with Template Builder)

Reading and writing the template's fields from the panel. Exposes vizrt.payloadhosting.

MapLibre GL JS

https://unpkg.com/[email protected]/dist/maplibre-gl.js and maplibre-gl.css (the version Pilot Edge uses)

The interactive map. Loads Viz Maps styles directly.

Viz Maps REST API

vizmaps_baseurl + api/v1/..., with header X-API-KEY: <vizmaps_apikey>

Styles, location search, shape search, reverse lookup and shape GeoJSON (see the endpoint table in the next section).

Pilot Data Server settings

The vcp_settings link in the PDS service document (http://<pdshost>:8177/)

Reading vizmaps_baseurl, vizmaps_apikey, vizmaps_language and vizmaps_style, the same way Pilot Edge does.

No other library is needed. Add one only for extra features, such as Turf.js for geometry calculations.

Setting it up

  1. Host the page on a web server the Pilot Edge clients can reach.

  2. In Template Builder, add an HTML panel to the form and set its URL to the page. For a full-screen UI, set the URL in Template Properties instead.

  3. Click Refresh HTML panels after each change to the page.

Payload API essentials

  • vizrt.payloadhosting.initialize(callback) connects to the host; callback(state) runs when the payload has loaded. state is "created" or "loaded" in Pilot Edge and undefined in Template Builder.

  • Field paths are names joined with /. A list row is #<index>, for example labels/#1/position.

  • getFieldText(path) and setFieldText(path, text) read and write a value.

  • addListFieldItem(listPath) adds a row and returns its path; removeListFieldItem(listPath, index) removes one; getListFieldLength(listPath) counts rows.

  • updatePayload(fn) batches several changes into one update to the host.

  • setFieldValueCallbacks({ path: fn }) reacts when a field changes, for example when the journalist edits it in the form.

  • jumpToPreviewPoint("Hop-1") moves the graphics preview to a hop.

  • An element with the same id as a field is bound to it automatically. Call setUsesAutomaticBindings(false) before initialize to turn this off.

Values to write. Use exactly the formats the built-in editor writes:

Field type

Value

Location

"<longitude> <latitude>", decimal degrees, for example "10.75 59.91".

Shape

"vizmaps://" + the shapeUrl from shape search, for example vizmaps://api/v1/shapes/r2978650?at=10.75,59.91&type=country. Never build one from a feature id.

GeoNav hop

"west south east north", for example from map.getBounds().

Minimal example. A search box that adds the picked place as a label row and shows it on a MapLibre map. Replace labels and position with the template's own list and field names.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="http://pdshost:8177/app/templatebuilder/js/payloadhosting.js"></script>
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css">
<style>html, body, #map { margin: 0; height: 100%; }</style>
</head>
<body>
<input id="search" placeholder="Search a place" style="position:absolute;z-index:1;margin:8px">
<div id="map"></div>
<script>
const PDS = "http://pdshost:8177/";
let cfg;
 
// Read vizmaps_* from the PDS settings payload, as Pilot Edge does
async function loadVizMapsSettings() {
const service = new DOMParser().parseFromString(await (await fetch(PDS)).text(), "application/xml");
const href = [...service.getElementsByTagName("*")]
.find(el => el.localName === "link" && el.getAttribute("rel") === "vcp_settings").getAttribute("href");
const settings = new DOMParser().parseFromString(await (await fetch(new URL(href, PDS))).text(), "application/xml");
const value = name => [...settings.getElementsByTagName("*")]
.find(el => el.localName === "field" && el.getAttribute("name") === name)?.textContent.trim();
const base = value("vizmaps_baseurl");
return { baseUrl: base.endsWith("/") ? base : base + "/", apiKey: value("vizmaps_apikey"),
language: value("vizmaps_language"), style: value("vizmaps_style") };
}
 
// Every request to Viz Maps carries the API key; vizmaps:// resolves against the base URL
function api(path) {
return fetch(new URL(path.replace(/^vizmaps:\/\//, ""), cfg.baseUrl), { headers: { "X-API-KEY": cfg.apiKey } });
}
 
vizrt.payloadhosting.initialize(async () => {
cfg = await loadVizMapsSettings();
const map = new maplibregl.Map({
container: "map",
style: cfg.style || new URL("api/v1/styles/reference", cfg.baseUrl).href,
center: [0, 20], zoom: 1, dragRotate: false,
transformRequest: url => url.startsWith(cfg.baseUrl) ? { url, headers: { "X-API-KEY": cfg.apiKey } } : { url },
});
 
document.getElementById("search").addEventListener("change", async e => {
const q = new URLSearchParams({ Query: e.target.value, Language: cfg.language || "en" });
const { features } = await (await api("api/v1/location/search?" + q)).json();
const hit = features?.find(f => f.geometry?.type === "Point");
if (!hit) return;
const [lng, lat] = hit.geometry.coordinates;
vizrt.payloadhosting.updatePayload(function () {
const row = this.addListFieldItem("labels");
this.setFieldText(row + "/position", lng + " " + lat);
});
new maplibregl.Marker().setLngLat([lng, lat]).addTo(map);
map.flyTo({ center: [lng, lat], zoom: 6 });
});
});
</script>
</body>
</html>

For a shape, call api/v1/shapes/search the same way, store "vizmaps://" + feature.properties.shapeUrl in the shape field, and draw it with map.addSource(id, { type: "geojson", data: <resolved URL> }).

Check before relying on it

  • CORS: the page calls the Pilot Data Server and the Viz Maps BFF from the browser. Both must allow the page's origin. Hosting the page on the Pilot Data Server avoids the first.

  • API key: the key reaches the browser, as it does for the built-in editor. Use an organization key meant for Pilot clients.

  • Field names come from the scene's control plugins. Look them up in the Template Builder model tree, not in this example.

The services:

Endpoint (under vizmaps_baseurl)

Used for

Served by

GET api/v1/styles

Style list (published only)

https://api.maps.vizrt.com

GET api/v1/styles/{id}

One style

https://api.maps.vizrt.com

GET api/v1/styles/reference-labels/?language=en

Reference labels in the chosen language

https://api.maps.vizrt.com

GET api/v1/location/search?Query=Norway

Place search

https://api.maps.vizrt.com

GET api/v1/shapes/search?Query=Vestland

Region search

https://api.maps.vizrt.com

Map tiles are whatever the style points at; MapLibre loads them directly.

Proxy

Setting up a proxy is recommended for security reasons but also to ease management of API keys. It should be set up by the customer IT personell according to their policy. API key can also be added to Pilot Edge configuration. See later section.

Setting

Value

vizmaps_baseurl

The proxy's address, for example https://vizmaps-proxy.newsroom.local/

vizmaps_apikey

Any non-empty placeholder, such as proxy, when the proxy adds the real key. Pilot Edge turns maps off if this is empty.

Ports to open

From

To

Port

Protocol

Pilot Edge and Template Builder clients (browsers)

The proxy

443, or the port the proxy listens on

HTTPS

Viz Engines

The proxy

443, or the port the proxy listens on

HTTPS

The proxy

api.maps.vizrt.com

443 (outbound)

HTTPS

No other internet access is needed: once the proxy rewrites vizmaps://, tiles, fonts, sprites and shapes all go through it. If a style refers to another host, it shows up in the browser's network tab and that host must be reachable too. The development proxy listens on 127.0.0.1:8787 and needs no open ports.

Example: nginx. A sketch for production use . It needs the standard ngx_http_sub_module.

server {
listen 443 ssl;
server_name vizmaps-proxy.newsroom.local;
ssl_certificate /etc/nginx/certs/vizmaps-proxy.crt;
ssl_certificate_key /etc/nginx/certs/vizmaps-proxy.key;
 
location /api/ {
allow 10.0.0.0/8; # newsroom network only
deny all;
 
proxy_pass https://api.maps.vizrt.com;
proxy_ssl_server_name on;
proxy_set_header Host api.maps.vizrt.com;
proxy_set_header X-API-KEY "<organization Viz Maps API key>";
proxy_set_header Accept-Encoding ""; # so the body can be rewritten
 
sub_filter_types application/json;
sub_filter 'vizmaps://' 'https://vizmaps-proxy.newsroom.local/';
sub_filter_once off;
 
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Headers * always;
}
}

Do not turn on caching (proxy_cache) on this proxy. It must pass every request straight through to api.maps.vizrt.com.

Pilot Edge Settings

Pilot Edge needs a base URL and an API key before any map can be edited. Everything else has a default.

Pilot Edge settings (Viz Maps section). Stored in the Pilot Data Server settings.

Setting

Meaning

Required

vizmaps_baseurl

Address of the Viz Maps service.

Yes

vizmaps_apikey

Organization API key

Yes, but can be overidden by the Proxy

vizmaps_language

ISO 639-1 code for search results and map labels, for example en.

No

vizmaps_style

Default editing style. A template's Map texture setting overrides it.

No

Troubleshooting

Symptom

Likely cause or workaround

Map Editor does not open or is missing

vizmaps_baseurl or vizmaps_apikey is not set, or the template has no Map Editor panel.

A style is missing from the Map texture for the editor dropdown

It is not published in Map Designer. Only published styles are shown.

Requests fail with 401 or 403

The API key is wrong, revoked, or belongs to another organization.

A coastline looks coarse when zoomed in

Use Clip coastline to viewport at zoom 7 or more.