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?

GoogleMapのオプションまとめ

Posted at

GoogleMapでよく使用するオプションをまとめます。

地図タイプ

googleMap.mapType = GoogleMap.MAP_TYPE_NORMAL
googleMap.mapType = GoogleMap.MAP_TYPE_SATELLITE // 航空写真
googleMap.mapType = GoogleMap.MAP_TYPE_TERRAIN // 地形

カラーテーマ

googleMap.mapColorScheme = MapColorScheme.LIGHT // ライトモード
googleMap.mapColorScheme = MapColorScheme.DARK  // ダークモード

●3Dビル(立体建物)表示

googleMap.isBuildingsEnabled = true // ビルなどを3D表示する

屋内マップ(駅・モールなど)を表示するか

googleMap.isIndoorEnabled = true // 屋内マップを表示する

現在地(青い点)の表示

googleMap.isMyLocationEnabled = true // 現在地を表示する

UIボタンの表示

val ui = googleMap.uiSettings
ui.isZoomControlsEnabled = true // 拡大・縮小「+ / −」のズームボタン表示
ui.isCompassEnabled = true // 北を示すコンパスの表示
ui.isMyLocationButtonEnabled = true // 現在地に戻るボタンの表示

参考

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?