alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsZoomSettings

    Sets and gets the options to customize the zooming operations in maps.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsZoomSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsZoomSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    MapsZoomSettings()

    Declaration
    public MapsZoomSettings()

    Properties

    ChildContent

    Sets and gets the content of the UI element.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment representing the template content of the UI element.

    Remarks

    This property allows custom content to be rendered inside the zoom settings panel.

    Color

    Sets and gets the color for the toolbar in maps.

    Declaration
    [Parameter]
    public string Color { get; set; }
    Property Value
    Type Description
    string

    A string representing the color used in the map's toolbar. Default is null.

    Remarks

    Use this property to define a specific color for the toolbar interface in the maps.

    DoubleClickZoom

    Enables or disables the double click zooming in maps.

    Declaration
    [Parameter]
    public bool DoubleClickZoom { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables double click zooming, and false disables it.

    Remarks

    This property allows users to zoom in to the map by double-clicking on it.

    Enable

    Enables or disables the zooming operation in the maps component.

    Declaration
    [Parameter]
    public bool Enable { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables zooming, and false disables it.

    Remarks

    This property determines whether the map can be zoomed in or out.

    EnablePanning

    Enables or disables the panning operation in the maps component.

    Declaration
    [Parameter]
    public bool EnablePanning { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables panning, and false disables it. Default is true.

    Remarks

    This property allows users to move the map around by dragging.

    EnableSelectionZooming

    Enables or disables the selection zooming operation in the maps component.

    Declaration
    [Parameter]
    public bool EnableSelectionZooming { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables selection zooming, and false disables it. Default is true.

    Remarks

    This property lets users zoom in by selecting a specific area of the map.

    MaxZoom

    Sets and gets the maximum zooming value in maps.

    Declaration
    [Parameter]
    public double MaxZoom { get; set; }
    Property Value
    Type Description
    double

    A double value representing the maximum zoom level allowed. Default is 10.

    Remarks

    This property defines how far the user can zoom into the map.

    MinZoom

    Sets and gets the minimum zooming value in maps.

    Declaration
    [Parameter]
    public double MinZoom { get; set; }
    Property Value
    Type Description
    double

    A double value representing the minimum zoom level allowed. Default is 1.

    Remarks

    This property determines how much the map can be zoomed out.

    MouseWheelZoom

    Enables or disables the mouse wheel zooming in maps.

    Declaration
    [Parameter]
    public bool MouseWheelZoom { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables mouse wheel zooming, and false disables it. Default is true.

    Remarks

    This property allows the map to be zoomed in or out using the mouse wheel.

    PinchZooming

    Enables or disables the pinch zooming in maps.

    Declaration
    [Parameter]
    public bool PinchZooming { get; set; }
    Property Value
    Type Description
    bool

    A boolean value where true enables pinch zooming, and false disables it. Default is true.

    Remarks

    This property is used to enable zooming via pinch gestures on touch devices.

    ResetToInitial

    Enables or disables the zoom to set the initial State.

    Declaration
    [Parameter]
    public bool ResetToInitial { get; set; }
    Property Value
    Type Description
    bool

    A boolean indicating whether to reset the zoom to the initial state.

    Remarks

    This property determines if the map should return to its initial zoom level when reset.

    ShouldZoomInitially

    Enables or disables the zoom based on the marker position while rendering the maps.

    Declaration
    [Parameter]
    public bool ShouldZoomInitially { get; set; }
    Property Value
    Type Description
    bool

    A boolean indicating whether the map should zoom initially based on marker positions.

    Remarks

    This property allows the map to automatically zoom to a marker when initially rendered.

    ZoomFactor

    Sets and gets the factor of zoom to be displayed while rendering the maps.

    Declaration
    [Parameter]
    public double ZoomFactor { get; set; }
    Property Value
    Type Description
    double

    A double representing the initial zoom factor for the map. Default is 1.

    Remarks

    This factor determines the default zoom level when the map is rendered.

    ZoomOnClick

    Enables or disables the zooming on clicking the shapes in maps.

    Declaration
    [Parameter]
    public bool ZoomOnClick { get; set; }
    Property Value
    Type Description
    bool

    A boolean indicating whether clicking on shapes should trigger a zoom.

    Remarks

    This property allows interaction with map shapes to initiate zooming.

    ZoomOnMarkerClick

    Enables or disables zooming of the map when clicking on the markers.

    Declaration
    [Parameter]
    public bool ZoomOnMarkerClick { get; set; }
    Property Value
    Type Description
    bool

    Accepts boolean values. true if the map should zoom in when a marker is clicked. Otherwise, false. Default is true.

    Remarks

    This property controls whether the map zooms in on markers when they are clicked.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose(bool)

    Disposes the property values during the destroy of the component that is hold up for the execution of the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    OnInitializedAsync method is called when the component has received its initial parameters.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved