Skip to content
Written for v1.2.0· Last updated: Jul 1, 2026

Map Viewer

Core Feature

This feature is available in all Portrai Explorer deployments.

The Map Viewer is the primary visualization component in Portrai Explorer. It displays your spatial transcriptomics data as an interactive map, allowing you to explore tissue images overlaid with data points.

Map viewer full interface

Interface Components

Toolbar

The map viewer has two sets of controls: a top toolbar that runs along the top of the view, and a mode switcher that floats at the bottom-center of the map.

Map viewer toolbar

Top toolbar (to the right of the subset input field):

ControlDescription
Projection selectSwitch the coordinate system (Spatial, UMAP, t-SNE, etc.) — the first item in the toolbar
Facet view (Grid icon)Split the map into per-category panels — see Facet View
Layer Settings (Layers icon)Adjust point and image appearance — see Layer Settings
Export (Download icon)Export the current view as a PNG image or feature data as CSV

Bottom mode switcher:

ControlDescription
Pan (Hand icon)Navigate the map by clicking and dragging
Selection (Lasso icon)Draw selections to highlight regions of interest
Items dropdownShows count of visible/subset items with additional options

Map Area

The central map area displays:

  • Background image - Tissue image (if available), supports multi-image overlay with additive blending for fluorescence channels
  • Data points - Individual cells or spots colored by the selected feature
  • Selection overlay - Highlighted region when using lasso selection

Legend

The legend shows the color mapping for the current feature:

Legend examples

  • Categorical features - List of categories with their colors
  • Continuous features - Color gradient with min/max values

Hover over legend items to highlight corresponding points on the map.

Subset Panel

Subset Panel

Click the subset input field to open the Subset Panel. See Subset for details.

Interaction Modes

Pan Mode

Pan mode is the default interaction mode for navigating the map.

Controls:

ActionMouseResult
PanClick + dragMove the map view
Zoom inScroll up / Double-clickZoom into the map
Zoom outScroll downZoom out of the map

Selection Mode

Selection mode allows you to draw lasso selections to highlight specific regions.

How to use:

  1. Click the Selection button (Lasso icon) in the toolbar
  2. Click and drag on the map to draw a closed shape
  3. Release to complete the selection
  4. The toolbar shows the count of selected items

After selecting:

Click the Items dropdown to access options:

  • Add selection to subset - Save the lasso as a subset condition

Alternatively, opening the Subset Panel after drawing a selection shows a lasso preview banner with an Add to subset button (and a Clear ✕ to discard the selection), so you can add the lasso without using the Items dropdown.

Projection Modes

Switch between different coordinate systems to view your data from multiple perspectives.

Projection mode selector

Available Projections

The available projections depend on your dataset — only the embeddings present in your data are listed. Common ones include:

ModeDescription
SpatialOriginal tissue coordinates (default)
UMAPUMAP dimensionality reduction coordinates
t-SNEt-SNE dimensionality reduction coordinates

Switching Projections

  1. Locate the projection selector — the first item in the top toolbar
  2. Click to open the dropdown menu
  3. Select the desired projection mode
  4. The map view updates to show the new coordinates

Lasso selections made in embedding space (UMAP/t-SNE) can be saved and reused in subsets.

Supported Image Formats

The Map Viewer supports multiple image formats for background tissue images:

FormatDescriptionBest For
GeoTIFFCloud Optimized GeoTIFFLarge images, streaming
StaticPNG, JPEGSmall to medium images
TilesMulti-resolution tile pyramidVery large images

The appropriate format is determined by your data configuration and loaded automatically.

Multi-Image Overlay

When a project contains multiple images (e.g., DAPI + Cell Boundary, or H&E + fluorescence channels), the Map Viewer automatically overlays them:

  • Fluorescence channels are composited using additive blending with distinct pseudocolors
  • H&E images render as the base layer with fluorescence overlaid on top
  • Each channel can be independently controlled via Layer Settings
  • The background is black in fluorescence-only mode for standard microscopy appearance

Tooltip

Hover over data points to see detailed information:

Map tooltip example

The tooltip displays:

  • Current feature value for the hovered point
  • Point index or identifier
  • Additional metadata (if configured)

Performance Tips

Large Datasets

For datasets with millions of points:

  • Use tile-based images when available
  • Allow time for initial rendering
  • Zoom into regions of interest for smoother interaction
  • Consider using subsets to reduce visible points

Smooth Navigation

  • Avoid rapid zoom changes
  • Wait for rendering to complete before making new selections
  • Use Pan mode for general navigation, switch to Selection only when needed

Portrai Explorer Documentation