Skip to content

Commit cde93c8

Browse files
authored
fix(docs): correct broken links for TileLayer & MapController (#2197)
1 parent 3a6bacb commit cde93c8

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

lib/src/layer/tile_layer/tile_layer.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ part 'retina_mode.dart';
2020
part 'tile_error_evict_callback.dart';
2121
part 'wms_tile_layer_options.dart';
2222

23-
/// Describes the needed properties to create a tile-based layer. A tile is an
23+
/// Describes the needed properties to create a raster tile layer. A tile is an
2424
/// image bound to a specific geographical position.
2525
///
26-
/// You should read up about the options by exploring each one, or visiting
27-
/// https://docs.fleaflet.dev/usage/layers/tile-layer. Some are important to
28-
/// avoid issues.
26+
/// Read the [online documentation](https://docs.fleaflet.dev/layers/tile-layer)
27+
/// to get started by following the recommended setup.
2928
@immutable
3029
class TileLayer extends StatefulWidget {
3130
/// The URL template is a string that contains placeholders, which, when filled

lib/src/map/controller/map_controller.dart

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@ import 'package:flutter_map/src/map/inherited_model.dart';
66
import 'package:flutter_map/src/misc/move_and_rotate_result.dart';
77
import 'package:latlong2/latlong.dart';
88

9-
/// Controller to programmatically interact with [FlutterMap], such as
10-
/// controlling it and accessing some of its properties.
9+
/// Controller to programmatically interact with a [FlutterMap].
1110
///
12-
/// See https://docs.fleaflet.dev/usage/controller#initialisation for information
13-
/// on how to set-up and connect a controller to a map widget instance.
11+
/// Read the [online documentation](https://docs.fleaflet.dev/usage/programmatic-interaction)
12+
/// to get started.
1413
abstract class MapController {
15-
/// Controller to programmatically interact with [FlutterMap], such as
16-
/// controlling it and accessing some of its properties.
14+
/// Controller to programmatically interact with a [FlutterMap].
1715
///
18-
/// See https://docs.fleaflet.dev/usage/controller#initialisation for
19-
/// information how to set-up and connect a controller to a map widget
20-
/// instance.
16+
/// Read the [online documentation](https://docs.fleaflet.dev/usage/programmatic-interaction)
17+
/// to get started.
2118
///
2219
/// Factory constructor redirects to underlying implementation's constructor.
2320
factory MapController() = MapControllerImpl;

0 commit comments

Comments
 (0)