import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:vector_map_tiles/vector_map_tiles.dart'; /// Loads and caches the MapLibre style from the backend. /// Keyed by base URL so a URL change triggers a reload. final mapStyleProvider = FutureProvider.family((ref, baseUrl) async { final styleUrl = '$baseUrl/tiles/style.json'; return StyleReader(uri: styleUrl).read(); });