@geospatial-sdk/legend
TypeScript icon, indicating that this package has built-in type declarations

0.0.5-dev.31 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @geospatial-sdk/legend

Weekly Downloads

135

Version

0.0.5-dev.31

License

BSD-3-Clause

Unpacked Size

19.4 kB

Total Files

16

Last publish

Collaborators

  • cmoinier
  • jahow