0.13.0 • Published 11 months ago

@teritorio/map v0.13.0

Weekly downloads
7
License
MIT
Repository
-
Last release
11 months ago

Teritorio Map

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

Display

  • border: Select and switch borders point of view according to different countries definition.
  • building3d: Select and switch the way to display building in 3D or not.
  • poiFilter: Set initial display of POIs by thematic.
  • poiFilter: Change display of POIs by thematic.

For languages switch use 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:

<script
  type="text/javascript"
  src="https://unpkg.com/@teritorio/map/dist/teritorio.umd.production.min.js"
></script>

<script type="text/javascript">
  teritorio.icon(/* ... */);
</script>

CommonJS

To import the library in your bundled project:

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

icon(/* ... */);

ES Module

<script type="module">
  import { icon } from 'https://unpkg.com/@teritorio/map/dist/teritorio.esm.js';

  icon(/* ... */);
</script>

Requirements

Requires maplibre-gl-js or older mapbox-gl-js >= v1.10.1 and < 2.0.0).

Contribution

Please see the contribution guide.

Author

Teritorio

License

MIT

0.13.0

11 months ago

0.12.7

1 year ago

0.12.5

1 year ago

0.12.6

1 year ago

0.12.2

2 years ago

0.12.3

1 year ago

0.12.4

1 year ago

0.12.0

2 years ago

0.12.1

2 years ago

0.11.1

2 years ago

0.11.2

2 years ago

0.11.0

2 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago