Bookmark widget tags

This page describes an older version, please read about the latest version at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/

Configuration file for the Bookmark widget

The general structure of the Bookmark widget configuration file is shown by the conceptual graphic below.

Conceptual overview of configuration options for Bookmark widget

The file is defined by a <configuration> tag that identifies it as a configuration file for the Viewer. It supports editing the bookmark list in the widget and also enables the widget dialog labels to be changed. It has the following child tags:

<bookmarks>
Container of spatial bookmarks for the Viewer application. It has one child tag:
<bookmark>
Each bookmark will have its own <bookmark> tag. The minimum x,y and maximum x,y coordinates that define the bookmark spatial extent must be in the same spatial reference as the map. If using the Viewer default configuration, these values can be obtained using the Extent Helper application. It has the following attribute:
  • name - Name of the bookmark.

Labels

In addition, the configuration file also supports changing the labels used in the widget dialog (this is not shown in the conceptual graphic).

<labels>
Container for labels that can be modified in this widget. It has several child tags:
<bookmarkslabel>
Tooltip for the first titlebar button (default for English is Bookmarks).
<addbookmarkslabel>
Tooltip for the second titlebar button (default for English is Add Bookmark).
<addlabel>
Label for the add bookmark input window (default for English is Add current extent as a bookmark named).
<submitlabel>
Label for the custom bookmark creation button (default for English is Add Bookmark).
<errorlabel>
Error message reported when creating a custom bookmark fails (default for English is Please enter a name for the bookmark).

Example configuration file:

<configuration>
        <bookmarks>
            ...
            <bookmark> name="Victoria, BC, Canada">-13740900 6174200 -13722700 6181400 </bookmark>
            <bookmark> name="Vancouver, BC, Canada">-13734100 6307700 -13661500 6336500 </bookmark>
            ...
        </bookmarks>
</configuration>

Test drive the Bookmark widget.

2/15/2012