markerBuilder property

MapMarkerBuilder? markerBuilder

Returns the MapMarker for the given index. Markers which be used to denote the locations on the map.

It is possible to use the built-in symbols or display a custom widget at a specific latitude and longitude on a map.

The MapLayer.markerBuilder callback will be called number of times equal to the value specified in the MapLayer.initialMarkersCount property. The default value of the of this property is null.

For rendering the custom widget for the marker, pass the required widget for child in MapMarker constructor.


final MapMarkerBuilder? markerBuilder;