venue-js 1.2.0-next.4 → 1.2.0-next.6
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.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3027,7 +3027,7 @@ var CameraManager = class {
|
|
|
3027
3027
|
return this.map.getView();
|
|
3028
3028
|
};
|
|
3029
3029
|
setView = (value) => {
|
|
3030
|
-
if (this.map) {
|
|
3030
|
+
if (this.map && Object.keys(value).length !== 0) {
|
|
3031
3031
|
this.map.setView(value);
|
|
3032
3032
|
}
|
|
3033
3033
|
};
|
|
@@ -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
|
|
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;
|