<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">ISPRS-Archives</journal-id>
<journal-title-group>
<journal-title>The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences</journal-title>
<abbrev-journal-title abbrev-type="publisher">ISPRS-Archives</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2194-9034</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/isprs-archives-XLIX-B4-2026-203-2026</article-id>
<title-group>
<article-title>Chat2Map: A ReAct-based Agent Framework for Automated Web Map Generation from
Natural Language Instructions</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhang</surname>
<given-names>Hongping</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ma</surname>
<given-names>Peilong</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wang</surname>
<given-names>Cong</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ding</surname>
<given-names>Lei</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wang</surname>
<given-names>Zhen</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Li</surname>
<given-names>Heng</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>National Geomatics Center of China, Beijing, China</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Nanjing Normal University, School of Geography, 210023 Nanjing, Jiangsu, China</addr-line>
</aff>
<pub-date pub-type="epub">
<day>04</day>
<month>08</month>
<year>2026</year>
</pub-date>
<volume>XLIX-B4-2026</volume>
<fpage>203</fpage>
<lpage>209</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2026 Hongping Zhang et al.</copyright-statement>
<copyright-year>2026</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://isprs-archives.copernicus.org/articles/XLIX-B4-2026/203/2026/isprs-archives-XLIX-B4-2026-203-2026.html">This article is available from https://isprs-archives.copernicus.org/articles/XLIX-B4-2026/203/2026/isprs-archives-XLIX-B4-2026-203-2026.html</self-uri>
<self-uri xlink:href="https://isprs-archives.copernicus.org/articles/XLIX-B4-2026/203/2026/isprs-archives-XLIX-B4-2026-203-2026.pdf">The full text article is available as a PDF file from https://isprs-archives.copernicus.org/articles/XLIX-B4-2026/203/2026/isprs-archives-XLIX-B4-2026-203-2026.pdf</self-uri>
<abstract>
<p>Web map creation remains difficult for non-specialists because it requires the combined use of geospatial data understanding, cartographic design, front-end development, and platform-specific mapping APIs. Although large language models have recently improved natural-language-driven code generation, they still perform unreliably in web mapping tasks, where failures often arise from hallucinated API usage, heterogeneous input data structures, and the gap between code plausibility and rendered map quality. This paper presents Chat2Map, an agent framework for automated web map generation from natural-language instructions. Rather than treating the task as one-shot text-to-code generation, Chat2Map formulates web map authoring as a grounded workflow that integrates skill and tool grounding, runtime schema construction for uploaded GeoJSON and JSON files, and an iterative generate-execute- diagnose-repair loop based on runtime and visual feedback. To validate the framework, we implemented a working prototype with Tianditu as a reference API setting and evaluated it on 30 web map generation tasks covering both directive-based generation and data-driven visualization. The results show that Chat2Map achieved 80% code executability and a 70% task success rate on directive-based tasks, while also maintaining a 70% task success rate on data-driven tasks where baseline models failed to produce usable outputs. These findings suggest that reliable web map generation depends not only on stronger code models, but also on how model reasoning is connected to domain knowledge, explicit data understanding, and real execution environments.</p>
</abstract>
<counts><page-count count="7"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>