buildUserLocationMarkerLayer function
- required LatLng? userLocation,
Builds a marker layer for user's current location.
Displays a pulsing blue dot with a semi-transparent circle to indicate the user's current position on the map.
Implementation
MarkerLayer? buildUserLocationMarkerLayer({required LatLng? userLocation}) {
if (userLocation == null) return null;
return MarkerLayer(
markers: [
Marker(
point: userLocation,
width: 80,
height: 80,
alignment: Alignment.center,
child: const _UserLocationMarker(),
),
],
);
}