SemanticsMapProtocol
Panoramax.utils.SemanticsMapProtocol
Kind: static class of Panoramax.utils
new SemanticsMapProtocol(api)
Semantics Map Protocol adds a new URI scheme "sem://" to MapLibre.
It allows loading tile per tile metadata from semantics API, seamlessly.
You can use them with URI like:
- sem://"semantics.osm|traffic_sign" IS NOT NULL/{z}/{x}/{y}
- sem://"semantics.osm|traffic_sign"='yes'/{z}/{x}/{y}
| Param | Type | Description |
|---|---|---|
| api | API |
The API |
semMapProtocol.tile(params, abort) ⇒ object
Get a single tile
Kind: instance method of SemanticsMapProtocol
Returns: object - The tile, as expected by MapLibre
| Param | Type | Description |
|---|---|---|
| params | object |
MapLibre parameters |
| abort | AbortController |
The abort signal handler |