# @wsdot/arcgis-buffer-ui-connector-v3

> @wsdot/arcgis-buffer-ui-connector-v3 ====================================

Latest version **2.0.0-beta.4** (published 2023-10-31) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install @wsdot/arcgis-buffer-ui-connector-v3
pnpm add @wsdot/arcgis-buffer-ui-connector-v3
yarn add @wsdot/arcgis-buffer-ui-connector-v3
bun add @wsdot/arcgis-buffer-ui-connector-v3
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-beta.4 |
| Published | 2023-10-31 |
| First published | 2018-05-09 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jeff-jacobson |

## Links

- npm: https://www.npmjs.com/package/@wsdot/arcgis-buffer-ui-connector-v3
- npm.io page: https://npm.io/package/@wsdot/arcgis-buffer-ui-connector-v3

## Dependencies (1)

- [@wsdot/arcgis-buffer-ui](https://npm.io/package/@wsdot/arcgis-buffer-ui.md) ^2.0.0-beta.3

## Recent versions

- 2.0.0-beta.4 (latest) — 2023-10-31
- 2.0.0-beta.3 — 2018-05-10
- 2.0.0-beta.2 — 2018-05-09
- 1.1.1-2.0.0-beta.1.0 — 2018-05-09

## README

@wsdot/arcgis-buffer-ui-connector-v3
====================================

This package is for use with [@wsdot/arcgis-buffer-ui] and is used for connecting the UI to an [ArcGIS API for JavaScript] (version 3.X) map.

[@wsdot/arcgis-buffer-ui]:https://www.npmjs.com/package/@wsdot/arcgis-buffer-ui
[ArcGIS API for JavaScript]:https://developers.arcgis.com/javascript/3/

Installation
------------

```console
npm add @wsdot/arcgis-buffer-ui @wsdot/arcgis-buffer-ui-connector-v3
```

Example
-------

```typescript
import { BufferUI } from "@wsdot/arcgis-buffer-ui";
import { attachBufferUIToMap } from "@wsdot/arcgis-buffer-ui-connector-v3";
import arcgisUtils from "esri/arcgis/utils";
import esriConfig from "esri/config";

// Create the Buffer UI in the specified node.
const bufferElement = document.getElementById("buffer")!;
const buffer = new BufferUI(bufferElement);

// Create a map from a predefined webmap on AGOL.
arcgisUtils
  .createMap("927b5daaa7f4434db4b312364489544d", "map")
  .then((response: any) => {
    const map = response.map;

    // Setup the Buffer UI with the map.
    attachBufferUIToMap(map, buffer);

    // Turn on some layers that are off by default.
    const airportRe = /^((Airport)|(CityLimits))/i;
    for (const layerId of map.layerIds) {
      if (airportRe.test(layerId)) {
        const layer = map.getLayer(layerId);
        layer.show();
      }
    }
  });
```

---
_Source: https://npm.io/package/@wsdot/arcgis-buffer-ui-connector-v3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
