LocationViewModel code should be
using CommunityToolkit.Maui.Alerts;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using SunObs.Models;
using SunObs.Services;
using System.Collections.ObjectModel;
namespace SunObs.ViewModel
{
[QueryProperty (nameof(Obslocn), "ObsLocation")]
[QueryProperty(nameof(ProjectType), "ProjType")]
public partial class LocationViewModel : BaseViewModel
{
public ReadOnlyCollection<TimeZoneInfo> TimeZones { get; }
[ObservableProperty]
public required ObsLocation obslocn;
[ObservableProperty]
private string projectType;