The title pretty much says it all. Automatically pan to selected store is great! But why not take the padding set in the mapView instance into account when doing so?
If I activate paddedStoreCenter it WILL pan using padding options ! but only if the store was out of padded bounds.
One solution would be to turn off automatic padding to selected store and doing it ourselves but I was wondering it there was another way !
Hi @Tucsky, thanks for joining the Woosmap Community.
Yes you’re right.
The solution would have been to use the gentleCenter property (define if the view will center on the selectedStore only if it’s not already in the padded zone). But this property is not applied as soon as you set a custom padding.
However, you can use the TiledView.PanTo() method which take into account your padding option and can be forced to Pan (using the force parameter), regardless if the store is already in your padded bounds.