@geospatial-sdk/legend
v0.0.5-dev.31
Published
Get legend graphic from the map-context
Downloads
98
Readme
legend
A library to get legend graphics from the map-context.
Installation
To install the package, use npm:
npm install @geospatial-sdk/legend
Usage
import { createLegendFromLayer } from "@geospatial-sdk/legend";
const layer = {
type: "wms",
url: "https://example.com/wms",
name: "test-layer",
};
createLegendFromLayer(layer).then((legendDiv) => {
document.body.appendChild(legendDiv);
});
Documentation
For more detailed API documentation, see the documentation website.
Examples
For examples and demos, see the examples website.