Agent recipe · Available · tested on 0.53.0

Numeric or fixed-height 3D extrusion

Can an AI agent make a 3D map where each area's height shows a number?

Yes. The agent checks that the layer has polygons and a numeric field, then writes a map-v1 spec whose ArcGIS renderer extrudes each polygon by $feature["FIELD"] × a multiplier (or a fixed height), with a tilted camera. The link reopens the same 3D view.

Ask for it like this

  • “Make a 3D map of grape production in California”
  • “Make the county heights represent acreage”
  • “Extrude these buildings by height”

Inputs

Accepts: Polygon FeatureServer layer, Polygon GeoJSON. Engines: maplibre, arcgis.

  • source: A polygon layer.
  • height: A numeric field with a multiplier, or a fixed height in meters.

Optional:

  • where: Filter.
  • color: Uniform, categories or class breaks.
  • camera: Tilt 45–65° and a heading.
  • basemap: A *-3d basemap.

Steps

Discover → inspect → plan → validate → execute → verify → share. Each step names where it runs; none is a hosted REST endpoint.

  1. discover: Read llms.txt, this recipe and api/capabilities.json; note the engine and execution environment you actually have. (Declarative URL; https://gismap.online/llms.txt, https://gismap.online/api/capabilities.json, https://gismap.online/api/manifest.json)
  2. inspect: Read the source metadata: geometry type, field names and types, spatial reference, extent, sentinels and query support. Query real values before filtering; never invent fields. (Declarative URL, Standalone JavaScript, In-browser API; <layer URL>?f=pjson, sources.inspect, sources.detectSentinels, layers.metadata)
  3. plan: Confirm polygon geometry and a numeric field; check nulls, negatives, sentinels and outliers. Source units are not meters: pick a multiplier so the tallest feature is readable, and say so. (Standalone JavaScript; sources.inspect, renderers.describeValues)
  4. validate: Validate the spec; an unsupported extrusion expression is reported, not ignored. (Standalone JavaScript, In-browser API; mapSpec.validate)
  5. execute: Use renderer { type: "arcgis", json } with PolygonSymbol3D Extrude symbols and visualVariables [{ type: "sizeInfo", valueExpression: '$feature["FIELD"] * k' }] (or a fixed Extrude size), plus a camera with tilt. (Declarative URL, Standalone JavaScript; https://gismap.online/schemas/map-v1.schema.json, mapSpec.createLink)
  6. verify: Open the link and confirm the extrusion is drawn (MapLibre fill-extrusion or ArcGIS SceneView), the colors and the tilted camera. (In-browser API; layers.list, mapSpec.fromCurrent)
  7. share: Return the link; a Smart Map PNG keeps a picture with the project. (Declarative URL, In-browser API; mapSpec.createLink, smartImages.downloadCurrent)

Result

map-v1 with an ArcGIS renderer using Extrude symbol layers and a sizeInfo expression, and a tilted camera. Schema: /schemas/map-v1.schema.json.

  • Interactive 3D map link · Declarative URL
  • Smart Map PNG · In-browser API · static

Verify before reporting success

  • Polygon geometry confirmed
  • Height = field × multiplier (or fixed) on the drawn features
  • Colors match the legend
  • Camera tilted
  • Settings survive the share link

Report prepared, validated, loaded, rendered and verified separately, and partial or failed when they apply. A generated link alone is only prepared.

Limitations

  • MapLibre supports only $feature["FIELD"] * number expressions; other Arcade is refused with an error.
  • Heights are display meters, not the data's units; label the multiplier.
  • Points become columns only in some engines; polygon extrusion is the portable case.

If something goes wrong

  • If the extrusion is refused, simplify the expression to field × number.
  • If tall outliers hide the rest, lower the multiplier or filter outliers and say so.

Examples

Example · rendered · checked 2026-10-21

California grape acreage in 3D

Prompt: “Use county grape production, filter to California counties over 1,000 acres, extrude by acres × 0.01 with a purple ramp, tilt the camera, and give me a link.”

Data: USDA Census of Agriculture 2022 grape production (Esri)

Open the result

map-v1 JSON
{
  "version": 1,
  "title": "California grape acreage in 3D (acres × 0.01 m)",
  "basemap": "gray-3d",
  "camera": {
    "center": [
      -120.1,
      36.3
    ],
    "zoom": 7.2,
    "tilt": 60,
    "heading": 20
  },
  "legend": true,
  "layers": [
    {
      "url": "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USDA_Census_of_Agriculture_2022_Grape_Production/FeatureServer/0",
      "type": "feature",
      "title": "California grape acreage (USDA 2022)",
      "where": "STATE_ABBR = 'CA' AND GRAPES_ACRES_BEAR_NON_BEAR_TOT > 1000",
      "opacity": 0.9,
      "renderer": {
        "type": "arcgis",
        "json": {
          "type": "classBreaks",
          "field": "GRAPES_ACRES_BEAR_NON_BEAR_TOT",
          "classBreakInfos": [
            {
              "minValue": 1000,
              "maxValue": 5000,
              "label": "1,000–5,000 acres",
              "symbol": {
                "type": "PolygonSymbol3D",
                "symbolLayers": [
                  {
                    "type": "Extrude",
                    "material": {
                      "color": "#dadaeb"
                    }
                  }
                ]
              }
            },
            {
              "minValue": 5000,
              "maxValue": 15000,
              "label": "5,000–15,000 acres",
              "symbol": {
                "type": "PolygonSymbol3D",
                "symbolLayers": [
                  {
                    "type": "Extrude",
                    "material": {
                      "color": "#bcbddc"
                    }
                  }
                ]
              }
            },
            {
              "minValue": 15000,
              "maxValue": 40000,
              "label": "15,000–40,000 acres",
              "symbol": {
                "type": "PolygonSymbol3D",
                "symbolLayers": [
                  {
                    "type": "Extrude",
                    "material": {
                      "color": "#9e9ac8"
                    }
                  }
                ]
              }
            },
            {
              "minValue": 40000,
              "maxValue": 80000,
              "label": "40,000–80,000 acres",
              "symbol": {
                "type": "PolygonSymbol3D",
                "symbolLayers": [
                  {
                    "type": "Extrude",
                    "material": {
                      "color": "#6a51a3"
                    }
                  }
                ]
              }
            },
            {
              "minValue": 80000,
              "maxValue": 170000,
              "label": "80,000–170,000 acres",
              "symbol": {
                "type": "PolygonSymbol3D",
                "symbolLayers": [
                  {
                    "type": "Extrude",
                    "material": {
                      "color": "#4a1486"
                    }
                  }
                ]
              }
            }
          ],
          "visualVariables": [
            {
              "type": "sizeInfo",
              "valueExpression": "$feature[\"GRAPES_ACRES_BEAR_NON_BEAR_TOT\"] * 0.01"
            }
          ]
        }
      }
    }
  ]
}

What was checked:

  • Opened headless on MapLibre: 26 counties loaded with purple class breaks; at the tilted camera the extrusion walls are visible on the tallest counties (screenshot inspected). At acres × 0.01 the tallest is about 1.6 km, so zoom in to see the relief.
  • ArcGIS SceneView was not checked in this pass.