-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
[JsonConverter(typeof(EnumMemberConverter<T>))]
attribute to …
…enum properties in most "options" classes to ensure that they are correctly serialized. Changed `MapTypeControlStyle` from a class to an enum, and used the `EnumMember` attribute to force the serialization values. Note - had to use 0, 1, and 2 instead of "DEFAULT", "HORIZONTAL_BAR", and "DROPDOWN_MENU" to get it to work. Tidied up various xml comments throughout the codebase.
- Loading branch information
Showing
27 changed files
with
286 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
GoogleMapsComponents/Maps/Controls/MotionTrackingControlOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
namespace GoogleMapsComponents.Maps.Controls; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GoogleMapsComponents.Maps.Controls; | ||
|
||
public class MotionTrackingControlOptions | ||
{ | ||
/// <summary> | ||
/// Position id. Used to specify the position of the control on the map.<br/> | ||
/// The default position is <c>RightBottom</c>. | ||
/// </summary> | ||
[JsonConverter(typeof(EnumMemberConverter<ControlPosition>))] | ||
public ControlPosition Position { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.