Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teritorio/teritorio-map

Collection of helper functions to add some features to Mapbox GL JS related to Teritorio Map Style
https://github.com/teritorio/teritorio-map

map mapbox-gl-js openmaptiles openstreetmap

Last synced: 9 days ago
JSON representation

Collection of helper functions to add some features to Mapbox GL JS related to Teritorio Map Style

Awesome Lists containing this project

README

        

# Teritorio Map

Collection of helper functions to add some features to MapLibre GL JD (Mapbox GL JS) related to Teritorio Map Style.

## Display

- [border](https://teritorio.github.io/teritorio-map/border): Select and switch borders point of view according to different countries definition.
- [building3d](https://teritorio.github.io/teritorio-map/building3d): Select and switch the way to display building in 3D or not.
- [poiFilter](https://teritorio.github.io/teritorio-map/poiFilter/index-initial-settings.html): Set initial display of POIs by thematic.
- [poiFilter](https://teritorio.github.io/teritorio-map/poiFilter/index-change.html): Change display of POIs by thematic.

For languages switch use [ openmaptiles-gl-language
](https://github.com/teritorio/openmaptiles-gl-language).

## Usage

The project is bundled in several formats so you can use it everywhere.

If you don't know what format is better for you, choose UMD ;)

### UMD (Universal Module Definition)

To use in your HTML files:

```html

teritorio.icon(/* ... */);

```

### CommonJS

To import the library in your bundled project:

```js
import { icon } from '@teritorio/map';

icon(/* ... */);
```

### ES Module

```html

import { icon } from 'https://unpkg.com/@teritorio/map/dist/teritorio.esm.js';

icon(/* ... */);

```

## Requirements

Requires [maplibre-gl-js](https://maplibre.org/projects/#js) or older [mapbox-gl-js](https://github.com/mapbox/mapbox-gl-js) >= v1.10.1 and < 2.0.0).

## Contribution

Please see the [contribution guide](CONTRIBUTING.md).

## Author

[Teritorio](https://teritorio.fr)

## License

[MIT](LICENSE)