ichim / LeafletForBlazor-NuGet

LeafletForBlazor NuGet Package - You can quickly add a map control to your Blazor application - 2.2.2.2 version. #12 issue, StreamLegend customization
https://www.nuget.org/packages/LeafletForBlazor#versions-body-tab
74 stars 9 forks source link

How to move map? #9

Closed DaZhiAmbit closed 3 months ago

DaZhiAmbit commented 11 months ago

How to move map?

ichim commented 11 months ago

You can not move map. You can move a single point or many points of Geometric.Points collection.

ZARichardWright commented 5 months ago

Works Perfect Thanks

avresial commented 3 months ago

Hi In order to move map I can use following method.

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

Is there any way to zoom in or out using method too?

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 zoom level works only during initialization.

I tried invoking InvokeAsync(StateHasChanged); after zoom value change and it does not work.