AI connection guide

Connect an AI model

GISMap Online can send clicked locations, reverse-geocoder details, selected feature data, and loaded-layer metadata to a model you configure. Choose local Ollama or a supported online API provider.

Before you connect

Open Project → Configure AI. GISMap Online does not provide a hosted model or proxy: your browser connects directly to the endpoint you enter. When you ask a question, the configured provider receives the question and a bounded JSON map context containing the clicked coordinates, address and geocoder details, selected features, and loaded-layer metadata.

API-token privacy. Online API tokens remain only in page memory, are never written to browser storage or project exports, and must be entered again after a reload. The provider still receives the question and map context. Do not send sensitive data to a provider you do not trust.

Option 1: local Ollama

  1. Install and start Ollama, then install a model—for example, run ollama pull llama3.2.
  2. In GISMap Online, select Ollama (local). Keep the endpoint http://localhost:11434 unless Ollama runs elsewhere.
  3. Enter the complete installed model tag shown by ollama list, including a suffix such as :27b when present.
  4. Allow Ollama to accept requests from the GISMap Online site origin, restart Ollama, select Test connection, then select Use for this tab.

Allow the production site on macOS

launchctl setenv OLLAMA_ORIGINS "https://gismap.online"

Fully quit Ollama from its menu-bar icon and reopen it before testing. For local development, replace the quoted origin with the exact local origin shown in your browser, including its port.

Windows or Linux

Set OLLAMA_ORIGINS to the exact GISMap Online origin in the environment used to start the Ollama service, then restart that service. Avoid using *: Ollama's local API has no authentication, so an exact trusted origin is safer.

Option 2: an API-key provider

  1. Select OpenAI, Anthropic Claude, or OpenAI-compatible endpoint.
  2. Confirm the HTTPS endpoint and enter a model identifier available to your account.
  3. Paste the API token and select Use for this tab. The token disappears when the page reloads.

OpenAI uses the /responses API. OpenAI-compatible servers must implement a browser-accessible /chat/completions endpoint. Both must permit cross-origin requests from GISMap Online. A provider can reject a request because of an invalid model, key, endpoint, account limit, or browser CORS policy.

Production recommendation. Direct browser keys are suitable only for personal testing. For a public or shared deployment, put paid-provider credentials behind a controlled server-side proxy with authentication, rate limits, origin checks, logging appropriate to your privacy policy, and a restricted model allowlist.

Chat with your map: the Map assistant

Once a model is connected, open Tools → Map assistant and ask in plain words: “Map U.S. corn sales by county”, “make a briefing of these features”, “a guided tour of the five largest ballparks”, “draft a field task to check these two sites”. The assistant reads your data first (fields, codes that mean no data, real feature names and places), then builds the map, briefing, tour or field task, and each step it takes shows in the conversation. Field tasks open as drafts for you to check before sharing.

GISMap Online writes the model's instructions itself and sends them with every message, together with what is on the map and the actions it may take, so nothing needs to be set up on the provider's side. Models that support tool calling (most current Ollama, OpenAI, Anthropic and OpenAI-compatible models) act directly; others are guided through a simpler text format. Larger models plan better; on a laptop, expect each step to take a few seconds to a minute.

What the assistant sends. Your messages, the map's layers and fields, and the results of its actions (such as the features it read) go to the provider you configured. A local Ollama endpoint processes those AI requests on your computer. Remote map services, basemaps and geocoders can still make network requests.

Troubleshooting

  • Ollama cannot be reached: confirm it is running, the endpoint is correct, and OLLAMA_ORIGINS matches the browser origin exactly.
  • Model not found: use the exact tag returned by ollama list or the provider's model list.
  • Failed to fetch or CORS error: the endpoint must allow direct requests from the current GISMap Online origin.
  • 401 or 403: re-enter a valid token and confirm that it has access to the selected model.
  • No AI controls: finish configuration with Use for this tab; Intelligence shows AI controls only while a provider is configured.
Data and AI privacy. Local file import runs in your browser. Remote services and basemaps are requested from their publishers. Exporting or sharing transfers the content you choose; using a configured AI provider can send your question and relevant map context to that provider. Review the AI connection guide before using sensitive data.

Continue exploring

Use the public GIS examples catalog to open a working dataset, or return to the GISMap Online viewer to add your own source.