본문

180910(월) - Google Maps (Controls and Gestures)

Google Maps


Controls and Gestures

- UI components appear on the map and gestures are allowed


Lite mode for minimal user interaction

- light-weight map을 원하고, user interaction이 적다면, lite-mode map을 고려해보자.

- bitmap image 제공

- pan or zoom, gesture는 동작하지 않는다.


UI controls

UiSettings

GoogleMapOptions

- each UI control has pre-determined position to the edge of the map

- padding 추가로 top, bottom, left, right edge 로 위치 선정 가능


Zoom controls

- bottom right

- disabled by default

UiSettings.setZoomControlsEnabled(true).

Zoom Controls



Compass

- top left

- camera oriented가 non-zero bearing or non-zero tilt일 때만 나타난다.

- click하면 bearing and tilt 가 zero로 변경 -> compass는 사라짐

UiSettings.setCompassEnabled(boolean).

- compass 항상 노출은 안됌

Compass



My Location button

- top right

My Location button



Level picker

- center right-hand edge

- only indoor map

GoogleMap.getUiSettings().setIndoorLevelPickerEnabled(boolean).

Level picker



Map toolbar

- bottom right

- when user taps a marker

UiSettings.setMapToolbarEnabled(boolean).

- lite mode map에서는 user's actions 와 별개로 persists toolbar

- access map view or Google Maps mobile app

Map Toolbar



Map gestures

・ Zoom gestures

- Double tap : increase the zoom level by 1 (zoom in)

- Two finger tap : decrease the zoom level by 1 (zoom out)

- Two finger pinch / stretch

- Sliding up : zoom out

- Sliding out : zoom in

UiSettings.setZoomGesturesEnabled(boolean)


・ Scroll (pan) gestures

UiSettings.setScrollGesturesEnabled(boolean)


・ Tilt gestures

- placing two fingers on the map, tilt angle 조정 가능

UiSettings.setTiltGesturesEnabled(boolean).


・ Rotate gestures

UiSettings.setRotateGesturesEnabled(boolean).

공유

댓글