Skip to content

Commit 4dc6678

Browse files
committed
Document map3d extent
1 parent ed73615 commit 4dc6678

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/topics/View3D.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ To enable the 3D view, you need to configure the plugin in `config.json`. A typi
5252
Next, to add a 3D View to a theme, add a `map3d` configuration to the desired theme item in [`themesConfig.json`](../configuration/ThemesConfiguration.md#manual-theme-configuration):
5353
```
5454
"map3d": {
55+
"extent": {
56+
"bounds": [<xmin>,<ymin>,<xmax>,<ymax>],
57+
"crs": "<epsg_code>"
58+
},
5559
"initialView": {
5660
"camera": [x, y, z],
5761
"target": [x, y, z],
@@ -88,6 +92,7 @@ Next, to add a 3D View to a theme, add a `map3d` configuration to the desired th
8892
```
8993
Where:
9094

95+
- `extent` is optional and allows setting the full extent of the 3D view. If not set, the extent of the 2D view is used.
9196
- `initialView` is optional and allows to define the initial view when opening the 3D view. If `personHeight` is specified and greater than 0, the first-person view is activated. If not specified, the 2D view is synchronized.
9297
- The `dtm` URL should point to a cloud optimized GeoTIFF.
9398
- The background layer names refer to the names of the entries defined in `backgroundLayers` in the `themesConfig.json`. Additionally:

0 commit comments

Comments
 (0)