KakaoMapView class
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 setter inherited
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.
final inherited
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 setter inherited
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