()
| 137 | } |
| 138 | } |
| 139 | get extent() { |
| 140 | // calculate the bounds of content, return it. |
| 141 | // _templateVars existence happens for both templated layers and query links |
| 142 | return this._templateVars |
| 143 | ? Object.assign( |
| 144 | Util._convertAndFormatPCRS( |
| 145 | this.getBounds(), |
| 146 | M[this.parentExtent.units], |
| 147 | this.parentExtent.units |
| 148 | ), |
| 149 | { zoom: this.getZoomBounds() } |
| 150 | ) |
| 151 | : null; |
| 152 | } |
| 153 | zoomTo() { |
| 154 | let extent = this.extent; |
| 155 | if (!extent) return; |
nothing calls this directly
no test coverage detected