Map View options
Every option of a Map View with its default value and what it changes for the user of a browser app.
A Map View defines what the user of a browser app sees: the map, the layers, and the tools around it. You find it in Studio under Browser → Map Views. Lesson 9: Creating a Browser App walks through the form once. This page lists every option with its default value and its effect.
For the user's side of these options see Working with a browser app.
General
| Option | Effect |
|---|---|
Enable Preview | Shows the map with your settings on the left of the form. The preview is needed for the bounds mode Auto. |
Render 3D Map | Turns the map into a 3D scene. Needs a Professional license; without one the switch is disabled. Studio then sets the coordinate system itself, and the options under Viewer Options (3D) become available. If you switch 3D off again, these options are switched off too. |
Name | Name of the Map View. Must be unique. |
EPSG | Coordinate system of the map. |
Legend | The layers of the app. Required. The legend must contain at least one layer. |
Stylesets | One or more style sets. The one marked as default is used when the app starts. With more than one, the user gets a selector above the layer tree. |
Action Sets | Buttons, context menu entries and layer actions that open workflows or web pages. See Action Sets. |
| Print layouts | The layouts the user can print with. As soon as one layout is assigned, the app shows the Print button. There is no separate switch for printing. See Print Layouts (Browser). |
Bounds
The bounds limit the area the user can move in.
| Mode | Effect |
|---|---|
Manual | You enter North, West, East and South. All four values are required. In this mode the camera cannot be tilted. |
Auto | The bounds are taken from the preview map: move the preview to the area you want. The preview must be enabled. |
Viewer Options
Each option adds a tab to the menu of the app or a group of buttons on the map.
| Option | Default | What the user gets |
|---|---|---|
Layer Tree | on | The tab Layer Tree: show and hide layers, set a layer active, change the opacity. |
Zoom Tool | on | The buttons Zoom In, Zoom Out, the box zoom and the compass. On a 3D map also the button that switches between the top-down and the tilted view. |
Pan Tool | off | The button Pan to my position. It moves the map to the location reported by the browser. |
Measure Tool | off | The tab Measurement. Opens the section Measure Tool below. See Measurement (Browser). |
Camera settings | off | The tab Camera, where the user switches between Default Camera and First Person Camera. |
Swipe View | off | The tab Swipe View: compare layers by dragging a dividing line across the map. |
Without Zoom Tool the user can still zoom with the mouse wheel and a double-click. The compass and the box zoom are then missing.
Viewer Options (3D)
These options can only be switched on for a 3D map. On a 2D map the app ignores them, even if they were saved while the map was still 3D.
| Option | Default | What the user gets |
|---|---|---|
Effects | off | The tab Effects with the effects you did not lock. See Effects below. |
Line of Sight | off | The tab Line of Sight: shows what is visible from a point. Opens the section Line of Sight below. |
Cross View | off | The tab Cross View: a cut through the scene. |
Measure Tool
Shown when Measure Tool is switched on.
| Option | Default | Effect |
|---|---|---|
Default UOM | meter | The unit in which results are shown first. |
| Coordinate system for measuring (field without a label) | the EPSG of the map | Filled in when you switch on Measure Tool; you can choose another one. If this coordinate system cannot be loaded, the tab Measurement is disabled in the app and a tooltip says why. |
Line of Sight
Shown when Line of Sight is switched on.
| Option | Default | Effect |
|---|---|---|
Height | 1 to 7 | The range in which the user can set the height of the eye above the ground. The app starts with the lower value. You can choose a range between 1 and 7. |
Color | #98c23c | Color of the visible area. |
Menu
| Option | Default | Effect |
|---|---|---|
Position | Left | The side of the window on which the menu sits: Left or Right. |
Height | Auto | Auto makes the menu as high as its content. Full stretches it over the full height of the window. |
Effects
Only for 3D maps. Each effect has two settings:
- The switch sets whether the effect is on when the app starts.
- The lock fixes that state. A locked effect does not appear in the tab
Effectsof the app, so the user cannot change it.
Lock an effect that should always be on, such as the atmosphere, or one that your users should not be able to switch on at all.
| Effect | On at start | Locked | Settings and their defaults |
|---|---|---|---|
| Ambient Occlusion | no | no | Power 1, Radius 30 |
| Anti Aliasing | no | no | none |
| Atmosphere | yes | yes | none |
| Depth Of Field | no | no | Focal Depth 200, Focus Range 200, Scale 1 |
| Eyedome Lighting | no | no | Color #000000, Strength 0.2, Window 2 |
| Head Light | no | no | Ambient Color #fffddb, Diffuse Color #ffffff |
| Sun Light | no | no | Ambient Color #828282, Diffuse Color #ffffff, Shadows on, Use current time off, Date, Timezone |
| Starfield | yes | yes | none |
| Fog | no | yes | Fog Color #94C2E7, Light Color #FFE6B3, Density 9, Maximum Altitude 20000, Height Falloff 7.7 |
With the defaults the user sees six effects in the tab Effects. Atmosphere and Starfield are on and hidden, Fog is off and hidden.
What a Map View does not control
- Bookmarks: the tab
Bookmarksis shown to every user who is logged in. Users of a public app do not get it. - Editing: the tab for creating and editing geometries opens by itself when a workflow or a script starts an edit.
- Tooltips and selection: they come from the layer that the user sets active. See Tooltips.