osgeonl / geonetwork-dutch-skin

Dutch styles GeoNetwork
4 stars 5 forks source link

map in editor not functional #10

Open pvgenuchten opened 6 years ago

pvgenuchten commented 6 years ago

Seems the epsg:28992 projection is not available to the editor, for now do not set the editor map projection to epsg:28992, else you'll get the error below

image

TypeError: Cannot read property 'getCode' of null at Object.ol.proj.getTransformFromProjections (/geonetwork/catalog/lib/ngeo/ngeo-debug.js:6958:47) at Object.ol.proj.getTransform (/geonetwork/catalog/lib/ngeo/ngeo-debug.js:6941:18) at Object.ol.proj.transformExtent (/geonetwork/catalog/lib/ngeo/ngeo-debug.js:7042:29) at Object.reprojExtent (/geonetwork/catalog/components/common/map/mapService.js:302:30) at reprojExtent (/geonetwork/catalog/components/common/map/mapDirective.js:166:35) at link (/geonetwork/catalog/components/common/map/mapDirective.js:179:14)

Delawen commented 6 years ago

I got this issue when not all names of the projections are properly defined in the config javascript files.

PascalLike commented 6 years ago

Here a fix to avoid this error https://github.com/geonetwork/core-geonetwork/pull/2600 It works also in the dutch view