View with Google Geolonia Plugin

View with Google Geolonia Plugin は、 Geolonia Embed API のプラグインとして動作します。 以下のように data-lat および data-lng 属性を指定した上で Embed API と一緒にスクリプトを読み込んでください。

<body>
  <div
    class="geolonia"
    data-lat="35.65810422222222"
    data-lng="139.74135747222223"
    data-zoom="9"
    data-lang="ja"
  ></div>
  <script src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=YOUR-API-KEY" />
  <script src="https://cdn.geolonia.com/v1/view-with-google-plugin@latest" />
</body>

data-lang属性で言語を明示的に指定できます。

<div
  class="geolonia"
  data-lat="35.65810422222222"
  data-lng="139.74135747222223"
  data-zoom="9"
  data-lang="en"
></div>

コントリビューション

Issue、プルリクエストはいつでも歓迎します。
以下のコマンドで開発用サーバーを立ち上げることができます。 Fork me on GitHub

$ git clone git@github.com:geolonia/view-with-google-plugin.git
$ cd view-with-google-plugin
$ yarn # または npm install
$ npm start