Sections Tiles
Vector tiles for PLSS section boundaries and labels. Sections are one-mile-square subdivisions of townships, forming the fundamental unit of the Public Land Survey System.
Endpoint
https://api.landmapmagic.com/v1/tiles/sections/{z}/{x}/{y}.mvtReturns a Mapbox Vector Tile containing section polygon geometries and label points. Zoom range: 8 – 16.
URL Parameters
Parameters
| Name | Type | Description |
|---|---|---|
| z* | number | Zoom level (8-16). |
| x* | number | Tile X coordinate. |
| y* | number | Tile Y coordinate. |
| key* | string | Your API key. |
Source Layers
Source Layers
sectionsSection polygon boundaries.z8-16sections_labelsSection label points (centroids).z8-16Attributes
Available Attributes
| Attribute | Type | Description |
|---|---|---|
| id | number | Unique internal feature identifier. |
| section_id | string | Unique section identifier combining township and section info. |
| section_number | string | Section number within the township (1-36). |
| section_label | string | Display label for the section (e.g. "Sec 14"). |
| plss_id | string | Full PLSS identifier (e.g. "IA090830N0240W0SN140"). |
| display_name | string | Human-readable display name including township context. |
| type | string | Feature type classification (e.g. "section"). |
| feature_id | string | BLM (Bureau of Land Management) feature identifier. |
Code Examples
curl "https://api.landmapmagic.com/v1/tiles/sections/12/843/1522.mvt?key=YOUR_API_KEY" \
--output tile.mvtconst response = await fetch(
"https://api.landmapmagic.com/v1/tiles/sections/12/843/1522.mvt?key=YOUR_API_KEY"
);
const data = await response.arrayBuffer();
console.log("Tile size:", data.byteLength, "bytes");import requests
response = requests.get(
"https://api.landmapmagic.com/v1/tiles/sections/12/843/1522.mvt",
params={"key": "YOUR_API_KEY"}
)
print(f"Status: {response.status_code}, Size: {len(response.content)} bytes")Response
Response Headers
HTTP/1.1 200 OK
Content-Type: application/vnd.mapbox-vector-tile
Content-Encoding: gzip
Cache-Control: public, max-age=86400The response body is a binary MVT protobuf. Empty tiles return HTTP 204 with no body.
Styles
Fetch a renderer-ready style for the Sections layer from the unified /v1/styles endpoint. The response includes sources, layers, attribution, zoom ranges, and label deduplication baked in. Use the landmapmagic npm package for one-line install per target, or call the API directly.
MapLibre / Mapbox
Identical payload either way — Mapbox GL JS consumes a MapLibre Style Spec v8 doc as-is. Pick the keyword that reads best in your codebase.
GET https://api.landmapmagic.com/v1/styles?target=maplibre&layers=sections&key=YOUR_API_KEYGET https://api.landmapmagic.com/v1/styles?target=mapbox&layers=sections&key=YOUR_API_KEYconst style = await fetch(
'https://api.landmapmagic.com/v1/styles?' +
new URLSearchParams({
key: 'YOUR_API_KEY',
target: 'maplibre', // or 'mapbox' — same response
layers: 'sections',
})
).then((r) => r.json());
map.setStyle(style);Leaflet
GET https://api.landmapmagic.com/v1/styles?target=leaflet&layers=sections&key=YOUR_API_KEYimport { mountLeafletLandMap } from 'landmapmagic/leaflet';
await mountLeafletLandMap({
apiKey: 'YOUR_API_KEY',
map,
layers: ['sections'],
});Google + deck.gl
GET https://api.landmapmagic.com/v1/styles?target=google&layers=sections&key=YOUR_API_KEYimport { mountGoogleLandMap } from 'landmapmagic/google';
await mountGoogleLandMap({
apiKey: 'YOUR_API_KEY',
map,
overlay,
layers: ['sections'],
});