0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Harmoware-VIS】アプリ起動時に表示する地図の位置や視点の設定

Posted at

#Harmoware-VIS とは

#アプリ起動時に表示する地図の位置や視点の設定

Harmoware-VISのデフォルトでの地図の初期表示は

longitude: 136.906428,
latitude: 35.181453,

となっています。
これは名古屋市役所の位置です。

これをカスタマイズするには、アプリのルートクラスのマウント時にsetViewportで視点を設定してください。

class App extends Container {

  componentDidMount(){
    super.componentDidMount();
    this.props.actions.setViewport({longitude:139.692074,latitude:35.689806});

  } ... }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?