(region: Region, duration: number = 500)
| 854 | } |
| 855 | |
| 856 | animateToRegion(region: Region, duration: number = 500) { |
| 857 | if (this.fabricMap.current) { |
| 858 | this.fabricMap.current.animateToRegion(region, duration); |
| 859 | } else if (this.map.current) { |
| 860 | Commands.animateToRegion(this.map.current, region, duration); |
| 861 | } |
| 862 | } |
| 863 | setRegion(region: Region) { |
| 864 | if (this.fabricMap.current) { |
| 865 | this.fabricMap.current.animateToRegion(region, 0); |
nothing calls this directly
no test coverage detected