@geolonia/embed
TypeScript icon, indicating that this package has built-in type declarations

4.2.2 • Public • Published

@geolonia/embed

build

JS embed API for Geolonia service.

Features

  • webGL vector map rendering
  • simple configuration
  • map lazy rendering

Examples

https://geolonia.github.io/embed/

Usage

Specify .geolonia class for target elements.

<!DOCTYPE html>
<html>
  <body>
    <div class="geolonia" ...></div>
    <script src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=YOUR-API-KEY"></script>
  </body>
</html>

Or

<!DOCTYPE html>
<html>
  <body>
    <div class="geolonia" data-key="YOUR-API-KEY" ...></div>
    <script src="https://cdn.geolonia.com/v1/embed"></script>
  </body>
</html>

You can see more examples at https://geolonia.github.io/embed/.

Contributing

Development

$ git clone git@github.com:geolonia/embed.git
$ cd embed
$ yarn
$ npm start # run dev server
$ npm test # run tests
$ npm run build # build production bundle

Then you can see http://localhost:3000/.

Run Bundle analyzer

$ npm run analyze

Snapshot testing

preparation

$ cp .envrc.sample .envrc
$ vi .envrc
$ npm run build
$ docker build . -t geolonia/embed

Readme

Keywords

none

Package Sidebar

Install

npm i @geolonia/embed

Weekly Downloads

63

Version

4.2.2

License

MIT

Unpacked Size

2.09 MB

Total Files

59

Last publish

Collaborators

  • miya0001
  • naogify
  • sleepy_keita