themes Element theme_modifiers Element

3-54 Oracle Fusion Middleware Users Guide for Oracle MapViewer which specify the coordinates in pixels of the clicked point on the SVG map. For information about using JavaScript functions with SVG maps, see Appendix B . onmousemove is an optional attribute that specifies the name of the JavaScript function to be called when a user moves the mouse on top of any feature of the theme on an SVG map. The JavaScript function must be defined in the HTML document that has the SVG map embedded. This function must accept only four parameters: the theme name, the key of the feature, and x and y, which specify the coordinates in pixels of the point for the move on the SVG map. For information about using JavaScript functions with SVG maps, see Appendix B . onmouseover is an optional attribute that specifies the name of the JavaScript function to be called when a user moves the mouse into a feature of the theme on an SVG map. Unlike the onmousemove function, which is called whenever the mouse moves inside the theme, the onmouseover function is called only once when the mouse moves from outside a feature of the theme to inside a feature of the theme. The JavaScript function must be defined in the HTML document that has the SVG map embedded. This function must accept only four parameters: the theme name, the key of the feature, and x and y, which specify the coordinates in pixels of the point at which the mouse moves inside a feature on the SVG map. For information about using JavaScript functions with SVG maps, see Appendix B . onmouseout is an optional attribute that specifies the name of the JavaScript function to be called when a user moves the mouse out of a feature of the theme on an SVG map. The JavaScript function must be defined in the HTML document that has the SVG map embedded. This function must accept only four parameters: the theme name, the key of the feature, and x and y, which specify the coordinates in pixels of the point at which the mouse moves out of a feature on the SVG map. For information about using JavaScript functions with SVG maps, see Appendix B . workspace_name, workspace_savepoint, workspace_date, and workspace_ date_format are optional attributes related to support for Workspace Manager in Mapviewer, which is explained in Section 2.8 . fetch_size is an optional attribute that specifies how many rows will be prefetched into memory. The default value is 100. timeout is an optional attribute that specifies the number of milliseconds to wait for the connection to the WMS or WFS server.

3.2.21 themes Element

The themes element has the following definition: ELEMENT themes theme+ The themes element specifies one or more theme elements described in Section 3.2.20 . If you have specified a base map basemap attribute of the map_ request element, any themes that you specify in a themes element are plotted after those defined in the base map. If no base map is specified, only the specified themes are rendered. Inside this themes element there must be one or more theme child elements, which are rendered in the order in which they appear.

3.2.22 theme_modifiers Element

The theme_modifiers element has the following definition: ELEMENT theme_modifiers theme_decorations? MapViewer Map Request XML API 3-55 The theme modifiers enable you to override the theme definition on a base map, without having to edit and change the base map definition. The theme_ decorations element has the same attributes as the theme element described in Section 3.2.20 . The following example overrides the labels_always_on attribute for the theme_ us_airport theme on the base map FORCED_LABELING. ?xml version=1.0 standalone=yes? map_request title=Override labeling on map definition basemap=FORCED_LABELING datasource=tilsmenv width=500 height=375 bgcolor=a6caf0 antialiase=true format=PNG_URL center size=15.0 geoFeature geometricProperty typeName=center Point coordinates-122.4,37.8coordinates Point geometricProperty geoFeature center theme_modifiers theme_decorations name=theme_us_airport label_always_on=false theme_modifiers map_request

3.3 Information Request DTD

In addition to issuing map requests see Section 3.2 and administrative requests see Chapter 7 , you can issue information requests to MapViewer. An information request is an XML request string that you can use to execute SQL queries and obtain the result as an array of strings or an XML document. The SQL query must be a SELECT statement and must select only primitive SQL types for example, not LOB types or user-defined object types. The following is the DTD for a MapViewer information request. ELEMENT info_request PCDATA ATTLIST info_request datasource CDATA REQUIRED format strict | non-strict strict datasource is a required attribute that specifies the data source for which to get the information. format is an optional attribute. If it is strict the default, all rows are formatted and returned in an XML document. If format is set to non-strict, all rows plus a column heading list are returned in a comma-delimited text string. Example 3–24 shows an information request to select the city, 1990 population, and state abbreviation from the CITIES table, using the connection information in the