NaverMap class
네이버지도
네이버 지도는 네이버 SDK 를 flutter 에서 사용할 수 있게 하는 주요 widget 이다.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NaverMap
Constructors
-
const
Properties
-
activeLayers
→ List<
MapLayer> -
바닥 지도 위에 부가적인 정보를 나타내는 레이어 그룹을 활성화 할 수 있습니다.
지도의 타입마다 설정가능한 레이어 그룹이 다릅니다.
final
- buildingHeight → double
-
지도가 기울어지면 건물이 입체적으로 표시됩니다. buildingHeight 속성을 사용하면
입체적으로 표현되는 건물의 높이를 지정할 수 있습니다.
값은 0~1의 비율로 지정할 수 있으며, 0으로 지정하면 지도가 기울어지더라도
건물이 입체적으로 표시되지 않습니다. 기본값은 1입니다.
final
-
circles
→ List<
CircleOverlay> -
지도에 표시될
CircleOverlay
의 List입니다.final - contentPadding → EdgeInsets?
-
콘텐트 패딩
final
- forceGesture → bool
-
gesture를 항상 우선적으로 적용합니다.
Listview 예제를 확인해주세요.
default false
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indoorEnable → bool
-
해당 속성을 사용하면 실내지도를 활성화할 수 있습니다.
기본값은 false 입니다.
실내지도가 활성화되면 줌 레벨이 일정 수준 이상이고 실내지도가 있는 영역에 지도의
중심이 위치할 경우 자동으로 해당 영역에 대한 실내지도가 나타납니다.
단, 지도 유형이 실내지도를 지원하지 않으면 실내지도를 활성화하더라도 아무런 변화가
일어나지 않습니다. Basic, Terrain 지도 유형만이 실내지도를 지원합니다.
final
- initialCameraPosition → CameraPosition?
-
카메라의 최초 포지션.
final - initLocationTrackingMode → LocationTrackingMode
-
최초 지도 생성시에 위치추적모드를 선택할 수 있습니다.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- liteModeEnable → bool
-
이 속성을 사용하면 라이트 모드를 활성화할 수 있습니다.
기본값은 false입니다.
라이트 모드가 활성화되면 지도의 로딩이 빨라지고 메모리 소모가 줄어듭니다.
그러나 다음과 같은 제약이 생깁니다.
final
- locationButtonEnable → bool
-
Naver Map에서 기본적으로 제공하는 현위치 버튼을 활성화시킨다.
final
- logoClickEnabled → bool
-
Naver Map 로고 버튼의 활성화 여부를 바꿀 수 있습니다.
final
- mapType → MapType
-
지도 타입 설정.
final
-
markers
→ List<
Marker> -
지도에 표시될 마커의 리스트입니다.
final
- maxZoom → double
-
최대 줌 레벨 제한
final
- minZoom → double
-
최소 줌 레벨 제한
final
- nightModeEnable → bool
-
속성을 사용하면 야간 모드를 활성화할 수 있습니다. 야간 모드가 활성화되면 지도의
전반적인 스타일이 어두운 톤으로 변경됩니다. 단, 지도 유형이 야간 모드를 지원하지
않을 경우 야간 모드를 활성화하더라도 아무런 변화가 일어나지 않습니다.
Navi 지도 유형만이 야간 모드를 지원합니다.
기본값은 fasle 입니다.
final
- onCameraChange → OnCameraChange?
-
카메라가 움직일때 호출되는 콜백
final
- onCameraIdle → VoidCallback?
-
카메라의 움직임이 완료되었을때 호출되는 콜백
final
- onMapCreated → MapCreateCallback?
-
지도가 완전히 만들어진 후에 컨트롤러를 파라미터로 가지는 콜백.
해당 콜백이 호출되기 전에는 지도가 만들어지는 중이다.
final
- onMapDoubleTap → OnMapDoubleTap?
-
지도가 더블탭될때 콜백되는 메서드. (Android only)
final
- onMapLongTap → OnMapLongTap?
-
지도를 롱 탭했을때 호출되는 콜백함수. (Android only)
final
- onMapTap → OnMapTap?
-
지도를 탭했을때 호출되는 콜백함수.
final
- onMapTwoFingerTap → OnMapTwoFingerTap?
-
지도가 두 손가락으로 탭 되었을때 호출되는 콜백 메서드. (Android only)
final
- onSymbolTap → OnSymbolTap?
-
심볼 탭 이벤트
final
-
pathOverlays
→ Set<
PathOverlay> ? -
지도에 표시될
PathOverlay
의 Set 입니다..final -
polygons
→ List<
PolygonOverlay> -
지도에 표시될
PolygonOverlay
의 List입니다.final - rotationGestureEnable → bool
-
NaveraMap 최초 생성 이후,
flutter에서 setState() 함수로 값을 변경해도 반영 되지 않는다.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollGestureEnable → bool
-
NaveraMap 최초 생성 이후,
flutter에서 setState() 함수로 값을 변경해도 반영 되지 않는다.
final
- symbolPerspectiveRatio → double
-
지도를 기울이면 가까이 있는 심벌은 크게, 멀리 있는 심벌은 작게 그려집니다.
symbolPerspectiveRatio 속성을 사용하면 심벌의 원근 효과를 조절할 수 있습니다.
0~1의 비율로 지정할 수 있으며, 값이 작을수록 원근감이 줄어들어 0이 되면
원근 효과가 완전히 사라집니다. 기본값은 1입니다.
final
- symbolScale → double
-
속성을 사용하면 심벌의 크기를 변경할 수 있습니다. 0~2의 비율로 지정할 수 있으며,
값이 클수록 심벌이 커집니다. 기본값은 1입니다. 0일때, 심볼이 표시되지 않습니다.
final
- tiltGestureEnable → bool
-
NaveraMap 최초 생성 이후,
flutter에서 setState() 함수로 값을 변경해도 반영 되지 않는다.
final
- useSurface → bool
-
안드로이드에서 GLSurfaceView 사용 여부
final
- zoomGestureEnable → bool
-
NaveraMap 최초 생성 이후,
flutter에서 setState() 함수로 값을 변경해도 반영 되지 않는다.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _NaverMapState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited