【发布时间】:2020-04-01 07:26:54
【问题描述】:
我想在 GoogleMap 上重新定位指南针和位置按钮,并尝试通过在地图上添加填充来为它们定位,但不起作用。它总是显示在地图顶部,但没有找到定位它们的方法。 here
我的谷歌地图代码:
Stack(
children: <Widget>[
GoogleMap(
padding: EdgeInsets.fromLTRB(0, 0, 0, 0),
myLocationEnabled: true,
compassEnabled:true,
onMapCreated: _onMapCreated,
initialCameraPosition: CameraPosition(
target: LatLng(mylat, mylan),
zoom: 7.0,
),
markers: _markers.values.toSet(),
polylines: Set<Polyline>.of(polylines.values),
),
searchContainer(),
],
),
【问题讨论】:
标签: android ios google-maps flutter compass