@@ -999,7 +999,7 @@ class BytesMapBitmap extends MapBitmap {
999
999
/// PinConfig(
1000
1000
/// backgroundColor: Colors.blue,
1001
1001
/// borderColor: Colors.white,
1002
- /// glyph: Glyph.color( Colors.blue)
1002
+ /// glyph: CircleGlyph(color: Colors.blue)
1003
1003
/// )
1004
1004
/// ```
1005
1005
///
@@ -1009,7 +1009,7 @@ class BytesMapBitmap extends MapBitmap {
1009
1009
/// ```dart
1010
1010
/// PinConfig(
1011
1011
/// backgroundColor: Colors.blue,
1012
- /// glyph: Glyph.text( 'Pin', Colors.white)
1012
+ /// glyph: TextGlyph(text: 'Pin', textColor: Colors.white)
1013
1013
/// )
1014
1014
/// ```
1015
1015
///
@@ -1018,8 +1018,8 @@ class BytesMapBitmap extends MapBitmap {
1018
1018
///
1019
1019
/// ```dart
1020
1020
/// PinConfig(
1021
- /// glyph: Glyph.bitmapDescriptor (
1022
- /// BitmapDescriptor.asset(
1021
+ /// glyph: BitmapGlyph (
1022
+ /// bitmap: BitmapDescriptor.asset(
1023
1023
/// ImageConfiguration(size: Size(12, 12)),
1024
1024
/// 'assets/cat.png'
1025
1025
/// )
@@ -1053,7 +1053,13 @@ class PinConfig extends BitmapDescriptor {
1053
1053
/// The border color of the pin.
1054
1054
final Color ? borderColor;
1055
1055
1056
- /// The glyph that is displayed on the pin marker.
1056
+ /// The glyph that is displayed on the pin marker. If null, the default
1057
+ /// circular glyph is used.
1058
+ ///
1059
+ /// Can be one of the following:
1060
+ /// * [CircleGlyph] to define a circular glyph with a custom color.
1061
+ /// * [BitmapGlyph] to define a glyph with a specified bitmap.
1062
+ /// * [TextGlyph] to define a glyph with a specified text and its color.
1057
1063
final AdvancedMarkerGlyph ? glyph;
1058
1064
1059
1065
@override
@@ -1073,7 +1079,7 @@ abstract class AdvancedMarkerGlyph extends BitmapDescriptor {
1073
1079
const AdvancedMarkerGlyph ._() : super ._();
1074
1080
}
1075
1081
1076
- /// Defines a glyph using the default circle, but with a custom color.
1082
+ /// Defines a circular glyph with a given color.
1077
1083
class CircleGlyph extends AdvancedMarkerGlyph {
1078
1084
/// Constructs a glyph instance, using the default circle, but with
1079
1085
/// a custom color.
0 commit comments