Files
amap_map/doc/api/amap_map/AMapWidget-class.html
2023-12-22 21:23:24 +08:00

591 lines
44 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="description" content="API docs for the AMapWidget class from the amap_map library, for the Dart programming language.">
<title>AMapWidget class - amap_map library - Dart API</title>
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="../static-assets/github.css">
<link rel="stylesheet" href="../static-assets/styles.css">
<link rel="icon" href="../static-assets/favicon.png">
</head>
<body data-base-href="../"
data-using-base-href="false">
<div id="overlay-under-drawer"></div>
<header id="title">
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="../index.html">amap_map</a></li>
<li><a href="../amap_map/amap_map-library.html">amap_map</a></li>
<li class="self-crumb">AMapWidget class</li>
</ol>
<div class="self-name">AMapWidget</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<main>
<div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
<header id="header-search-sidebar" class="hidden-l">
<form class="search-sidebar" role="search">
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="../index.html">amap_map</a></li>
<li><a href="../amap_map/amap_map-library.html">amap_map</a></li>
<li class="self-crumb">AMapWidget class</li>
</ol>
<h5>amap_map library</h5>
<ol>
<li class="section-title"><a href="../amap_map/amap_map-library.html#classes">Classes</a></li>
<li><a href="../amap_map/AMapController-class.html">AMapController</a></li>
<li><a href="../amap_map/AMapWidget-class.html">AMapWidget</a></li>
<li><a href="../amap_map/BaseOverlay-class.html">BaseOverlay</a></li>
<li><a href="../amap_map/BitmapDescriptor-class.html">BitmapDescriptor</a></li>
<li><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></li>
<li><a href="../amap_map/CameraTargetBounds-class.html">CameraTargetBounds</a></li>
<li><a href="../amap_map/CameraUpdate-class.html">CameraUpdate</a></li>
<li><a href="../amap_map/CustomStyleOptions-class.html">CustomStyleOptions</a></li>
<li><a href="../amap_map/InfoWindow-class.html">InfoWindow</a></li>
<li><a href="../amap_map/Marker-class.html">Marker</a></li>
<li><a href="../amap_map/MarkerUpdates-class.html">MarkerUpdates</a></li>
<li><a href="../amap_map/MinMaxZoomPreference-class.html">MinMaxZoomPreference</a></li>
<li><a href="../amap_map/MyLocationStyleOptions-class.html">MyLocationStyleOptions</a></li>
<li><a href="../amap_map/Polygon-class.html">Polygon</a></li>
<li><a href="../amap_map/PolygonUpdates-class.html">PolygonUpdates</a></li>
<li><a href="../amap_map/Polyline-class.html">Polyline</a></li>
<li><a href="../amap_map/PolylineUpdates-class.html">PolylineUpdates</a></li>
<li class="section-title"><a href="../amap_map/amap_map-library.html#functions">Functions</a></li>
<li><a href="../amap_map/keyByMarkerId.html">keyByMarkerId</a></li>
<li><a href="../amap_map/keyByPolygonId.html">keyByPolygonId</a></li>
<li><a href="../amap_map/keyByPolylineId.html">keyByPolylineId</a></li>
<li><a href="../amap_map/serializeOverlaySet.html">serializeOverlaySet</a></li>
<li class="section-title"><a href="../amap_map/amap_map-library.html#enums">Enums</a></li>
<li><a href="../amap_map/CapType-class.html">CapType</a></li>
<li><a href="../amap_map/DashLineType-class.html">DashLineType</a></li>
<li><a href="../amap_map/JoinType-class.html">JoinType</a></li>
<li><a href="../amap_map/MapType-class.html">MapType</a></li>
<li class="section-title"><a href="../amap_map/amap_map-library.html#typedefs">Typedefs</a></li>
<li><a href="../amap_map/MapCreatedCallback.html">MapCreatedCallback</a></li>
<li><a href="../amap_map/MarkerDragEndCallback.html">MarkerDragEndCallback</a></li>
</ol>
</div>
<div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
<div><h1><span class="kind-class">AMapWidget</span> class </h1></div>
<section class="desc markdown">
<p>用于展示高德地图的Widget</p>
</section>
<section>
<dl class="dl-horizontal">
<dt>Inheritance</dt>
<dd><ul class="gt-separated dark clazz-relationships">
<li><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></li>
<li><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree-class.html">DiagnosticableTree</a></li>
<li><a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></li>
<li><a href="https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html">StatefulWidget</a></li>
<li>AMapWidget</li>
</ul></dd>
</dl>
</section>
<section class="summary offset-anchor" id="constructors">
<h2>Constructors</h2>
<dl class="constructor-summary-list">
<dt id="AMapWidget" class="callable">
<span class="name"><a href="../amap_map/AMapWidget/AMapWidget.html">AMapWidget</a></span><span class="signature">(<span class="parameter" id="-param-key">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/Key-class.html">Key</a></span> <span class="parameter-name">key</span>, </span><span class="parameter" id="-param-apiKey"><span class="type-annotation">AMapApiKey</span> <span class="parameter-name">apiKey</span>, </span><span class="parameter" id="-param-initialCameraPosition"><span class="type-annotation"><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span> <span class="parameter-name">initialCameraPosition</span>: <span class="default-value">const CameraPosition(target: LatLng(39.909187, 116.397451), zoom: 10)</span>, </span><span class="parameter" id="-param-mapType"><span class="type-annotation"><a href="../amap_map/MapType-class.html">MapType</a></span> <span class="parameter-name">mapType</span>: <span class="default-value">MapType.normal</span>, </span><span class="parameter" id="-param-buildingsEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">buildingsEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-compassEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">compassEnabled</span>: <span class="default-value">false</span>, </span><span class="parameter" id="-param-labelsEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">labelsEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-limitBounds"><span class="type-annotation">LatLngBounds</span> <span class="parameter-name">limitBounds</span>, </span><span class="parameter" id="-param-minMaxZoomPreference"><span class="type-annotation"><a href="../amap_map/MinMaxZoomPreference-class.html">MinMaxZoomPreference</a></span> <span class="parameter-name">minMaxZoomPreference</span>, </span><span class="parameter" id="-param-rotateGesturesEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">rotateGesturesEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-scaleEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">scaleEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-scrollGesturesEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">scrollGesturesEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-tiltGesturesEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">tiltGesturesEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-touchPoiEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">touchPoiEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-trafficEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">trafficEnabled</span>: <span class="default-value">false</span>, </span><span class="parameter" id="-param-zoomGesturesEnabled"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">zoomGesturesEnabled</span>: <span class="default-value">true</span>, </span><span class="parameter" id="-param-onMapCreated"><span class="type-annotation"><a href="../amap_map/MapCreatedCallback.html">MapCreatedCallback</a></span> <span class="parameter-name">onMapCreated</span>, </span><span class="parameter" id="-param-gestureRecognizers"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/foundation/Factory-class.html">Factory</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/gestures/OneSequenceGestureRecognizer-class.html">OneSequenceGestureRecognizer</a></span>&gt;</span></span>&gt;</span></span> <span class="parameter-name">gestureRecognizers</span>, </span><span class="parameter" id="-param-customStyleOptions"><span class="type-annotation"><a href="../amap_map/CustomStyleOptions-class.html">CustomStyleOptions</a></span> <span class="parameter-name">customStyleOptions</span>, </span><span class="parameter" id="-param-myLocationStyleOptions"><span class="type-annotation"><a href="../amap_map/MyLocationStyleOptions-class.html">MyLocationStyleOptions</a></span> <span class="parameter-name">myLocationStyleOptions</span>, </span><span class="parameter" id="-param-onCameraMove"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span>&gt;</span></span> <span class="parameter-name">onCameraMove</span>, </span><span class="parameter" id="-param-onCameraMoveEnd"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span>&gt;</span></span> <span class="parameter-name">onCameraMoveEnd</span>, </span><span class="parameter" id="-param-onLocationChanged"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">AMapLocation</span>&gt;</span></span> <span class="parameter-name">onLocationChanged</span>, </span><span class="parameter" id="-param-onTap"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">LatLng</span>&gt;</span></span> <span class="parameter-name">onTap</span>, </span><span class="parameter" id="-param-onLongPress"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">LatLng</span>&gt;</span></span> <span class="parameter-name">onLongPress</span>, </span><span class="parameter" id="-param-onPoiTouched"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">AMapPoi</span>&gt;</span></span> <span class="parameter-name">onPoiTouched</span>, </span><span class="parameter" id="-param-markers"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Marker-class.html">Marker</a></span>&gt;</span></span> <span class="parameter-name">markers</span>, </span><span class="parameter" id="-param-polylines"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Polyline-class.html">Polyline</a></span>&gt;</span></span> <span class="parameter-name">polylines</span>, </span><span class="parameter" id="-param-polygons"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Polygon-class.html">Polygon</a></span>&gt;</span></span> <span class="parameter-name">polygons</span>}</span>)</span>
</dt>
<dd>
创建一个展示高德地图的widget
<a href="https://api.flutter.dev/flutter/dart-core/AssertionError-class.html">AssertionError</a> will be thrown if <code>initialCameraPosition</code> is null;
<div class="constructor-modifier features">const</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor" id="instance-properties">
<h2>Properties</h2>
<dl class="properties">
<dt id="apiKey" class="property">
<span class="name"><a href="../amap_map/AMapWidget/apiKey.html">apiKey</a></span>
<span class="signature">&#8594; AMapApiKey</span>
</dt>
<dd>
高德开放平台的key
<div class="features">final</div>
</dd>
<dt id="buildingsEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/buildingsEnabled.html">buildingsEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否显示3D建筑物
<div class="features">final</div>
</dd>
<dt id="compassEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/compassEnabled.html">compassEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否显示指南针
<div class="features">final</div>
</dd>
<dt id="customStyleOptions" class="property">
<span class="name"><a href="../amap_map/AMapWidget/customStyleOptions.html">customStyleOptions</a></span>
<span class="signature">&#8594; <a href="../amap_map/CustomStyleOptions-class.html">CustomStyleOptions</a></span>
</dt>
<dd>
自定义地图样式
<div class="features">final</div>
</dd>
<dt id="gestureRecognizers" class="property">
<span class="name"><a href="../amap_map/AMapWidget/gestureRecognizers.html">gestureRecognizers</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/foundation/Factory-class.html">Factory</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/gestures/OneSequenceGestureRecognizer-class.html">OneSequenceGestureRecognizer</a></span>&gt;</span></span>&gt;</span></span>
</dt>
<dd>
需要应用到地图上的手势集合
<div class="features">final</div>
</dd>
<dt id="hashCode" class="property inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/Widget/hashCode.html">hashCode</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span>
</dt>
<dd class="inherited">
The hash code for this object. <a href="https://api.flutter.dev/flutter/widgets/Widget/hashCode.html">[...]</a>
<div class="features">@<a href="https://api.flutter.dev/flutter/foundation/nonVirtual-constant.html">nonVirtual</a>, read-only, inherited</div>
</dd>
<dt id="initialCameraPosition" class="property">
<span class="name"><a href="../amap_map/AMapWidget/initialCameraPosition.html">initialCameraPosition</a></span>
<span class="signature">&#8594; <a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span>
</dt>
<dd>
初始化时的地图中心点
<div class="features">final</div>
</dd>
<dt id="key" class="property inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/Widget/key.html">key</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/foundation/Key-class.html">Key</a></span>
</dt>
<dd class="inherited">
Controls how one widget replaces another widget in the tree. <a href="https://api.flutter.dev/flutter/widgets/Widget/key.html">[...]</a>
<div class="features">final, inherited</div>
</dd>
<dt id="labelsEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/labelsEnabled.html">labelsEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否显示底图文字标注
<div class="features">final</div>
</dd>
<dt id="limitBounds" class="property">
<span class="name"><a href="../amap_map/AMapWidget/limitBounds.html">limitBounds</a></span>
<span class="signature">&#8594; LatLngBounds</span>
</dt>
<dd>
地图显示范围
<div class="features">final</div>
</dd>
<dt id="mapType" class="property">
<span class="name"><a href="../amap_map/AMapWidget/mapType.html">mapType</a></span>
<span class="signature">&#8594; <a href="../amap_map/MapType-class.html">MapType</a></span>
</dt>
<dd>
地图类型
<div class="features">final</div>
</dd>
<dt id="markers" class="property">
<span class="name"><a href="../amap_map/AMapWidget/markers.html">markers</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Marker-class.html">Marker</a></span>&gt;</span></span>
</dt>
<dd>
地图上显示的Marker
<div class="features">final</div>
</dd>
<dt id="minMaxZoomPreference" class="property">
<span class="name"><a href="../amap_map/AMapWidget/minMaxZoomPreference.html">minMaxZoomPreference</a></span>
<span class="signature">&#8594; <a href="../amap_map/MinMaxZoomPreference-class.html">MinMaxZoomPreference</a></span>
</dt>
<dd>
<div class="features">final</div>
</dd>
<dt id="myLocationStyleOptions" class="property">
<span class="name"><a href="../amap_map/AMapWidget/myLocationStyleOptions.html">myLocationStyleOptions</a></span>
<span class="signature">&#8594; <a href="../amap_map/MyLocationStyleOptions-class.html">MyLocationStyleOptions</a></span>
</dt>
<dd>
定位小蓝点
<div class="features">final</div>
</dd>
<dt id="onCameraMove" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onCameraMove.html">onCameraMove</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span>&gt;</span></span>
</dt>
<dd>
相机视角持续移动的回调
<div class="features">final</div>
</dd>
<dt id="onCameraMoveEnd" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onCameraMoveEnd.html">onCameraMoveEnd</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/CameraPosition-class.html">CameraPosition</a></span>&gt;</span></span>
</dt>
<dd>
相机视角移动结束的回调
<div class="features">final</div>
</dd>
<dt id="onLocationChanged" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onLocationChanged.html">onLocationChanged</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">AMapLocation</span>&gt;</span></span>
</dt>
<dd>
位置回调
<div class="features">final</div>
</dd>
<dt id="onLongPress" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onLongPress.html">onLongPress</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">LatLng</span>&gt;</span></span>
</dt>
<dd>
地图长按事件的回调
<div class="features">final</div>
</dd>
<dt id="onMapCreated" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onMapCreated.html">onMapCreated</a></span>
<span class="signature">&#8594; <a href="../amap_map/MapCreatedCallback.html">MapCreatedCallback</a></span>
</dt>
<dd>
地图创建成功的回调, 收到此回调之后才可以操作地图
<div class="features">final</div>
</dd>
<dt id="onPoiTouched" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onPoiTouched.html">onPoiTouched</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">AMapPoi</span>&gt;</span></span>
</dt>
<dd>
地图POI的点击回调需要<code>touchPoiEnabled</code>true才能回调
<div class="features">final</div>
</dd>
<dt id="onTap" class="property">
<span class="name"><a href="../amap_map/AMapWidget/onTap.html">onTap</a></span>
<span class="signature">&#8594; ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter">LatLng</span>&gt;</span></span>
</dt>
<dd>
地图单击事件的回调
<div class="features">final</div>
</dd>
<dt id="polygons" class="property">
<span class="name"><a href="../amap_map/AMapWidget/polygons.html">polygons</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Polygon-class.html">Polygon</a></span>&gt;</span></span>
</dt>
<dd>
地图上显示的polygon
<div class="features">final</div>
</dd>
<dt id="polylines" class="property">
<span class="name"><a href="../amap_map/AMapWidget/polylines.html">polylines</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Set-class.html">Set</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../amap_map/Polyline-class.html">Polyline</a></span>&gt;</span></span>
</dt>
<dd>
地图上显示的polyline
<div class="features">final</div>
</dd>
<dt id="rotateGesturesEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/rotateGesturesEnabled.html">rotateGesturesEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否支持旋转手势
<div class="features">final</div>
</dd>
<dt id="runtimeType" class="property inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Type-class.html">Type</a></span>
</dt>
<dd class="inherited">
A representation of the runtime type of the object.
<div class="features">read-only, inherited</div>
</dd>
<dt id="scaleEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/scaleEnabled.html">scaleEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否显示比例尺
<div class="features">final</div>
</dd>
<dt id="scrollGesturesEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/scrollGesturesEnabled.html">scrollGesturesEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否支持滑动手势
<div class="features">final</div>
</dd>
<dt id="tiltGesturesEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/tiltGesturesEnabled.html">tiltGesturesEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否支持倾斜手势
<div class="features">final</div>
</dd>
<dt id="touchPoiEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/touchPoiEnabled.html">touchPoiEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
地图poi是否允许点击
<div class="features">final</div>
</dd>
<dt id="trafficEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/trafficEnabled.html">trafficEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
显示路况开关
<div class="features">final</div>
</dd>
<dt id="zoomGesturesEnabled" class="property">
<span class="name"><a href="../amap_map/AMapWidget/zoomGesturesEnabled.html">zoomGesturesEnabled</a></span>
<span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</dt>
<dd>
是否支持缩放手势
<div class="features">final</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor" id="instance-methods">
<h2>Methods</h2>
<dl class="callables">
<dt id="createElement" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/StatefulWidget/createElement.html">createElement</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/StatefulElement-class.html">StatefulElement</a></span>
</span>
</dt>
<dd class="inherited">
Creates a <a href="https://api.flutter.dev/flutter/widgets/StatefulElement-class.html">StatefulElement</a> to manage this widget's location in the tree. <a href="https://api.flutter.dev/flutter/widgets/StatefulWidget/createElement.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="createState" class="callable">
<span class="name"><a href="../amap_map/AMapWidget/createState.html">createState</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/State-class.html">State</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html">StatefulWidget</a></span>&gt;</span></span>
</span>
</dt>
<dd>
<div class="features">override</div>
</dd>
<dt id="debugDescribeChildren" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html">debugDescribeChildren</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html">DiagnosticsNode</a></span>&gt;</span></span>
</span>
</dt>
<dd class="inherited">
Returns a list of <a href="https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html">DiagnosticsNode</a> objects describing this node's
children. <a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html">[...]</a>
<div class="features">@<a href="https://api.flutter.dev/flutter/widgets/protected-constant.html">protected</a>, inherited</div>
</dd>
<dt id="debugFillProperties" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html">debugFillProperties</a></span><span class="signature">(<wbr><span class="parameter" id="debugFillProperties-param-properties"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticPropertiesBuilder-class.html">DiagnosticPropertiesBuilder</a></span> <span class="parameter-name">properties</span></span>)
<span class="returntype parameter">&#8594; void</span>
</span>
</dt>
<dd class="inherited">
Add additional properties associated with the node. <a href="https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="noSuchMethod" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
<span class="returntype parameter">&#8594; dynamic</span>
</span>
</dt>
<dd class="inherited">
Invoked when a non-existent method or property is accessed. <a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="toDiagnosticsNode" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html">toDiagnosticsNode</a></span><span class="signature">(<wbr><span class="parameter" id="toDiagnosticsNode-param-name">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">name</span>, </span><span class="parameter" id="toDiagnosticsNode-param-style"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticsTreeStyle-class.html">DiagnosticsTreeStyle</a></span> <span class="parameter-name">style</span>}</span>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html">DiagnosticsNode</a></span>
</span>
</dt>
<dd class="inherited">
Returns a debug representation of the object that is used by debugging
tools and by <a href="https://api.flutter.dev/flutter/foundation/DiagnosticsNode/toStringDeep.html">DiagnosticsNode.toStringDeep</a>. <a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="toString" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html">toString</a></span><span class="signature">(<wbr><span class="parameter" id="toString-param-minLevel">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticLevel-class.html">DiagnosticLevel</a></span> <span class="parameter-name">minLevel</span>: <span class="default-value">DiagnosticLevel.info</span>}</span>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
</span>
</dt>
<dd class="inherited">
Returns a string representation of this object.
<div class="features">inherited</div>
</dd>
<dt id="toStringDeep" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html">toStringDeep</a></span><span class="signature">(<wbr><span class="parameter" id="toStringDeep-param-prefixLineOne">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">prefixLineOne</span>: <span class="default-value">&#39;&#39;</span>, </span><span class="parameter" id="toStringDeep-param-prefixOtherLines"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">prefixOtherLines</span>, </span><span class="parameter" id="toStringDeep-param-minLevel"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticLevel-class.html">DiagnosticLevel</a></span> <span class="parameter-name">minLevel</span>: <span class="default-value">DiagnosticLevel.debug</span>}</span>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
</span>
</dt>
<dd class="inherited">
Returns a string representation of this node and its descendants. <a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="toStringShallow" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html">toStringShallow</a></span><span class="signature">(<wbr><span class="parameter" id="toStringShallow-param-joiner">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">joiner</span>: <span class="default-value">&#39;, &#39;</span>, </span><span class="parameter" id="toStringShallow-param-minLevel"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticLevel-class.html">DiagnosticLevel</a></span> <span class="parameter-name">minLevel</span>: <span class="default-value">DiagnosticLevel.debug</span>}</span>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
</span>
</dt>
<dd class="inherited">
Returns a one-line detailed description of the object. <a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html">[...]</a>
<div class="features">inherited</div>
</dd>
<dt id="toStringShort" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/Widget/toStringShort.html">toStringShort</a></span><span class="signature">(<wbr>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
</span>
</dt>
<dd class="inherited">
A short, textual description of this widget.
<div class="features">inherited</div>
</dd>
</dl>
</section>
<section class="summary offset-anchor inherited" id="operators">
<h2>Operators</h2>
<dl class="callables">
<dt id="operator ==" class="callable inherited">
<span class="name"><a href="https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
<span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
</span>
</dt>
<dd class="inherited">
The equality operator. <a href="https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html">[...]</a>
<div class="features">@<a href="https://api.flutter.dev/flutter/foundation/nonVirtual-constant.html">nonVirtual</a>, inherited</div>
</dd>
</dl>
</section>
</div> <!-- /.main-content -->
<div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
<ol>
<li class="section-title"><a href="../amap_map/AMapWidget-class.html#constructors">Constructors</a></li>
<li><a href="../amap_map/AMapWidget/AMapWidget.html">AMapWidget</a></li>
<li class="section-title">
<a href="../amap_map/AMapWidget-class.html#instance-properties">Properties</a>
</li>
<li><a href="../amap_map/AMapWidget/apiKey.html">apiKey</a></li>
<li><a href="../amap_map/AMapWidget/buildingsEnabled.html">buildingsEnabled</a></li>
<li><a href="../amap_map/AMapWidget/compassEnabled.html">compassEnabled</a></li>
<li><a href="../amap_map/AMapWidget/customStyleOptions.html">customStyleOptions</a></li>
<li><a href="../amap_map/AMapWidget/gestureRecognizers.html">gestureRecognizers</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/hashCode.html">hashCode</a></li>
<li><a href="../amap_map/AMapWidget/initialCameraPosition.html">initialCameraPosition</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/key.html">key</a></li>
<li><a href="../amap_map/AMapWidget/labelsEnabled.html">labelsEnabled</a></li>
<li><a href="../amap_map/AMapWidget/limitBounds.html">limitBounds</a></li>
<li><a href="../amap_map/AMapWidget/mapType.html">mapType</a></li>
<li><a href="../amap_map/AMapWidget/markers.html">markers</a></li>
<li><a href="../amap_map/AMapWidget/minMaxZoomPreference.html">minMaxZoomPreference</a></li>
<li><a href="../amap_map/AMapWidget/myLocationStyleOptions.html">myLocationStyleOptions</a></li>
<li><a href="../amap_map/AMapWidget/onCameraMove.html">onCameraMove</a></li>
<li><a href="../amap_map/AMapWidget/onCameraMoveEnd.html">onCameraMoveEnd</a></li>
<li><a href="../amap_map/AMapWidget/onLocationChanged.html">onLocationChanged</a></li>
<li><a href="../amap_map/AMapWidget/onLongPress.html">onLongPress</a></li>
<li><a href="../amap_map/AMapWidget/onMapCreated.html">onMapCreated</a></li>
<li><a href="../amap_map/AMapWidget/onPoiTouched.html">onPoiTouched</a></li>
<li><a href="../amap_map/AMapWidget/onTap.html">onTap</a></li>
<li><a href="../amap_map/AMapWidget/polygons.html">polygons</a></li>
<li><a href="../amap_map/AMapWidget/polylines.html">polylines</a></li>
<li><a href="../amap_map/AMapWidget/rotateGesturesEnabled.html">rotateGesturesEnabled</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
<li><a href="../amap_map/AMapWidget/scaleEnabled.html">scaleEnabled</a></li>
<li><a href="../amap_map/AMapWidget/scrollGesturesEnabled.html">scrollGesturesEnabled</a></li>
<li><a href="../amap_map/AMapWidget/tiltGesturesEnabled.html">tiltGesturesEnabled</a></li>
<li><a href="../amap_map/AMapWidget/touchPoiEnabled.html">touchPoiEnabled</a></li>
<li><a href="../amap_map/AMapWidget/trafficEnabled.html">trafficEnabled</a></li>
<li><a href="../amap_map/AMapWidget/zoomGesturesEnabled.html">zoomGesturesEnabled</a></li>
<li class="section-title"><a href="../amap_map/AMapWidget-class.html#instance-methods">Methods</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/StatefulWidget/createElement.html">createElement</a></li>
<li><a href="../amap_map/AMapWidget/createState.html">createState</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html">debugDescribeChildren</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html">debugFillProperties</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html">toDiagnosticsNode</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html">toString</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html">toStringDeep</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html">toStringShallow</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/toStringShort.html">toStringShort</a></li>
<li class="section-title inherited"><a href="../amap_map/AMapWidget-class.html#operators">Operators</a></li>
<li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html">operator ==</a></li>
</ol>
</div><!--/.sidebar-offcanvas-->
</main>
<footer>
<span class="no-break">
amap_map
1.1.0
</span>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../static-assets/typeahead.bundle.min.js"></script>
<script src="../static-assets/highlight.pack.js"></script>
<script src="../static-assets/URI.js"></script>
<script src="../static-assets/script.js"></script>
</body>
</html>