ichim / LeafletForBlazor-NuGet

LeafletForBlazor NuGet Package - You can quickly add a map control to your Blazor application - 2.2.0.4 version. GeoJSON file and switch/case appearance. Apply visibility zoom levels
https://www.nuget.org/packages/LeafletForBlazor#versions-body-tab
64 stars 8 forks source link

Behaviour zoom level after adding points #25

Closed ehilgen closed 6 months ago

ehilgen commented 6 months ago

Hi,

I really like your package, if i add a map i can set the base coordinates and an zoom level. if i display the map is zooms correctley. After an OnAfterMapLoaded i load the StreamPoints to the map, after this it zooms to the area around the points in stead of the maps zoomlevel and cooridinates. Is this standard behavour, ir can i set a setting to oveeride it?

Thank you,

Regards,

Etienne

ichim commented 6 months ago

Hello sir, You can prevent this behavior if you add points using add method and set false the changeExtentWhenAddPoints property:

Geometric.Points.changeExtentWhenAddPoints = false

ehilgen commented 6 months ago

Great this works, thank you!

ichim commented 6 months ago

Thank you!