This package has been deprecated

Author message:

Use `@geolonia/embed`.

@tilecloud/embed

0.12.0 • Public • Published

@tilecloud/embed

Build Status

JS embed API for TileCloud service.

Features

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

Examples

https://tilecloud.github.io/embed/

Usage

Specify .tilecloud class for target elements.

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

Or

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

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

Contributing

Development

$ git clone git@github.com:tilecloud/embed.git
$ cd embed
$ yarn # or npm install
$ npm start

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

Readme

Keywords

none

Package Sidebar

Install

npm i @tilecloud/embed

Weekly Downloads

1

Version

0.12.0

License

MIT

Unpacked Size

1.04 MB

Total Files

20

Last publish

Collaborators

  • kamataryo
  • miya0001