- Implemented OpenStreetMap using WebView with Leaflet.js - Added OpenStreetMapView component with interactive map functionality - Created heat map visualization with color-coded intensity - Added 30 dummy location points around San Francisco Bay Area - Implemented location tracking with real-time pin placement - Added comprehensive UI with two-row button layout - Features: Start/Stop tracking, Center map, Demo heat map, Clear demo, Reset map - Added location count display and confirmation dialogs - Updated project structure and documentation - All functionality tested and working on Android emulator
27 lines
625 B
C#
27 lines
625 B
C#
using LocationTrackerApp.ViewModels;
|
|
|
|
namespace LocationTrackerApp.Views;
|
|
|
|
/// <summary>
|
|
/// Main view for the location tracking application
|
|
/// </summary>
|
|
public partial class MainView : ContentPage
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of MainView
|
|
/// </summary>
|
|
public MainView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of MainView with view model
|
|
/// </summary>
|
|
/// <param name="viewModel">The view model for this view</param>
|
|
public MainView(MainViewModel viewModel) : this()
|
|
{
|
|
BindingContext = viewModel;
|
|
}
|
|
}
|