Files
Location-Tracker/LocationTrackerApp/App.xaml.cs
Carlos Gutierrez fecd0ce968 Integration and add heat map demo
- 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
2025-10-12 21:42:25 -04:00

28 lines
715 B
C#

using LocationTrackerApp.Views;
using LocationTrackerApp.ViewModels;
using LocationTrackerApp.Data;
namespace LocationTrackerApp;
public partial class App : Application
{
public App()
{
InitializeComponent();
}
protected override Window CreateWindow(IActivationState? activationState)
{
// Get services from DI container
var dbContext = Handler?.MauiContext?.Services?.GetService<LocationDbContext>();
var mainViewModel = Handler?.MauiContext?.Services?.GetService<MainViewModel>();
if (dbContext != null)
{
// Ensure database is created
_ = Task.Run(async () => await dbContext.EnsureDatabaseCreatedAsync());
}
return new Window(new AppShell());
}
}