More camera -> node

This commit is contained in:
stopflock
2025-12-02 21:17:07 -06:00
parent 3d5edf320e
commit bb3d398c9c
10 changed files with 91 additions and 72 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import 'package:latlong2/latlong.dart';
import '../../models/osm_node.dart';
import '../../app_state.dart';
import '../camera_provider_with_cache.dart';
import '../node_provider_with_cache.dart';
import '../../dev_config.dart';
/// Manages data fetching, filtering, and node limit logic for the map.
@@ -41,7 +41,7 @@ class MapDataManager {
if (currentZoom >= minZoom) {
// Above minimum zoom - get cached nodes directly (no Provider needed)
allNodes = (mapBounds != null)
? CameraProviderWithCache.instance.getCachedNodesForBounds(mapBounds)
? NodeProviderWithCache.instance.getCachedNodesForBounds(mapBounds)
: <OsmNode>[];
// Filter out invalid coordinates before applying limit