View - Panes - Views

The Views pane saves specific views into a window at a given location and zoom level under a name. Note that when a component is projected, saving a view at a given zoom level is really saving a view at a specified scale, the scale at which the view is displayed.

 

images\dlg_views_pane.gif

 

We can pan and zoom into a map of Switzerland, for example, so that Geneva is centered in the map and then save that view under the name Geneva. At any time we can jump directly to that view by clicking on the Geneva entry in the Views pane and choosing Apply View.

 

images\btn_apply_view.gif

Apply View - Go to this view.

images\btn_new_thing.gif

Add New View - Add the current view to the views pane.

images\btn_delete_thing.gif

Delete - Delete this view from the views pane.

 

To Save a View

 

1. Pan and zoom the window to the desired view.

2. Open the views pane if it is not open (use the ALT - SHIFT - V keyboard shortcut if desired).

3. Press the Add New View button to add the view.

4. Click into the view entry to rename it as desired.

 

To Go To a View

 

1. Open the views pane if it is not open.

2. Click on the view desired to highlight it.

3. Press the Apply View button to go to that view.

 

If a component for which views have been saved is re-projected, Manifold will attempt to re-compute the extents and location of any defined views into the new projection. However, this will yield reasonably similar views only if the new projection is not too dissimilar to the original projection in which views were defined.

 

The Startup View

 

By default, the name Startup when given to a view will cause that view to be used whenever the component is opened. In the Tools - Options - User Interface dialog the Save last used view in component, if checked, causes the view called Startup to be used. This option is checked by default. If no view called Startup has been created for that component, then if this option is checked the component will be panned and zoomed to whatever was the last view when the component was last opened.

 

If the option is not checked, then on opening the component will be zoomed to fit the display window.

 

For example, if we would like a map to be panned and zoomed to a particular view whenever it is opened, we would open the map, pan and zoom it to the desired view, in the views pane press the Add New View button to add a view and then finally we would click into the new view entry and name that view Startup. Thereafter, whenever the map is opened it will automatically open to that view so long as the Save last used view in component option is checked in the Tools – Option – User Interface dialog.

 

The Startup view also works when programming IMS: Creating an instance of the MapServer object with an empty state string (for example, for the first time in a session for a particular user) automatically goes to the view named Startup (case insensitive) if such a view exists.

 

Tech Tip

 

The views pane works with print layouts windows as well. This is a handy way of navigating complex layouts to zoom in and zoom out onto different features that are frequently used: simply save the desired views in the views pane for quick navigation between views.

 

The views pane also works with Terrains to save a view of 3D terrain from a given position.