open-index/open-npm huggingface dataset:
npm package: @resconet/azure-maps
Description: [![npm version](https://badge.fury.io/js/%40resconet%2Fazure-maps.svg)](https://badge.fury.io/js/%40resconet%2Fazure-maps) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Latest version: 1.1.0

# azure-maps

[![npm version](https://badge.fury.io/js/%40resconet%2Fazure-maps.svg)](https://badge.fury.io/js/%40resconet%2Fazure-maps)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A JavaScript library encapsulating the Azure Maps implementation of map interfaces defined in the `@resconet/map-interfaces` library.

## Description

This library encapsulates the Azure Maps implementation of map interfaces defined in the `@resconet/map-interfaces` library.

## Installation

### npm

```bash
npm install @resconet/azure-maps
```

### yarn

```bash
yarn add @resconet/azure-maps
```

## Usage

### Basic Example

```typescript
import { createAzureMapView } from "@resconet/azure-maps";

const mapView = await createAzureMapView(mapElement, {
  subscriptionKey: options.subscriptionKey,
});
```

<!-- TSDOC_START -->

## Functions

- [createAzureMapView](#createAzureMapView)

### createAzureMapView

Creates a map control implementing MapView interface from @resconet/map-interface library.

| Function             | Type                                                                     |
| -------------------- | ------------------------------------------------------------------------ |
| `createAzureMapView` | `(mapElement: HTMLElement, options: AzureMapsOptions): Promise<MapView>` |

Parameters:

- `mapElement`: - An element used as a root for rendering the map component.
- `options`: - Additional options required for authenticating to Azure Maps service.

Returns:

A promise that resolves to an instance of MapView interface.

<!-- TSDOC_END -->
npm package: @resconet/google-maps
Description: [![npm version](https://badge.fury.io/js/%40resconet%2Fgoogle-maps.svg)](https://badge.fury.io/js/%40resconet%2Fgoogle-maps) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Latest version: 1.1.0

# google-maps

[![npm version](https://badge.fury.io/js/%40resconet%2Fgoogle-maps.svg)](https://badge.fury.io/js/%40resconet%2Fgoogle-maps)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A JavaScript library encapsulating the Google Maps implementation of map interfaces defined in the `@resconet/map-interfaces` library.

## Description

This library encapsulates the Google Maps implementation of map interfaces defined in the `@resconet/map-interfaces` library.

## Installation

### npm

```bash
npm install @resconet/google-maps
```

### yarn

```bash
yarn add @resconet/google-maps
```

## Usage

### Basic Example

```typescript
import { createGoogleMapView } from "@resconet/google-maps";

const mapView = await createGoogleMapView(mapElement, {
  apiKey: options.apiKey,
  mapId: options.mapId,
});
```

<!-- TSDOC_START -->

## Functions

- [createGoogleMapView](#createGoogleMapView)

### createGoogleMapView

Creates a map control implementing MapView interface from @resconet/map-interface library.

| Function              | Type                                                                      |
| --------------------- | ------------------------------------------------------------------------- |
| `createGoogleMapView` | `(mapElement: HTMLElement, options: GoogleMapsOptions): Promise<MapView>` |

Parameters:

- `mapElement`: - An element used as a root for rendering the map component.
- `options`: - Additional options required for authenticating to Google Maps service.

Returns:

A promise that resolves to an instance of MapView interface.

<!-- TSDOC_END -->
npm package: @resconet/map-area-tools
Description: [![npm version](https://badge.fury.io/js/%40resconet%2Fmap-area-tools.svg)](https://badge.fury.io/js/%40resconet%2Fmap-area-tools) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Latest version: 1.1.0

# map-area-tools

[![npm version](https://badge.fury.io/js/%40resconet%2Fmap-area-tools.svg)](https://badge.fury.io/js/%40resconet%2Fmap-area-tools)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A JavaScript library for fetching map area geo-polygon with excluded objects, simplifying the map polygons and calculating their area.

## Description

This library provides tools for fetching map area geo-polygon with excluded objects, simplifying the map polygons and calculating their area.

## Installation

### npm

```bash
npm install @resconet/map-area-tools
```

### yarn

```bash
yarn add @resconet/map-area-tools
```

## Usage

### Basic Example

```typescript
import { createMapAreaFetch, type FetchResult } from "@resconet/map-area-tools";

const onResultFetched = (result?: FetchResult) => {
  // Consume result.polygon and result.innerAreas
};

const polygonFetch = await createMapAreaFetch(mapView, buttonContainerElement, onResultFetched, {
  timestampProperty: "creation_date",
  polygonAreaProperty: "measured_area",
  additionalProperties: { name: options.name, id: options.id }, // Set reference or other custom GeoJSON properties
  areaUnits: "Hectares",
});

if (options.polygon) {
  // Initialize with existing polygons
  const innerAreas = options.innerAreas;
  await polygonFetch.initialize(JSON.parse(options.polygon), innerAreas ? JSON.parse(innerAreas) : undefined);
}
```

<!-- TSDOC_START -->

## Functions

- [createMapAreaFetch](#createMapAreaFetch)

### createMapAreaFetch

Creates map area fetch component on the given map view and adds command buttons to the given button container.

| Function             | Type                                                                                                                                                 |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `createMapAreaFetch` | `(mapView: MapView, buttonContainer: HTMLElement, onResultFetched: (result?: FetchResult) => void, options?: GeoJsonOptions): Promise<MapAreaFetch>` |

Parameters:

- `mapView`: - Map view where the area fetch component is created.
- `buttonContainer`: - HTML element where the buttons are added.
- `onResultFetched`: - Callback function that is called when the result is fetched (Save button clicked).
- `options`: - Optional fields defining custom GeoJSON properties and map component options.

Returns:

A promise that resolves to the created MapAreaFetch component or undefined if creation failed.

<!-- TSDOC_END -->
npm package: @resconet/map-interface
Description: [![npm version](https://badge.fury.io/js/%40resconet%2Fmap-interface.svg)](https://badge.fury.io/js/%40resconet%2Fmap-interface) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Latest version: 1.1.0

# map-interface

[![npm version](https://badge.fury.io/js/%40resconet%2Fmap-interface.svg)](https://badge.fury.io/js/%40resconet%2Fmap-interface)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A JavaScript library for working with map-related data structures and components.

## Description

This library exposes interfaces for working with map-related data structures and components. It declares base types for particular implementations (@resconet/azure-maps and @resconet/google-maps).

## Installation

### npm

```bash
npm install @resconet/map-interface
```

### yarn

```bash
yarn add @resconet/map-interface
```
npm package: @resconet/qp-bridge
Description: [![npm version](https://badge.fury.io/js/%40resconet%2Fqp-bridge.svg)](https://badge.fury.io/js/%40resconet%2Fqp-bridge) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Latest version: 1.3.1