You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Attribution widget layer, usually placed in `nonRotatedChildren`
4
+
///
5
+
/// Can be anchored in a position of the map using [alignment], defaulting to [Alignment.bottomRight]. Then pass [attributionBuilder] to build your custom attribution widget.
6
+
///
7
+
/// Alternatively, use the constructor [defaultWidget] to get a more classic styled attibution box.
8
+
classAttributionWidgetextendsStatelessWidget {
9
+
/// Function that returns a widget given a [BuildContext], displayed on the map
10
+
finalWidgetBuilder attributionBuilder;
11
+
12
+
/// Anchor the widget in a position of the map, defaulting to [Alignment.bottomRight]
13
+
finalAlignment alignment;
14
+
15
+
/// Attribution widget layer, usually placed in `nonRotatedChildren`
16
+
///
17
+
/// Can be anchored in a position of the map using [alignment], defaulting to [Alignment.bottomRight]. Then pass [attributionBuilder] to build your custom attribution widget.
18
+
///
19
+
/// Alternatively, use the constructor [defaultWidget] to get a more classic styled attibution box.
/// Provide [onSourceTapped] to carry out a function when the box is tapped. If that isn't null, the source text will have [sourceTextStyle] styling - which defaults to a link styling.
Copy file name to clipboardexpand all lines: lib/src/layer/tile_layer/tile_layer_options.dart
+57-51
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,10 @@ class TileLayerOptions extends LayerOptions {
226
226
/// When set to `true`, the `tileFadeIn*` options will be ignored.
227
227
finalbool fastReplace;
228
228
229
-
///Attribution widget builder
229
+
/// [attributionBuilder] has been deprecated. Usage will continue to work, however not as expected. As an alternative, use [AttributionWidget] inside `nonRotatedChildren`.
230
+
@Deprecated(
231
+
'`attributionBuilder` has been deprecated. Usage will continue to work, however not as expected. As an alternative, use `AttributionWidget` inside `nonRotatedChildren`.',
232
+
)
230
233
finalWidgetBuilder? attributionBuilder;
231
234
232
235
///aligment of the attribution text on the map widget
@@ -238,56 +241,59 @@ class TileLayerOptions extends LayerOptions {
'`attributionBuilder` has been deprecated. Usage will continue to work, however not as expected. As an alternative, use `AttributionWidget` inside `nonRotatedChildren`.',
248
+
)
249
+
this.attributionBuilder,
250
+
Key? key,
251
+
// TODO: make required
252
+
this.urlTemplate,
253
+
double tileSize =256.0,
254
+
double minZoom =0.0,
255
+
double maxZoom =18.0,
256
+
this.minNativeZoom,
257
+
this.maxNativeZoom,
258
+
this.zoomReverse =false,
259
+
double zoomOffset =0.0,
260
+
Map<String, String>? additionalOptions,
261
+
this.subdomains =const<String>[],
262
+
this.keepBuffer =2,
263
+
this.backgroundColor =constColor(0xFFE0E0E0),
264
+
@Deprecated('`placeholderImage` has been deprecated with no current replacement or workaround. Usage no longer has an effect internally.')
Copy file name to clipboardexpand all lines: pubspec.yaml
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
name: flutter_map
2
2
description: A versatile mapping package for Flutter, based off leaflet.js, that's simple and easy to learn, yet completely customizable and configurable.
0 commit comments