如何在flutter中添加标记(据我所知,这是占位符,但在研究了文档后。我还没有找到如何在地图上添加它.marker(?我使用Yandex Mapkit
像这样尝试
final List<MapObject> mapObjects = [];
final placemarks = [
Placemark(
mapId: MapObjectId('placemark_3'),
point const Point(latitude: 55.69494398296744, longitude: 37.653375915527334),
....
),
...
];
setState(() {
mapObjects.addAll(placemarks);
});