From d650c016cbaf4f5c4c862cd0340bfa42da2d759d Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 1 Jan 2023 13:40:51 +0100 Subject: [PATCH] Close #816 virtual-tour: add `gps` option for markers --- docs/plugins/virtual-tour.md | 4 +- examples/plugin-virtual-tour.html | 65 ++++++++++--------- .../src/VirtualTourPlugin.ts | 26 +++----- .../src/datasources/AbstractDataSource.ts | 5 +- packages/virtual-tour-plugin/src/model.ts | 11 +++- packages/virtual-tour-plugin/src/utils.ts | 24 ++++++- 6 files changed, 82 insertions(+), 53 deletions(-) diff --git a/docs/plugins/virtual-tour.md b/docs/plugins/virtual-tour.md index d59b7ac96..abbab45ed 100644 --- a/docs/plugins/virtual-tour.md +++ b/docs/plugins/virtual-tour.md @@ -234,7 +234,7 @@ Definition of the links of this node. See bellow. - type: `number[]` -GPS coordinates of this node as an array of two or three values (`[longitude, latitude, altitude]`). +GPS coordinates of this node as an array of two or three values (`[longitude, latitude, altitude?]`). ::: warning Projection system Only the [ESPG:4326 projection](https://epsg.io/4326) is supported. @@ -266,6 +266,8 @@ Thumbnail for the nodes list in the gallery. Additional markers displayed on this node, requires the [Markers plugin](./markers.md). +Since 5.0.2 the markers can be positioned with the classic `position` option (yaw + pitch) or, if `positionMode=gps`, with the `gps` option (longitude + latitude + altitude). + #### `panoData` Refer to the main [config page](../guide/config.md#panodata). diff --git a/examples/plugin-virtual-tour.html b/examples/plugin-virtual-tour.html index 17228e4ce..4bfde43d4 100644 --- a/examples/plugin-virtual-tour.html +++ b/examples/plugin-virtual-tour.html @@ -25,6 +25,16 @@