This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

embracethemirth

1.0.4 • Public • Published

ol-side-panel

A responsive tabbed left side panel for OpenLayers.

image

Inspiration / Credit

ol-side-panel is inspired by and originally based on the code of Turbo87/sidebar-v2 - also MIT licensed.

Getting started

npm i ol-side-panel
import { SidePanel } from 'ol-side-panel';

const sidePanel = new SidePanel();

map.addControl(sidePanel);

const layersPane = sidePanel.definePane({
  paneId: 'layers',
  name: "Layers",
  icon: '<i class="bi bi-layers-half"></i>'
});

const layersGreeting = document.createElement('p');
layersGreeting.innerHTML = "Hi there layers!";

layersPane.addWidgetElement(layersGreeting);

Readme

Keywords

none

Package Sidebar

Install

npm i embracethemirth

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

36.4 kB

Total Files

20

Last publish

Collaborators

  • embracethemirth