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.
Option 1: local Ollama
- Install and start Ollama, then install a model—for example, run
ollama pull llama3.2. - In GISMap Online, select Ollama (local). Keep the endpoint
http://localhost:11434unless Ollama runs elsewhere. - Enter the complete installed model tag shown by
ollama list, including a suffix such as:27bwhen present. - 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
- Select OpenAI, Anthropic Claude, or OpenAI-compatible endpoint.
- Confirm the HTTPS endpoint and enter a model identifier available to your account.
- 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.
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.
Troubleshooting
- Ollama cannot be reached: confirm it is running, the endpoint is correct, and
OLLAMA_ORIGINSmatches the browser origin exactly. - Model not found: use the exact tag returned by
ollama listor 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.
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.