addPredefinedTheme getMapURL getParam MapViewer JSP Tag Reference Information

MapViewer JSP Tag Library 5-5 The following example creates a new dynamic theme named bigCities, to be executed using the mvdemo data source and specifying the LOCATION column as containing spatial data. Note that the greater-than character in the WHERE clause is valid here. mv:addJDBCTheme name=bigCities datasource=mvdemo spatial_column=location SELECT location, name FROM cities WHERE pop90 450000 mv:addJDBCTheme

5.2.2 addPredefinedTheme

The addPredefinedTheme tag adds a predefined theme to the current map request. It performs the same operation as the theme element, which is described in Section 3.2.20 . The predefined theme is added at the end of the theme list maintained in the associated MapViewer bean. Table 5–3 lists the addPredefinedTheme tag parameters. The following example adds the theme named THEME_DEMO_CITIES to the current Map request: mv:addPredefinedTheme name=THEME_DEMO_CITIES

5.2.3 getMapURL

The getMapURL tag gets the HTTP URL uniform resource locator for the currently available map image, as generated by the MapViewer service. This map image URL is kept in the associated MapViewer bean, and it does not change until after the run tag is used. The getMapURL tag has no parameters. The following example displays the currently available map image, using the getMapURL tag in specifying the source SRC keyword value for the image: IMG SRC=mv:getMapURL ALIGN=top Table 5–3 addPredefinedTheme Tag Parameters Parameter Name Description Required name Name of the predefined theme to be added to the current map request. This theme must exist in the USER_SDO_THEMES view of the data source used by the associated MapViewer bean. Yes datasource Name of the data source from which the theme will be loaded. If you do not specify this parameter, the default data source for the map request is used. No min_scale The value to which the display must be zoomed in for the theme to be displayed, as explained in Section 2.4.1 . If min_ scale and max_scale are not specified, the theme is displayed for all map scales, if possible given the display characteristics. No max_scale The value beyond which the display must be zoomed in for the theme not to be displayed, as explained in Section 2.4.1 . If min_scale and max_scale are not specified, the theme is displayed for all map scales, if possible given the display characteristics. No 5-6 Oracle Fusion Middleware Users Guide for Oracle MapViewer

5.2.4 getParam

The getParam tag gets the value associated with a specified parameter for the current map request. Table 5–4 lists the getParam tag parameter. The following example displays the value of the title parameter for the current map request: P The current map title is: mv:getParam name=title P

5.2.5 identify