importBaseMap init makeLegend MapViewer JSP Tag Reference Information

5-8 Oracle Fusion Middleware Users Guide for Oracle MapViewer

5.2.6 importBaseMap

The importBaseMap tag adds the predefined themes that are in the specified base map to the current map request. This has the same effect as using the setParam tag with the basemap attribute. Table 5–6 lists the importBaseMap tag parameter. The following example adds the predefined themes in the base map named demo_map at the end of the theme list for the current map request: mv:importBaseMap name=demo_map

5.2.7 init

The init tag creates the MapViewer bean and places it in the current session. This bean is then shared by all other MapViewer JSP tags in the same session. The init tag must come before any other MapViewer JSP tags. Table 5–7 lists the init tag parameters. The following example creates a data source named mvdemo with an id value of mvHandle: mv:init url=http:mycompany.com:8888mapvieweromserver datasource=mvdemo id=mvHandle

5.2.8 makeLegend

The makeLegend tag accepts a user-supplied XML legend specification and creates a standalone map legend image. The legend image is generated by the MapViewer Table 5–6 importBaseMap Tag Parameter Parameter Name Description Required name Name of the base map whose predefined themes are to be added at the end of the theme list for the current map request. This base map must exist in the USER_SDO_MAPS view of the data source used by the associated MapViewer bean. Yes Table 5–7 init Tag Parameters Parameter Name Description Required url The uniform resource locator URL of the MapViewer service. It must be in the form http:host:portmapvieweromserver, where host and port identify the system name and port, respectively, on which Oracle Fusion Middleware or OC4J listens. Yes datasource Name of the MapViewer data source to be used when requesting maps and retrieving mapping data. If you have not already created the data source, you must do so before using the init tag. For information about defining a data source, see Section 1.5.2.14 . Yes id Name that can be used to refer to the MapViewer bean created by this tag. This attribute must have a literal value; it cannot take a JSP expression value. Yes MapViewer JSP Tag Library 5-9 service, and a URL for that image is returned to the associated MapViewer bean. This tag exposes the URL as a scripting variable. The body of the tag must contain a legend element. See Section 3.2.11 for detailed information about the legend element and its attributes. Table 5–8 lists the makeLegend tag parameters. The following example creates a single-column legend with the id of myLegend, and it displays the legend image. mv:makeLegend id=myLegend legend bgstyle=fill:ffffff;stroke:ff0000 profile=MEDIUM column entry text=Legend: is_title=true entry style=M.STAR text=center point entry style=M.CITY HALL 3 text=cities entry is_separator=true entry style=C.ROSY BROWN STROKE text=state boundary entry style=L.PH text=interstate highway entry text=County population density: entry style=V.COUNTY_POP_DENSITY tab=1 column legend mv:makeLegend P Here is the map legend: IMG SRC==myLegend P

5.2.9 run