(result, mapOptions, viewOptions)
| 118 | } |
| 119 | |
| 120 | function createMap(result, mapOptions, viewOptions) { |
| 121 | let view = viewOptionsFromMapJSON(result); |
| 122 | var map = new olMap({ |
| 123 | target: 'map', |
| 124 | view: new View({ ...view, ...viewOptions }), |
| 125 | ...mapOptions |
| 126 | }); |
| 127 | return map; |
| 128 | } |
| 129 | |
| 130 | function registerProj(epsgCode, wkt, bounds) { |
| 131 | const extent = [bounds.left, bounds.bottom, bounds.right, bounds.top]; |
no test coverage detected