Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invalidateSize #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mithril52
Copy link

I use Leaflet maps in a resizable container in my Blazor app. I needed the ability to call invalidateSize() when the container changes size so that leaflet will use the proper dimensions when knowing when to ask for more tiles.

Not sure if you are taking pull requests or not, but thought I would pass it on.

@mchilicki
Copy link
Contributor

Hi, thank you for your contribution.
We implement BlazorMaps very closely connected to original Leaflet library, please see how invalidateSize is implemented in Leaflet. Can you correct your changes have one of parameters in a method, ZoomPanOptions or bool?

https://leafletjs.com/reference-1.7.1.html#map-methods-for-modifying-map-state
image

@mchilicki mchilicki added the enhancement New feature or request label Jan 4, 2021
@mchilicki mchilicki self-requested a review January 4, 2021 10:30
@mchilicki
Copy link
Contributor

Also please change your target branch to develop branch

@ledpup
Copy link

ledpup commented Jan 31, 2022

It would be great to have this PR added in. I was looking for this on the weekend. We just hacked it in via javascript, but a Blazor command would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants