agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-layers/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-layers

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for adding and querying layers. Read before generating data code. 1. Source? Feature service → FeatureLayer; .geojson → GeoJSONLayer; .csv → CSVLayer; client graphics → GraphicsLayer; tiles → TileLayer. 2. Querying? layer.createQuery(), then q.where = (${q.where}) AND ... (keeps the definitionExpression). 3. Need fields from a query? Set query.outFields (the layer's outFields do not limit queries). 4. Large dataset? Server-side where; results stop at maxRecordCount (exceededTransferLimit).

The file

Files
AGENTS.md

Agent Guide: arcgis-layers

Quick-reference for adding and querying layers. Read before generating data code.

Quick Decision Tree

  1. Source? Feature service → FeatureLayer; .geojson → GeoJSONLayer; .csv → CSVLayer; client graphics → GraphicsLayer; tiles → TileLayer.
  2. Querying? layer.createQuery(), then q.where = `(${q.where}) AND ...` (keeps the definitionExpression).
  3. Need fields from a query? Set query.outFields (the layer's outFields do not limit queries).
  4. Large dataset? Server-side where; results stop at maxRecordCount (exceededTransferLimit).

Setup Checklist

  • Create the layer with the Core API, then map.add(layer).
  • Set outFields to the fields you actually use.
  • Use layer.createQuery() + queryFeatures for reads; never overwrite its where.
  • Check exceededTransferLimit before treating a result as complete.
  • Page with query.start / query.num for big result sets.

Anti-patterns (one-liner reminders)

  • ❌ outFields: ["*"] by default.
  • ❌ Client-side filtering of a full download.
  • ❌ q.where = "..." on a layer with definitionExpression (drops the filter).
  • ❌ new Query() expecting geometry (returnGeometry is false).
  • ❌ Index-assigning into map.layers (use add/removeAt).

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — Layer + Query signatures
  • references/examples.md — GeoJSON / CSV / query
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-featurelayer-query.ts, snippet-geojson.ts, snippet-graphics.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.