Ask for it like this
- “Map this data and color it by population”
- “Filter these counties and make a choropleth I can share”
- “Make one map colored by year and another by acreage, and give me two links”
Inputs
Accepts: ArcGIS FeatureServer/MapServer layer, GeoJSON, WMS, WFS, KML. Engines: maplibre, arcgis.
source: HTTPS URL of a public layer (or a sublayer index).
Optional:
where: Read-only SQL attribute filter on real field names.renderer: RendererSpec: simple, categories, choropleth, graduated-symbols, heatmap, or auto.basemap: One of the map-v1 basemap ids.camera: Center, zoom, tilt, heading, or fit to layers.outputs: Link, QR card, Smart Map PNG, PDF.
Steps
Discover → inspect → plan → validate → execute → verify → share. Each step names where it runs; none is a hosted REST endpoint.
- 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) - 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) - plan: Choose the simplest level that can express the request: a ?layer= URL for one layer with a basic style; a map-v1 spec for categories, class breaks, colors, camera or several layers; the in-page API only to change a map already open. Keep attribute filters (where) separate from spatial ones. (Declarative URL, Standalone JavaScript, In-browser API;
https://gismap.online/schemas/map-v1.schema.json, https://gismap.online/api/url-parameters.json, renderers.suggest, layers.suggestStyles) - validate: Validate the spec and renderer against the real fields. Treat warnings as unfinished work. (Standalone JavaScript, In-browser API;
mapSpec.validate, renderers.validate, mapSpec.prepareVerification) - execute: Write the link: https://gismap.online/#map=json:<URI-encoded map-v1>. For follow-ups, decode the existing link (mapSpec.decode or mapSpec.fromShareParameters), clone it, change only what was asked, and write a new link per variant. (Declarative URL, Standalone JavaScript, In-browser API;
mapSpec.createLink, mapSpec.decode, mapSpec.fromShareParameters, mapSpec.load) - verify: Open the link, wait for gisMapOnline.ready and the layers, then check describe().state.issues, layers.list() (loaded, feature count, renderer, where) and mapSpec.fromCurrent(). (In-browser API;
ready, describe, layers.list, mapSpec.fromCurrent, mapSpec.issues) - share: Return the actual link. Optional: a Smart Map PNG (smartImages.downloadCurrent) or the app's Map PDF and QR card (Share & export, in the UI). (Declarative URL, In-browser API;
mapSpec.createLink, smartImages.createShareLink, smartImages.downloadCurrent)
Result
One map-v1 object: layers (url, where, renderer, opacity), basemap, skin, camera, legend. Schema: /schemas/map-v1.schema.json.
- Interactive map link (#map=json: or compressed #map=) · Declarative URL
- Smart Map PNG (image with the project embedded) · In-browser API · static. Keep the original file: image services and messengers can strip the embedded data. Remote layers are referenced, not embedded.
- Map PDF and QR card · Outside GISMap Online · static. Made in the app with Share & export (no in-page method yet). A PDF is a static picture of the map.
Verify before reporting success
- Source loaded with a nonzero feature count
- Filter applied (layer where matches)
- Renderer type and field applied; legend shown
- Camera and basemap as requested
- Share link reopens to the same spec (mapSpec.fromCurrent)
- Each requested export exists
Report prepared, validated, loaded, rendered and verified separately, and partial or failed when they apply. A generated link alone is only prepared.
Limitations
- Readable #map=json: links are limited to 8,192 characters; use mapSpec.createLink for compressed links.
- A year slider is not part of map-v1; use a timeline briefing for year-by-year playback.
- Map PDF and map QR card have no in-page API; briefing.exportPdf and briefing.exportQrCard cover briefings.
If something goes wrong
- If a field is missing, re-read ?f=pjson and use the exact name and case.
- If validation warns about a renderer, the service style is used; fix the renderer rather than shipping the warning.
- If a compressed link cannot be decoded in your environment, ask for the original JSON or a #map=json: link.