BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
I am writing an Blazor Server application that allows the map to go to a particular longitude and latitude when I click on an entry in a datagrid. I'd like the map zoomed out a little at the start but zoom in when an entry in the datagrid is clicked.
I'm using version 20.4.0.54
This works perfectly for longitude and latitude but not for zoomFactor. The zoom remains fixed.
<SfMaps>
<MapsZoomSettings Enable="true" ZoomFactor="@ZoomFactor" MaxZoom="20"></MapsZoomSettings>
<MapsCenterPosition Latitude="@MapLatitude" Longitude="@MapLongitude"></MapsCenterPosition>
<MapsLayers>
<MapsLayer UrlTemplate="https://tile.openstreetmap.org/level/tileX/tileY.png" TValue="string">
<MapsMarkerSettings>
<MapsMarker Visible="true" Height="25" Width="15" DataSource="Cities" TValue="City">
</MapsMarker>
</MapsMarkerSettings>
</MapsLayer>
</MapsLayers>
</SfMaps>
public void RowSelectHandler(RowSelectEventArgs args)
{
MapLatitude = args.Data.Latitude;
MapLongitude = args.Data.Longitude;
ZoomFactor = 12;
}
public double MapLatitude { get; set; } = 25.54244147012483;
public double MapLongitude { get; set; } = -89.62646484375;
public double ZoomFactor { get; set; } = 4;
Hi Gordon,
We can reproduce the reported issue with the provided code snippet in the Maps component. We have considered this as a defect and logged a defect report for the same. However, we will include the fix for the reported issue in our weekly patch release which is expected to be available by the start of April 2023. Please find the feedback link below to keep track of the reported issue.
Hi Gordan,
We have fixed the reported issue - “Zoom factor property is not working when changed dynamically” and the fix is included in our weekly patch release (v21.1.38). Please update the “Syncfusion.Blazor.Maps” package to latest version in your application to resolve the reported issue. Please find the package link below.
https://www.nuget.org/packages/Syncfusion.Blazor.Maps
Please let us know if you need any further
assistance.
Thanks again for the quick response on this issue.
Regards.
Hi Gordan,
Thank you for the update.
Please get back to us if you need any further assistance.