Loading documentation...
Vector tiles for US state boundaries and labels. Ideal for thematic maps, state-level aggregations, and administrative overlays.
https://api.landmapmagic.com/v1/tiles/states/{z}/{x}/{y}.mvtReturns a Mapbox Vector Tile containing state polygon geometries and label points. Zoom range: 0 – 12.
| Name | Type | Description |
|---|---|---|
| z* | number | Zoom level (0-12). |
| x* | number | Tile X coordinate. |
| y* | number | Tile Y coordinate. |
| key* | string | Your API key. |
statesState polygon boundaries.z0-12states_labelsState label points (centroids).z0-12| Attribute | Type | Description |
|---|---|---|
| id | number | Unique internal feature identifier. |
| NAME | string | Full state name (e.g. "Iowa"). |
| STUSPS | string | Two-letter USPS state abbreviation (e.g. "IA"). |
| STATEFP | string | Two-digit FIPS state code (e.g. "19"). |
curl "https://api.landmapmagic.com/v1/tiles/states/4/3/5.mvt?key=YOUR_API_KEY" \
--output tile.mvtconst response = await fetch(
"https://api.landmapmagic.com/v1/tiles/states/4/3/5.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/states/4/3/5.mvt",
params={"key": "YOUR_API_KEY"}
)
print(f"Status: {response.status_code}, Size: {len(response.content)} bytes")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. Use a vector tile library such as deck.gl MVTLayer, Mapbox GL JS, or maplibre-gl to decode and render the tile.