(epsgCode, wkt, bounds)
| 128 | } |
| 129 | |
| 130 | function registerProj(epsgCode, wkt, bounds) { |
| 131 | const extent = [bounds.left, bounds.bottom, bounds.right, bounds.top]; |
| 132 | let epsgCodeStr = `EPSG:${epsgCode}`; |
| 133 | !get(epsgCodeStr) && proj4.defs(epsgCodeStr, wkt); |
| 134 | if (olProj4 && olProj4.register) { |
| 135 | olProj4.register(proj4); |
| 136 | var prj = get(epsgCodeStr); |
| 137 | prj.setExtent(extent); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | function createLayer(url, result, sourceOptions, layerOptions) { |
| 142 | let options = TileSuperMapRest.optionsFromMapJSON(url, result, true); |