KakaoMapView class

Inheritance

Constructors

KakaoMapView({required double width, required double height, required String kakaoMapKey, required double lat, required double lng, int zoomLevel = 3, String? overlayText, String? customOverlayStyle, String? customOverlay, KakaoFigure? polygon, KakaoFigure? polyline, bool showZoomControl = false, bool showMapTypeControl = false, void onTapMarker(JavascriptMessage)?, void zoomChanged(JavascriptMessage)?, void cameraIdle(JavascriptMessage)?, void boundaryUpdate(JavascriptMessage)?, String markerImageURL = '', String? customScript, GlobalKey<State<StatefulWidget>>? mapWidgetKey, bool draggableMarker = false, MapType? mapType, void mapController(WebViewController)?})

Properties

boundaryUpdate → (void Function(JavascriptMessage)?)
North East, South West lat, lang will be updated when the move event is occurred
final
cameraIdle → (void Function(JavascriptMessage)?)
When user stop moving camera, this event will occur
final
customOverlay String?
Overlay text with other features. It must not be used with overlayText
final
customOverlayStyle String?
Overlay style. You can customize your own overlay style
final
customScript String?
This is used to make your own features. Only map size and center position is set. And other optional features won't work. such as Zoom, MapType, markerImage, onTapMarker.
final
draggableMarker bool
Set marker draggable. Default is false
final
hashCode int
The hash code for this object.
no setterinherited
height double
Map height
final
kakaoMapKey String
Kakao map key javascript key
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lat double
center latitude
final
lng double
center longitude
final
mapController → (void Function(WebViewController)?)
You can use js code with controller. example) mapController.evaluateJavascript('map.setLevel(map.getLevel() + 1, {animate: true})');
final
mapType MapType?
TRAFFIC, ROADVIEW, TERRAIN, USE_DISTRICT, BICYCLE are supported. If null, type is default
final
mapWidgetKey GlobalKey<State<StatefulWidget>>?
When you want to use key for the widget to get some features. such as position, size, etc you can use this
final
markerImageURL String
Set marker image. If it's null, default marker will be showing
final
onTapMarker → (void Function(JavascriptMessage)?)
Marker tap event
final
overlayText String?
Overlay text. If null, it won't be enabled. It must not be used with customOverlay
final
polygon KakaoFigure?
KakaoFigure is required KakaoFigure.path to make polygon. If null, it won't be enabled
final
polyline KakaoFigure?
KakaoFigure is required KakaoFigure.path to make polyline. If null, it won't be enabled
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showMapTypeControl bool
If it's true, mapTypeController will be enabled. Normal map, Sky view are supported
final
showZoomControl bool
If it's true, zoomController will be enabled.
final
width double
Map width. If width is wider than screen size, the map center can be changed
final
zoomChanged → (void Function(JavascriptMessage)?)
Zoom change event
final
zoomLevel int
default zoom level : 3 (0 ~ 14)
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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