18 lines
471 B
Dart
18 lines
471 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_map/flutter_map.dart';
|
|
|
|
class BaseLayer extends StatelessWidget {
|
|
const BaseLayer({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TileLayerWidget(
|
|
options: TileLayerOptions(
|
|
backgroundColor: Colors.transparent,
|
|
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
|
subdomains: ['a', 'b', 'c'],
|
|
),
|
|
);
|
|
}
|
|
}
|