react-map-interaction icon indicating copy to clipboard operation
react-map-interaction copied to clipboard

Resetting pan to defaultTranslation?

Open bamtheboozle opened this issue 6 years ago • 0 comments

Is it currently possible to somehow trigger a reset to the defaultTranslation passed in?

Eg have a button outside that triggers the MapInteractionCss to reset to its defaultTranslation?

Passing it a translation prop seems to fix the translation to that x and y, with panning disabled.

bamtheboozle avatar Sep 20 '19 07:09 bamtheboozle