Skip to content

Helpers

Pages that prepare the files the manager asks for and clean up the results. They run in the browser. Each opens with a short form and a link to try it with sample data; after loading, the form folds into a line at the top of the side panel, and Change opens it again. While a helper is working, a spinner shows next to its status line, and Loading map... shows at the bottom left of the map until the map has finished drawing. Large results files, such as the Pemba Island fishing boat project, take several seconds to read.

  • Area finder

    Paste an image from imagery.hotosm.org or a TiTiler /cog/ tile URL, or open merged images from the imagery merger. Download the imagery footprint or shapes you draw as the area of interest, and save a cover image.

  • Tutorial builder

    Load the project's processed tasks, click tiles and cells to mark the tutorial answers, and download the scenario file.

  • Imagery merger

    Add two or more images from imagery.hotosm.org. Get one tile URL that shows them all, and check it on the map.

  • Results map

    Paste the link of a finished project, set the share of volunteers a cell needs, and download the cells as GeoJSON.

  • Auto labeller

    Load a finished project, or a tile URL and an area. Tap or drag around each object, and download the labels as GeoJSON.

  • Labels checker

    Open a labels.geojson before you deliver it. The checker lists what passes and what to fix, counts the labels per type, and shows them over the imagery.

The area finder and the tutorial builder are explained step by step in Create a Locate project and Create the tutorial.

Imagery merger

Use it when the project area needs more than one image.

Two Banepa images merged, zoomed in, and the tile URL copied

  1. Copy the page address or Copy TMS of each image on https://imagery.hotosm.org/browse, as in step 1 of Create a Locate project.
  2. In the imagery merger, paste one image per field under Images. To add images to a merged tile URL, paste it in one field and the new images in the others. Add image adds a field and Remove drops one. Click Merge.
  3. Zoom in where the images meet. Each image has a red outline, and the list on the right shows its date.
  4. Click Copy tile URL and use it in the manager and in the tutorial builder.
  5. Click Open in area finder to find the footprint of all the images and draw the area of interest across them.

Try the Banepa example merges two images over Banepa, Nepal.

How the tile URL merges the images

The tile URL lists the image IDs (/raster/collections/openaerialmap/tiles/...?ids=<id>,<id>), and the HOT imagery API merges those images on every tile request (titiler-pgstac documentation). To change the mosaic, edit the IDs in the URL.

  • Where images overlap, the newest is drawn on top: pgstac sorts items by datetime descending by default (source).
  • The URL sets exitwhenfull=false and skipcovered=false, so an older image still fills the parts of a tile where a newer image doesn't have pixels.
  • White or near-black edges of a newer image are drawn on top of older imagery. When they hide what volunteers need to see, leave that image out.
  • The URL sets one colour range per band (red, green, blue) with rescale, wide enough to cover the range stored with each image. An image without a stored range can look black next to images with a stored range. The merger and the area finder name those images in their status line. Leave them out of the URL.

Results map

Use it on a finished project to get only the cells volunteers marked, as GeoJSON.

Kept cells, a cell's votes, and the download button

  1. In the results map, paste the project link, the address of the project page on the MapSwipe website (see Download the results), and click Load.
  2. Move the Volunteer share slider to the share of volunteers a cell needs, for example 50%. Click a cell to see its votes.
  3. Click Download cells. Label in QGIS and Label in OpenStreetMap continue from this file.

To share the results, copy the page address. It opens at 50%, so tell others the share you used.

Try the Freetown example loads the Freetown solar panel project.

Projects not on the website

The MapSwipe website lists production projects, and the stage website (https://website-stage.mapswipe.org/) some stage projects; links to both work. The websites are rebuilt every six hours (source). For a project not on the website yet, paste its Aggregated Results link (https://backend.mapswipe.org/...csv.gz or https://backend-stage.mapswipe.org/...csv.gz) from the MapSwipe API in the same field.

How cells are kept, and the downloaded properties

A cell is kept when Single Feature and Multiple Features answers together make up at least the chosen share of the volunteers who saw it. Each kept cell becomes a square, cut from its tile row by row from the top left in Web Mercator, the projection the tiles are cut in (source). On the map, Multiple Features cells have the darker fill.

Property Meaning
tile_id The tile, as zoom-x-y (the task_id of the results)
cell_index The cell inside the tile, counted row by row from the top left, starting at 0 (the task_partition_index of the results)
majority_answer Multiple Features when at least as many volunteers answered Multiple Features as Single Feature, otherwise Single Feature. No answers are left out of the comparison
single_feature_votes How many volunteers answered Single Feature (one tap)
multiple_features_votes How many volunteers answered Multiple Features (two taps); 0 for projects without that answer
volunteers_total How many volunteers saw the cell
feature_vote_percent Single Feature and Multiple Features votes together, as a percentage of volunteers_total, rounded

The vote counts show how volunteers split: 6 Single Feature and 5 Multiple Features votes give Single Feature, but nearly half saw several objects, so check such cells on the imagery. feature_vote_percent and volunteers_total together show how sure the result is: 100% of 1 volunteer and 75% of 20 volunteers both pass a 50% threshold, but the second rests on many more answers.

Imagery from tiles.openaerialmap.org

The map shows the imagery from the url column of the file. tiles.openaerialmap.org sends each tile request on to titiler.hotosm.org without CORS headers, which browsers refuse, so the helpers read those tiles from the titiler.hotosm.org address directly. The helpers build that address from the redirect tiles.openaerialmap.org answered with in October 2026; the redirect is not documented, so the address can change.

Auto labeller

Use it to mark each object on the tiles of a finished project or an area, as training data for a model.

Two taps and a drag mark three solar panel groups, then the outlines show

  • Label: in the auto labeller, paste the project link, set the Volunteer share and the Object name, and click Load. Click each object on the tile, or drag a box around it. With Draw by hand (d), you draw the box. Each tile you open counts as viewed.
  • Review (Esc): a map of every tile and label over the imagery. Green tiles have labels, solid white ones were viewed, faint ones aren't viewed yet, and grey ones, zoomed in, are the rest of the project. Click any tile to label it, or click Edit labels (e) to draw and fix labels on the map.
  • Download: Labels (GeoJSON) or Tiles (GeoJSON).

Label with the auto labeller has every step. The first load downloads the EdgeTAM model, about 41 MB.

A Freetown tile with the marked cells inside a yellow line and four boxes

Output Shape
Boxes The smallest box around each model outline, at any angle. A box drawn by hand stays as drawn, cut at the tile edge
Outlines The outline of each object

Every object keeps its outline, and its box is worked out from the outline, so the Output can change at any time. The labels, the tiles you viewed and the What to label fields are saved in the browser after each change, per project, or per tile URL, zoom and area file name. Come back later shows how to continue.

Try the Freetown example loads the Freetown solar panel project.

Without a MapSwipe project, choose Tile URL and area under Source (steps).

What the downloads hold
File Content
Labels (GeoJSON) One polygon per object in longitude and latitude (EPSG:4326), in the chosen output. imagery_url is at the top
Tiles (GeoJSON) One square per tile in the list, with tile_id, labels (its number of labels), viewed (true when it was opened), url (the tile's image) and pixels (the width of the square image in pixels, 1024 or 256). imagery_url is at the top

Each file is named after the results file or the area file, ending in _labels_obb_50.geojson (_labels_segment_50.geojson with Outlines) or _tiles_50.geojson. The number is the volunteer share; a Tile URL and area source leaves it out. These pages call the files labels.geojson and tiles.geojson. In tiles.geojson, url is the 1024 pixel image the auto labeller shows when the tile URL has @1x. With other tile URLs, url is the 256 pixel tile at the project zoom; for the detail the labels were drawn on, fetch the 16 tiles two zoom levels deeper from imagery_url.

tile_id is the tile's zoom, x and y in the Web Mercator tile grid, so a script can also fetch a tile by putting them into imagery_url. Each feature in labels.geojson has tile_id, object_name, the attribute with its value when one is set, output (rotated box or outline), source (the model, drawn by hand, or the name of a loaded GeoJSON file), marked_cells (how many cells volunteers marked on the tile) and imagery_url. Pixel positions are turned into longitude and latitude through the tile's place in the Web Mercator tile grid, and each outer ring runs counterclockwise, as RFC 7946 asks.

On a phone

EdgeTAM is a version of SAM 2 (Segment Anything Model 2) made for devices: its README describes it as "an on-device executable variant of the SAM 2" that "achieves 16 FPS on iPhone 15 Pro Max without quantization" (paper). That figure comes from the EdgeTAM authors. The GIF below was recorded in desktop Chromium at phone size (390 by 844 pixels); the speed of the page on a real phone has not been measured.

The same steps at phone size

Both GIFs can be downloaded and shared: laptop, phone.

How the auto labeller works

Everything runs in the browser. The page reads the project page, the results file, the project's imagery and the model files, and sends nothing back.

  1. The page keeps the cells where Single Feature and Multiple Features answers together reach the chosen share, as the results map does, and lists every tile with at least one kept cell, then, with Also show tiles below the share, every other tile with a volunteer answer.
  2. Each tile is shown at 1024 by 1024 pixels, with the detail of two zoom levels deeper than the project zoom. A tile URL with @1x, as from HOT's TiTiler servers, gives this image in one request with @4x; any other server whose URL has @1x must also accept @4x. Other tile URLs give 16 tiles two zoom levels deeper, joined into one image, so for a zoom 20 project the imagery must serve zoom 22. The imagery must send CORS headers. Parts beyond the edge of the image are black.
  3. The EdgeTAM image encoder (vision_encoder.onnx in the model repository) turns the tile into embeddings once, with the encoder in a background worker, while the tile before it is labelled. The previous, current and next tiles stay ready, so going back one tile doesn't read it again. Transformers.js runs it on the CPU with WebAssembly: with the Freetown example in Chromium on an Intel Core i9-14900HX laptop, about 1 second, and about 6 seconds with the CPU slowed four times. On an HTTPS page the browser keeps the model files (useBrowserCache).
  4. A tap is sent to prompt_encoder_mask_decoder.onnx as one point, and a drag as a box with its centre point. Each takes under a second. The page keeps the candidate mask with the highest predicted quality score. A box drawn with Draw by hand skips the model.
  5. The outline is traced with d3-contour, keeps the largest shape and is simplified to within one pixel with @turf/simplify. The box is the smallest rectangle around the outline's convex hull (@turf/convex).

The inputs were measured on 20 Freetown tiles with 36 hand-drawn reference boxes, counting a result as tight when it overlaps the reference box by at least 0.75. Simulated drags moved each edge of the reference box by a random share of its size.

Input Tight results Mean overlap
Tap in the middle of the group 30 of 36 0.83
Drag with each edge up to 10% off 35 of 36 0.88
Drag with each edge up to 20% off 29 of 36 0.84
Drag 20% larger than the group on every side 11 of 36 0.67

A drag close around the group gives the best result. A drag much larger than the group includes nearby roofs and objects. Outlines of large, dark arrays on similar roofs can be ragged; check them with Outlines before downloading.

Labels checker

Check labels.geojson before you submit it (What to deliver). The files stay in the browser.

The labels checker with the Stellenbosch example: building outlines in yellow over the drone imagery, the checks with 1,036 metal roofs of the 1,000 needed, and the spread check to fix at 33 tiles at zoom 19

  1. In the labels checker, choose labels.geojson and, optionally, the area-of-interest.geojson of each Locate project. Click Check.
  2. Each check shows Passed, To fix or Warning, and checks on single labels list the feature numbers. Those labels are red on the map. A delivery with a warning is accepted.
  3. Some To fix checks have a button that fixes the file:

    Button Fixes
    Set imagery_url Writes the URL you enter to the top of the file
    Set object_name Gives each feature without one the name in the box, which starts as the most common name in the file
    Close the outlines Ends each open outline of three or more points at its first point
    Remove the copies Removes each feature with the same id, shape and properties as an earlier one

    Click Download the fixed file. If a check is still To fix, such as the same shape twice with different types, fix it in QGIS, check the file again and deliver it.

  4. Choose the Project zoom (filled in for auto labeller files) and, for types, the Type attribute, such as surface.

  5. Labels per type shows the labels, share, kilometres of line and tiles at the project zoom for each type. The bar above it counts labels, or tiles when the file holds only lines. For boxes and outlines, a second bar counts the tiles all labels touch: red below 500, amber from 500, green at 1,000.
  6. Check on the map that every object inside the area has a label.

Try the Stellenbosch example checks 1,056 buildings and their roof:material from a block of 16 tiles of HOT's roof type training dataset, with each building's whole outline from OpenStreetMap (© OpenStreetMap contributors, ODbL), on the OpenAerialMap image Khayamandi Drone Imagery by Integrated Aerial Systems (CC-BY 4.0). Every check passes except the spread check: the labels touch 33 tiles at zoom 19, below the 500 a delivery needs.

What each check looks at
Check Flags when
A GeoJSON FeatureCollection with features The file has another type, or the features list is empty
imagery_url at the top of the file It is missing, starts without https://, or lacks {z}, {x} or {y}
Longitude and latitude, EPSG:4326 A coordinate is beyond 180 or 90 degrees, or the file names another CRS
Boxes, outlines or lines A feature is a point or a geometry collection, lacks a geometry, or nests its coordinates at the wrong depth
object_name on every feature A feature lacks object_name
Closed outlines and lines with a length A ring has fewer than four positions, ends away from its start, or encloses zero area, or a line has fewer than two positions (RFC 7946) or all its positions on one point
One feature per object, each shape once Two features have the same geometry
Outlines that don't cross themselves An outline crosses itself (turf kinks); lines may cross themselves, as a road can loop
Every label inside the area of interest A point on the label (turf pointOnFeature) is outside every area file chosen, which gives a warning
At least 1,000 of the most common type The largest type has fewer than 1,000 labels; labels without a value under Type attribute don't count toward it
At least 1,000 tiles of one type, for a file of lines The type with the most tiles touches fewer than 1,000 tiles at the project zoom, the project zoom is unset, or every label lacks a value under Type attribute
Spread over at least 1,000 tiles, for boxes and outlines All labels together touch fewer than 500 tiles at the project zoom; 500 to 999 tiles, or an unset project zoom, gives a warning

Lines are measured with turf length and their tiles with tile-cover; each line counts as one label, so a road split into segments counts once per segment.