(num1, num2, precision = 10E-6)
| 838 | return this._isSameOrigin(origin) && this._isSameResolutions(resolutions, tileSize); |
| 839 | } |
| 840 | numberEqual(num1, num2, precision = 10E-6) { |
| 841 | return Math.abs(+num1 - +num2) <= precision; |
| 842 | } |
| 843 | _isSameOrigin(origin) { |
| 844 | const extent = this.map.getCRS().getExtent(); |
| 845 | return this.numberEqual(origin[0], extent[0]) && this.numberEqual(origin[1], extent[3]); |
no outgoing calls
no test coverage detected