()
| 200 | } |
| 201 | |
| 202 | defaultCenter() { |
| 203 | const center = [this.options.default_lon, this.options.default_lat]; |
| 204 | if (this.options.map_srid) { |
| 205 | return ol.proj.transform( |
| 206 | center, |
| 207 | "EPSG:4326", |
| 208 | this.map.getView().getProjection(), |
| 209 | ); |
| 210 | } |
| 211 | return center; |
| 212 | } |
| 213 | |
| 214 | enableDrawing() { |
| 215 | this.interactions.draw.setActive(true); |
no test coverage detected