// import 'package:flutter/material.dart';
// import 'package:flutter_map/flutter_map.dart';
// import 'package:supabase_flutter/supabase_flutter.dart';

// import 'map_layer.dart';

// class PostGisLayer extends MapLayer {
//   final String table; // Supabase tábla neve
//   final String geomColumn; // geometry oszlop
//   final String? filter; // pl. "project_id=eq.123"
//   final BoundingBox? bbox; // csak látható terület lekérése

//   @override
//   Widget buildFlutterMapLayer() {
//     // flutter_map_tile_caching + PostGIS tile endpoint
//     return TileLayer(urlTemplate: _buildMvtUrl());
//   }

//   // MapBox Vector Tiles (MVT) Supabase Edge Function-ből
//   String _buildMvtUrl() =>
//       '${Supabase.instance.client.supabaseUrl}/functions/v1/tiles'
//       '/$table/{z}/{x}/{y}?geom=$geomColumn${filter != null ? "&filter=$filter" : ""}';
// }
