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 |
Integration | Proxy server | A proxy can stand in for |
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 | 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 | Journalist fills it |
GeoNav field | A camera flight: a | 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.
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.
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
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.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.
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.
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.
Before opening the map editor settings make sure the data is correct.
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.
Click the “Map editor settings” to open the dialog for fine-tuning the Map Editor for this specific template and show “General settings”
Entrance to map editor - select if the editor should be opened always or if the user need to click a button to open it
Map texture for the editor - select which map style the user should use for the map editor preview.
Included Map Fields - select which map field from the scene to include in the editor that the user should be able to modify.
Included Non-Map Fields - select any additional fields that should be exposed to the user for editing.
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
Map object identificatior - select which field to use for the headline of the item. If none is used it will combine all.
Subtitle - select 2nd field to use for headline
Hop - Select which field to indicate which hop the item belongs to if any.
Structure map object fields
Set alternative names for the source and lon\lat the user should use.
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.
Give aliases for files if needed in the textbox
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.
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.
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.
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.
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).
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.
Add a Hop
On the left pane click “Add current view as hop”
Add a hop from the search result by clicking the plus icon in a search result.
Add a Shape to a Hop
Press edit to open a Hop or just keep it selected in the list
Then do another search in the top bar and click the shape icon to add the shape for that location\area.
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.
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.
Map wide settings.
Any points that should always be visible can be added here
All non-map fields will also be shown under this tab.
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.
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.
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 |
|---|---|---|
|
| Reading and writing the template's fields from the panel. Exposes |
MapLibre GL JS |
| The interactive map. Loads Viz Maps styles directly. |
Viz Maps REST API |
| Styles, location search, shape search, reverse lookup and shape GeoJSON (see the endpoint table in the next section). |
Pilot Data Server settings | The | Reading |
No other library is needed. Add one only for extra features, such as Turf.js for geometry calculations.
Setting it up
Host the page on a web server the Pilot Edge clients can reach.
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.
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.stateis"created"or"loaded"in Pilot Edge and undefined in Template Builder.Field paths are names joined with
/. A list row is#<index>, for examplelabels/#1/position.getFieldText(path)andsetFieldText(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
idas a field is bound to it automatically. CallsetUsesAutomaticBindings(false)beforeinitializeto turn this off.
Values to write. Use exactly the formats the built-in editor writes:
Field type | Value |
|---|---|
Location |
|
Shape |
|
GeoNav hop |
|
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> <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 | Used for | Served by |
|---|---|---|
| Style list (published only) | |
| One style | |
| Reference labels in the chosen language | |
| Place search | |
| Region search |
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 |
|---|---|
| The proxy's address, for example |
| Any non-empty placeholder, such as |
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 |
| 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 |
|---|---|---|
| Address of the Viz Maps service. | Yes |
| Organization API key | Yes, but can be overidden by the Proxy |
| ISO 639-1 code for search results and map labels, for example | No |
| 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 |
|
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. |












