How to add a marker in flutter to the Yandex MapKit?

2.3k Views Asked by At

How to add a marker in flutter (as far as I understand, this is placemark, but after studying the documentation. I haven't found how to add it. marker on the map) on the map? I use Yandex Mapkit

1

There are 1 best solutions below

0
On

Try like this

  final List<MapObject> mapObjects = [];
  final placemarks = [
      Placemark(
         mapId: MapObjectId('placemark_3'),
         point const Point(latitude: 55.69494398296744, longitude: 37.653375915527334),
         ....
           
      ),
     ...
  ];
   setState(() {
       mapObjects.addAll(placemarks);
  });