Marker Layer
You can add markers to maps to display specific points to users using MarkerLayer()
.
Excessive use of markers or use of complex markers will create performance issues and lag/'jank' as the user interacts with the map. See for more information.
If you need to use a large number of markers, an existing community maintained plugin (flutter_map_marker_cluster
) might help.
Markers (markers
)
markers
)As you can see MarkerLayerOptions()
accepts list of Markers which determines render widget, position and transformation details like size and rotation.
Property | Type | Defaults | Description |
---|---|---|---|
|
| required | Marker position on map |
|
| required | Builder used to render marker |
|
|
| Marker width |
|
|
| Marker height |
|
|
| If true, marker will be counter rotated to the map rotation |
|
| The origin of the marker in which to apply the matrix | |
|
| The alignment of the origin, relative to the size of the box | |
|
| Point of the marker which will correspond to marker's location |
Last updated