# geovisto-layer-tiles

> Geovisto tool which provides the tile layer

Latest version **2.0.0** (published 2022-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install geovisto-layer-tiles
pnpm add geovisto-layer-tiles
yarn add geovisto-layer-tiles
bun add geovisto-layer-tiles
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-05-29 |
| First published | 2021-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 68.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jiri Hynek |
| Maintainers | jiri.hynek |
| Keywords | gis, map, geovisto, leaflet, spatial-data, visualization |

## Links

- npm: https://www.npmjs.com/package/geovisto-layer-tiles
- Repository: https://github.com/geovisto/geovisto-layer-tiles
- Issues: https://github.com/geovisto/geovisto-layer-tiles/issues
- npm.io page: https://npm.io/package/geovisto-layer-tiles

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-05-29
- 1.0.1 — 2021-08-31
- 1.0.0 — 2021-08-31

## README

# Geovisto Tiles Layer Tool
Extension of the [Geovisto core library](https://github.com/geovisto/geovisto) which provides the tile layer.

This repository is a snapshot of Geoviosto ``tools/layers/tiles`` derived from the development repository: [geovisto/geovisto-map](https://github.com/geovisto/geovisto-map).

![sample](https://user-images.githubusercontent.com/1479229/131514620-5f4ec88c-ee77-4ce1-976e-6fd37fde6ad0.png)

## Usage

```js
import { GeovistoTilesLayerTool } from 'geovisto-layer-tiles';

// create instance of map with given props
const map = Geovisto.createMap({
  // ...
  tools?: Geovisto.createMapToolsManager([
    // instances of Geovisto tools (extensions) which will be directly used in the map
    // ...
    GeovistoTilesLayerTool.createTool({
        id: "geovisto-tool-layer-tiles",
        // instance of IMapTilesModel of the Geovisto core
        baseMap?: {
          // see Leaflet providers
          url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
          maxZoom: 20,
          maxNativeZoom: 19
      };
    }),
  ])
});

// rendering of the map
map.draw(Geovisto.getMapConfigManagerFactory().default({
  // initial settings of the map can be overriden by the map config - JSON structure providing user settings 
  // ...
  tools?: [
    // config of Geovisto tools (extensions) used in the map
    {
      "type": "geovisto-tool-layer-tiles",
      "id": "geovisto-tool-layer-tiles",
      "enabled": true,
    },
  ]
}));
```

## Installation

```
npm install --save geovisto-layer-tiles
```

Peer dependencies:
```
npm install --save geovisto leaflet
```

This package serves as an extension of Geovisto core using the API for Geovisto tools (extensions). Follow Geovisto core on [Github](https://github.com/geovisto/geovisto).

## License

[MIT](https://github.com/geovisto/geovisto-layer-tiles/blob/master/LICENSE)

Note that the tool allows to refer URL of [tile layer providers](https://github.com/leaflet-extras/leaflet-providers) ([examples](http://leaflet-extras.github.io/leaflet-providers/preview/index.html)). Make sure you use them with respect to license of the tiles providers.

---
_Source: https://npm.io/package/geovisto-layer-tiles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
