MapTaste

v0.0.3
io.github.FelixFangX/maptaste Checked 7 hours ago Published 2 days ago

Named MapLibre tastes: lint styles with 15 rules, get tokens/examples, and preview places.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_tastes

List named maptaste schools: tokens, composition caps, and the plate (roads, type, extrusion, camera). Pick one before checking.

taste_tokens

Tokens, composition caps, plate stage, and the rules sentence for one named taste. Same payload as `maptaste tokens --taste <name> --format json`.

ParameterTypeDescription
taste *string

taste_example

A minimal MapLibre style that scores 100 under one taste. Same payload as `maptaste example --taste <name>`. Copy it instead of inventing a palette.

ParameterTypeDescription
taste *string

check_taste

Check a MapLibre style document against one named taste. Reads the style only: not features, not a legend, and not a rendered image. Defaults to ink-paper. The score is a taste score. coverage.statement says whether any taste errors block, how many values are unresolved, and that this is not a MapLibre validation. Unresolved values are MT014, not a pass. --pack global aliases ink-paper; --pack cn aliases cn-metro.

ParameterTypeDescription
packstring
styleobject
styleJsonstring
tastestring

apply_taste

Return the <taste>.tokens.json and <taste>.style.json bodies for one taste. Pass `out` to also write those files, same as `maptaste apply --taste <name>`.

ParameterTypeDescription
taste *string
outstring

validate_style

Basic style structure validation (not the full MapLibre schema)

ParameterTypeDescription
style *

preview_place

Open a hosted place preview; place may be English, Chinese, or other local names (proper nouns). Optional lang (e.g. zh, en, ja) shapes caption language. Optional taste selects a named school.

ParameterTypeDescription
langstringBCP 47 language tag for caption language
llstringlng,lat
mode
placestring
tastestring
theme
zoomnumber

preview_info

Locate the local MapLibre showcase