【发布时间】:2019-05-08 05:15:30
【问题描述】:
在我的颤振应用中。我正在使用 google_maps_plugin 。链接是https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter。
我想在拖动地图后将标记固定在地图中心而不移动。
我想要它喜欢http://jsfiddle.net/UuDA6/
在我的代码中,我使用MarkerOption 来放置标记。
MarkerOptions options = new MarkerOptions(
alpha: 1.0,
anchor: Offset(0.5, 1.0),
consumeTapEvents: false,
draggable: false,
flat: false,
icon: BitmapDescriptor.defaultMarker,
infoWindowAnchor: Offset(0.5, 0.0),
infoWindowText: InfoWindowText.noText,
position: LatLng(17.411439, 78.5486697),
rotation: 0.0,
visible: true,
zIndex: 0.0,
);
但是在position我想知道如何给出地图的中心。
如果有人对此有任何想法,请分享。
【问题讨论】:
标签: google-maps dart flutter