venue-js 1.2.0-next.4 → 1.2.0-next.5

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/dist/index.mjs CHANGED
@@ -3413,6 +3413,7 @@ var Element3DRenderer = class extends EventTarget {
3413
3413
  switch (feature2.geometry.type) {
3414
3414
  case "MultiPolygon": {
3415
3415
  const { coordinates } = feature2.geometry;
3416
+ if (!coordinates) return [];
3416
3417
  const multiMeshes = coordinates.flatMap((polygonCoordinates) => {
3417
3418
  const meshes = createPolygon({ type: "Polygon", coordinates: polygonCoordinates }, feature2);
3418
3419
  this.threeLayer.addMesh(meshes);
@@ -3421,6 +3422,8 @@ var Element3DRenderer = class extends EventTarget {
3421
3422
  return multiMeshes;
3422
3423
  }
3423
3424
  case "Polygon": {
3425
+ const { coordinates } = feature2.geometry;
3426
+ if (!coordinates) return [];
3424
3427
  const meshes = createPolygon(feature2.geometry, feature2);
3425
3428
  this.threeLayer.addMesh(meshes);
3426
3429
  return meshes;
@@ -4128,7 +4131,7 @@ var IndoorMap = class extends EventTarget {
4128
4131
  }
4129
4132
  set dataClient(value) {
4130
4133
  this.#dataClient = value;
4131
- if (!this.options.camera.defaultView.center) {
4134
+ if (!this.options.camera?.defaultView?.center) {
4132
4135
  this.#dataClient.filterByType("venue").then((venues) => {
4133
4136
  const venueCenters = turfCenter3(featureCollection(venues));
4134
4137
  const [x, y] = venueCenters.geometry.coordinates;