Skip to content
Embed API for the TileCloud.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
docs
src
test
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.npmignore
.prettierignore
.prettierrc.js
.travis.yml
CHANGELOG.md
README.md
package-lock.json
package.json
webpack.config.js

README.md

@geolonia/embed

Build Status

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://api.geolonia.com/v1/embed?geolonia-api-key=API-KEY"></script>
  </body>
</html>

Or

<!DOCTYPE html>
<html>
  <body>
    <div
      class="geolonia"
      data-key="YOUR-API-KEY"
      ...
    ></div>
    <script src="https://api.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 # or npm install
$ npm start

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

You can’t perform that action at this time.