JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q73498F
  • License MIT

Package Exports

  • @teritorio/map

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@teritorio/map) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Teritorio Map

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

Display

  • border: Select and switch borders point of view according to different countries definition.
  • language: Select and switch the map display language, either by auto-detection of the browser language or manual setting.
  • 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.

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(/* ... */);
  teritorio.language(/* ... */);
</script>

CommonJS

To import the library in your bundled project:

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

icon(/* ... */);
language(/* ... */);

ES Module

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

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

Requirements

Contribution

Please see the contribution guide.

Author

Teritorio

License

MIT