@opengeoweb/webmap-react 10.2.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,3 +5,7 @@ This library was generated with [Nx](https://nx.dev).
5
5
  ## Running unit tests
6
6
 
7
7
  Run `nx test webmap-react` to execute the unit tests via [Jest](https://jestjs.io).
8
+
9
+ ### TypeScript Documentation
10
+
11
+ - [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/webmap-react/)
package/index.esm.js CHANGED
@@ -1206,12 +1206,14 @@ var getPixelCoordFromGeoCoord = function getPixelCoordFromGeoCoord(featureCoords
1206
1206
  y: featureCoord[1]
1207
1207
  };
1208
1208
  coordinates = proj.proj4.transform(from, to, coordinates);
1209
- var x = width * (coordinates.x - bbox.left) / (bbox.right - bbox.left);
1210
- var y = height * (coordinates.y - bbox.top) / (bbox.bottom - bbox.top);
1211
- XYCoords.push({
1212
- x: x,
1213
- y: y
1214
- });
1209
+ if (coordinates !== null) {
1210
+ var x = width * (coordinates.x - bbox.left) / (bbox.right - bbox.left);
1211
+ var y = height * (coordinates.y - bbox.top) / (bbox.bottom - bbox.top);
1212
+ XYCoords.push({
1213
+ x: x,
1214
+ y: y
1215
+ });
1216
+ }
1215
1217
  }
1216
1218
  } catch (err) {
1217
1219
  _iterator2.e(err);
@@ -6825,7 +6827,7 @@ var addWMLayerPropsBasedOnChildProps = function addWMLayerPropsBasedOnChildProps
6825
6827
  }, _callee);
6826
6828
  })), 1);
6827
6829
  })["catch"](function (e) {
6828
- child.onLayerError && child.onLayerError(e);
6830
+ child.onLayerError && child.onLayerError(newWMLayer, e);
6829
6831
  });
6830
6832
  }
6831
6833
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap-react",
3
- "version": "10.2.0",
3
+ "version": "11.0.0",
4
4
  "description": "GeoWeb react wrapper for webmap",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {