Named Views Tool - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
Language
English
Product name
MapInfo Pro
Title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995549

The Named Views tool saves a map's view, position and zoom settings, so you can return to them as needed. This is useful if there is a neighborhood or other area you need to refer to frequently. The Named Views window is dockable.

You can use other user's list of views by copying the NViews.XML file to the following location:

%APPDATA%\MapInfo\MapInfo\nviews.xml
Note: If you overwrite your Nviews.XML file with that of another user, you will lose your existing views information. To retain your existing views, keep a copy of your Nviews.xml file and restore it at the same location, when required.
Note: If you want to use views created in MapInfo Pro 12.5, copy the Nviews.XML file from %APPDATA%\MapInfo\MapInfo\Professional\1250\nviews.xml to the new location %APPDATA%\MapInfo\MapInfo\nviews.xml

For information about how to add a tool to the Tool Manager, see Working with MapInfo Pro Tools.

Creating a Named View

To create a named view:

  1. Display the map at the exact position and zoom level you want to return to.
  2. Run the Named Views tool to display the Named Views dialog box. See Running a Tool for details.
  3. Click Add and type a description of the current map view. Click Add to save your description.
Note: Views you create with the Named Views tool are global and are saved independently of the workspaces and tables they are associated with. If you delete the list of views, you delete these views.

To return to a named view:

  1. Display the map at the exact position and zoom level you want to return to.
  2. Run the Named Views tool to display the Named Views dialog box.
  3. Click the named view you want to return to in the list and click GoTo to display your requested view.

Description of Named View Options

Add button

Displays the Add Named View dialog box. When the user clicks OK, the application adds a new node to the Treeview control. The position of the new node is based on the currently selected treeview node.

Goto button

Changes the view of the front most window. If the front most window is not a Map window, then the application displays an error message.

You cannot return to the view information and issue the code from MapBasic.

New Folder button

Inserts a new Folder node into the Treeview control and immediately puts the node into label edit mode so you can rename it. The default name of the folder is "New Folder", unless there is already a folder with that name. The position of the new node is based on the currently selected Treeview node.

To expand or collapse a node, double-click its Folder node.

Move button

Displays a dialog box that contains the tree structure without the View nodes. When you click OK, you move the selected node (Folder or View) under the target node. If a node with the same name already exists under the Target node, then an error message displays and the move does not occur.

Rename button

Puts the currently selected node into label edit mode.

Press F2 while the Treeview has focus to perform the same operation as selecting the node and clicking Rename.

Delete button

Displays a confirmation dialog box before deleting the selected node. If the selected node is a Folder node, a confirmation dialog box displays warning that all contents of the folder will be deleted.

If you click Delete while the Treeview has focus, the application behaves the same way as selecting the node and clicking Delete.

Note: Double clicking a View node should be the same as selecting that node and clicking the Goto button.

You can drag and drop Folder and View nodes using the mouse.