(camera: Partial<Camera>, opts?: {duration?: number})
| 839 | } |
| 840 | |
| 841 | animateCamera(camera: Partial<Camera>, opts?: {duration?: number}) { |
| 842 | if (this.fabricMap.current) { |
| 843 | this.fabricMap.current.animateCamera( |
| 844 | camera, |
| 845 | opts?.duration ? opts.duration : 500, |
| 846 | ); |
| 847 | } else if (this.map.current) { |
| 848 | Commands.animateCamera( |
| 849 | this.map.current, |
| 850 | camera, |
| 851 | opts?.duration ? opts.duration : 500, |
| 852 | ); |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | animateToRegion(region: Region, duration: number = 500) { |
| 857 | if (this.fabricMap.current) { |
nothing calls this directly
no test coverage detected