{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mapposter-xyz/json-schema/mapposter-xyz-render-request-schema.json",
  "title": "RenderRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mapposter-xyz-openapi.json#/components/schemas/RenderRequest",
  "type": "object",
  "required": [
    "lat",
    "lon"
  ],
  "properties": {
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Latitude of the map centre."
    },
    "lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Longitude of the map centre."
    },
    "zoom": {
      "type": "number",
      "description": "Map zoom: about 11 for a metro area, 13 a city, 15 a neighbourhood, 16-17 a few streets."
    },
    "theme": {
      "type": "string",
      "enum": [
        "ancient_woodland",
        "arctic_frost",
        "arid_canyon",
        "aurora_glow",
        "autumn_whisper",
        "blueprint_classic",
        "charcoal_sketch",
        "copper_patina",
        "cyber_glitch",
        "cyber_noir",
        "desert_mirage",
        "deep_ocean",
        "dark_gold",
        "emerald_valley",
        "ethereal_ghost",
        "forest_shadow",
        "golden_era",
        "lavender_mist",
        "mint_fizz",
        "midnight_neon",
        "monochrome_pro",
        "mangrove_maze",
        "paper_heritage",
        "riverine_flow",
        "retro_synth",
        "royal_velvet",
        "rustic_clay",
        "sakura_bloom",
        "solar_flare",
        "steel_metropolis",
        "sunset_blush",
        "volcanic_ash",
        "nautical_chart",
        "wine_country",
        "mediterranean_sun",
        "nordic_fjord",
        "vintage_atlas",
        "rose_gold",
        "indigo_night",
        "espresso_roast",
        "jade_silk",
        "twilight_hour",
        "sandstone_arch",
        "obsidian_glass",
        "storm_front",
        "tobacco_leather",
        "ivory_tower",
        "sage_garden",
        "coral_depths",
        "terracotta_villa",
        "dusty_rose",
        "midnight_dark",
        "minimal_white",
        "modern_voyager",
        "standard",
        "satellite"
      ],
      "description": "`standard` and `satellite` are map tiles (renderMode `tile`, personal use only); the rest are artistic vector themes. The old keys dark, minimal and voyager map to midnight_dark, minimal_white and modern_voyager."
    },
    "renderMode": {
      "type": "string",
      "enum": [
        "artistic",
        "tile"
      ],
      "description": "`artistic` (vector themes, the default) or `tile` (the map-tile styles `standard` and `satellite`)."
    },
    "city": {
      "type": "string",
      "description": "Main poster text (the title)."
    },
    "country": {
      "type": "string",
      "description": "Second line (the subtitle)."
    },
    "width": {
      "type": "number",
      "description": "Poster width in px (its aspect; the file is scaled to maxDimension)."
    },
    "height": {
      "type": "number",
      "description": "Poster height in px."
    },
    "format": {
      "type": "string",
      "enum": [
        "png",
        "jpeg",
        "webp",
        "pdf",
        "svg"
      ],
      "default": "png",
      "description": "`svg` is true vector for the artistic themes (fonts embedded) but leaves map labels out; for the map-tile styles it wraps a raster image."
    },
    "maxDimension": {
      "type": "number",
      "minimum": 256,
      "description": "Longest edge in px; the server caps it (4096 by default)."
    },
    "preview": {
      "type": "boolean",
      "description": "Also return a 640px WebP preview (base64), e.g. to show the poster in a chat."
    },
    "params": {
      "type": "object",
      "description": "More of the design, by editor field name. These may also be given at the top level.",
      "properties": {
        "bearing": {
          "type": "number",
          "description": "Map rotation in degrees (0 = north up)."
        },
        "mapShape": {
          "type": "string",
          "enum": [
            "rectangle",
            "circle",
            "hexagon",
            "heart"
          ]
        },
        "matEnabled": {
          "type": "boolean",
          "description": "Gallery-style mat (passe-partout) around the map."
        },
        "showLabels": {
          "type": "boolean",
          "description": "Street, place and water names, for the themes that have them (midnight_dark, minimal_white, modern_voyager)."
        },
        "overlayBgType": {
          "type": "string",
          "enum": [
            "none",
            "vignette",
            "radial"
          ]
        },
        "cityFont": {
          "type": "string",
          "description": "CSS font-family of the title, e.g. \"'Playfair Display', serif\"."
        },
        "countryFont": {
          "type": "string",
          "description": "CSS font-family of the subtitle."
        },
        "coordsFont": {
          "type": "string",
          "description": "CSS font-family of the coordinates line."
        },
        "overlaySize": {
          "type": "string",
          "enum": [
            "none",
            "small",
            "medium",
            "large"
          ]
        },
        "matWidth": {
          "type": "number"
        },
        "matWhiteBorder": {
          "type": "boolean"
        },
        "matShowBorder": {
          "type": "boolean"
        },
        "matBorderWidth": {
          "type": "number"
        },
        "matBorderOpacity": {
          "type": "number"
        },
        "showMarker": {
          "type": "boolean"
        },
        "markers": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "lat",
              "lon"
            ],
            "properties": {
              "lat": {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              "lon": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              }
            }
          },
          "description": "Pins on the map."
        },
        "markerIcon": {
          "type": "string",
          "enum": [
            "pin",
            "circle",
            "heart",
            "star",
            "none"
          ]
        },
        "markerSize": {
          "type": "number",
          "description": "Marker size as a multiple of 40 px (1 = 40 px)."
        },
        "markerColor": {
          "type": "string",
          "description": "Marker colour as #RRGGBB; empty = the theme accent."
        },
        "showRoute": {
          "type": "boolean"
        },
        "routeStartLat": {
          "type": "number"
        },
        "routeStartLon": {
          "type": "number"
        },
        "routeEndLat": {
          "type": "number"
        },
        "routeEndLon": {
          "type": "number"
        },
        "routeViaPoints": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "lat",
              "lon"
            ],
            "properties": {
              "lat": {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              "lon": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              }
            }
          },
          "description": "Points the route passes through."
        },
        "routeColor": {
          "type": "string",
          "description": "Route colour as #RRGGBB; empty = the theme route colour."
        },
        "overlayX": {
          "type": "number",
          "description": "Horizontal text position, 0-1."
        },
        "overlayY": {
          "type": "number",
          "description": "Vertical text position, 0-1."
        },
        "showCountry": {
          "type": "boolean"
        },
        "showCoords": {
          "type": "boolean"
        },
        "cityFontSize": {
          "type": "number",
          "description": "Title size in px; 0 = automatic."
        },
        "cityLetterSpacing": {
          "type": "number"
        },
        "cityFontWeight": {
          "type": "string",
          "enum": [
            "normal",
            "bold"
          ]
        },
        "cityTextTransform": {
          "type": "string",
          "enum": [
            "uppercase",
            "none",
            "capitalize"
          ]
        },
        "showWater": {
          "type": "boolean"
        },
        "showParks": {
          "type": "boolean"
        },
        "showRoads": {
          "type": "boolean"
        },
        "showBuildings": {
          "type": "boolean"
        }
      }
    },
    "rawParams": {
      "type": "object",
      "additionalProperties": true,
      "description": "Editor share-link parameters by their short name, passed through as they are."
    }
  }
}