Skip to content

Commit

Permalink
MarkerClustering Options - MaxZoom is not used in library #252
Browse files Browse the repository at this point in the history
  • Loading branch information
valentasm committed Apr 1, 2023
1 parent bf2ef5d commit 2a6cbe7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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>3.0.0</Version>
<Version>3.0.1</Version>
<Authors>Rungwiroon</Authors>
<Company>QueueStack Solution</Company>
<Product>BlazorGoogleMaps</Product>
Expand Down
10 changes: 10 additions & 0 deletions GoogleMapsComponents/Maps/MarkerClustererOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ public class MarkerClustererOptions
/// The maximum zoom level at which clustering is enabled or if
/// clustering is to be enabled at all zoom levels.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public int? MaxZoom { get; set; }

/// <summary>
/// Whether the position of a cluster marker should be
/// the average position of all markers in the cluster. If set to `false`, the
/// cluster marker is positioned at the location of the first marker added to the cluster.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public bool? AverageCenter { get; set; }

/// <summary>
Expand All @@ -38,34 +40,40 @@ public class MarkerClustererOptions
/// as these look better when viewed on high-resolution monitors such as Apple's Retina displays.
/// Note: if this property is `true`, sprites cannot be used as cluster icons.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public bool? EnableRetinaIcons { get; set; }

/// <summary>
///The grid size of a cluster in pixels. The grid is a square.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public int? GridSize { get; set; }

/// <summary>
/// Whether to ignore hidden markers in clusters. You
/// may want to set this to `true` to ensure that hidden markers are not included
/// in the marker count that appears on a cluster marker.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public bool? IgnoreHidden { get; set; }

/// <summary>
/// The full URL of the root name of the group of image files to use for cluster icons.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public string ImagePath { get; set; } = "_content/BlazorGoogleMaps/m";

/// <summary>
/// The extension name for the cluster icon image files (e.g., `"png"` or `"jpg"`).
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public string? ImageExtension { get; set; }

/// <summary>
/// The minimum number of markers needed in a cluster
/// before the markers are hidden and a cluster marker appears.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public int? MinimumClusterSize { get; set; }

/// <summary>
Expand All @@ -83,11 +91,13 @@ public class MarkerClustererOptions
/// <summary>
/// The tooltip to display when the mouse moves over a cluster marker.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public string? Title { get; set; }

/// <summary>
/// The z-index of a cluster.
/// </summary>
[Obsolete("Not used. Will be removed in future releases")]
public int? ZIndex { get; set; }

/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions ServerSideDemo/Pages/MapMarker.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,8 @@ private async Task InvokeStyledIconsClustering()

_markerClustering = await MarkerClustering.CreateAsync(_map1.JsRuntime, _map1.InteropObject, markers, new()
{

AverageCenter = true,
RendererObjectName = "customRendererLib.interpolatedRenderer",
ZoomOnClick = true,

});

await _markerClustering.FitMapToMarkers(1);
Expand Down

0 comments on commit 2a6cbe7

Please sign in to comment.