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
This commit is contained in:
Carlos Gutierrez
2025-10-12 21:42:25 -04:00
commit fecd0ce968
65 changed files with 4199 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
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());
}
}