Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/teritorio/teritorio-map
- Owner: teritorio
- License: mit
- Created: 2019-11-22T22:14:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T18:05:47.000Z (2 months ago)
- Last Synced: 2024-10-20T03:07:10.066Z (2 months ago)
- Topics: map, mapbox-gl-js, openmaptiles, openstreetmap
- Language: TypeScript
- Homepage:
- Size: 875 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
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)