Closed sdl60660 closed 3 years ago
There isn't a specific way other than I didn't need the functionality :)
Feel free to open a PR to make this change!
I think this held me back just now. Is anyone working on a solution? I'm happy to have a go if no-one else is.
@CraigChamberlain I submitted it as a pull request.
Released as v7.6.0 :) thanks!
I noticed while using the fitBounds method, that it didn't support passing through the options available to that mapbox function, such as turning off animation (which is what I was trying to do).
It seems to me that this should be as straightforward as adding an optional parameter on your Map.svelte component's methods, which is what I did locally to make it work. For example:
Just becomes...
I'd be happy to submit a pull request to this effect, but I'm not sure if there was a reason things were implemented this way, without options.