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:
28
LocationTrackerApp/App.xaml.cs
Normal file
28
LocationTrackerApp/App.xaml.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user