LeafletForBlazor-NuGet icon indicating copy to clipboard operation
LeafletForBlazor-NuGet copied to clipboard

Zoom feature request

Open avresial opened this issue 6 months ago • 5 comments

Hi

I would like to zoom in or out using an event from my blazor wasm .NET 8 application. I can not find any method that accomplishes my goal.

I tried to change parameters.zoomLevel from code. For example using a button. But it seems that it does not affect map at all. Setting RealTimeMap.LoadParameters.zoomLevel works only during initialization. Then I tried invoking InvokeAsync(StateHasChanged); after zoom value change and it does not work.

My suggestion would be to add parameter zoomlevel to following method:

public async Task movePoint(double[] coordinate, PointSymbol pointSymbol)

or make another one. Like changeZoomLevel(double zoomLevel)

Overall I find this nugget very useful! thx

avresial avatar Aug 08 '24 12:08 avresial