Skip to content

Commit

Permalink
Added MapId to mapOption #127
Browse files Browse the repository at this point in the history
  • Loading branch information
valentasm committed Sep 7, 2021
1 parent 18053af commit 4b9b0a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GoogleMapsComponents/GoogleMapsComponents.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<RazorLangVersion>3.0</RazorLangVersion>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PackageId>BlazorGoogleMaps</PackageId>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
<Authors>Rungwiroon</Authors>
<Company>QueueStack Solution</Company>
<Product>BlazorGoogleMaps</Product>
Expand Down
11 changes: 10 additions & 1 deletion GoogleMapsComponents/Maps/MapOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public class MapOptions
/// If false, disables zooming on the map using a mouse scroll wheel.
/// The scrollwheel is enabled by default.
/// </summary>
public bool? Scrollwheel { get; set; }
public bool? Scrollwheel { get; set; }

/// <summary>
/// A StreetViewPanorama to display when the Street View pegman is dropped on the map.
Expand Down Expand Up @@ -217,5 +217,14 @@ public class MapOptions
/// The display options for the Zoom control.
/// </summary>
public ZoomControlOptions ZoomControlOptions { get; set; }

/// <summary>
/// Type: string optional
/// The unique identifier that represents a single instance of a Google Map.
/// You can create Map IDs and update a style associated with a
/// Map ID at any time in the Google Cloud Console Maps Management
/// page without changing embedded JSON styling in your application code.
/// </summary>
public string? MapId { get; set; }
}
}
3 changes: 2 additions & 1 deletion ServerSideDemo/Pages/MapMarker.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ protected override void OnInitialized()
Lat = 13.505892,
Lng = 100.8162
},
MapTypeId = MapTypeId.Roadmap
MapTypeId = MapTypeId.Roadmap,
MapId = "3a3b33f0edd6ed2a"
};
}

Expand Down

0 comments on commit 4b9b0a1

Please sign in to comment.