Map Request with an Image Theme Map Request for Image of Map Legend Only

3-6 Oracle Fusion Middleware Users Guide for Oracle MapViewer geometricProperty geoFeature geoFeature render_style=varmarkerpf attribute_values=200000.0 geometricProperty Point coordinates-116.64,38.92coordinates Point geometricProperty geoFeature geoFeature render_style=varmarkerpf attribute_values=300000.0 geometricProperty Point coordinates-112.0,35.0coordinates Point geometricProperty geoFeature styles style name=varmarkerpf AdvancedStyle VariableMarkerStyle basemarker=mkcircle startsize=10 increment=5 Buckets RangedBucket label=less than 100k high=100000.0 RangedBucket label=100k - 150k low=100000.0 high=150000.0 RangedBucket label=150k - 250k low=150000.0 high=250000.0 RangedBucket label=250k - 350k low=250000.0 high=350000.0 Buckets VariableMarkerStyle AdvancedStyle style style name=mkcircle svg g class=marker style=stroke:blue;fill:red; circle r=20 g svg style styles map_request

3.1.6 Map Request with an Image Theme

Example 3–6 requests a map in which an image theme is to be plotted underneath all other regular vector data. The image theme is specified in the jdbc_image_query element as part of the theme element in a map request. For an explanation of image themes, see Section 2.3.3 . Example 3–6 Map Request with an Image Theme ?xml version=1.0 encoding=UTF-8 ? map_request datasource=lbs_data title=LBS Image MAP basemap=us_roads format=GIF_STREAM center size=1 geoFeature MapViewer Map Request XML API 3-7 geometricProperty Point coordinates-122.2615, 37.5266coordinates Point geometricProperty geoFeature center themes theme name=anImageTheme jdbc_image_query image_format=ECW image_column=image image_mbr_column=img_extent jdbc_srid=33709 datasource=lbs_data SELECT image, img_extent, image_id FROM my_images jdbc_image_query theme themes map_request MapViewer processes the request in Example 3–6 as follows: 1. MapViewer retrieves the image data by executing the user-supplied query SELECT image, img_extent, image_id FROM my_images in the current map window context. 2. MapViewer checks its internal list of all registered image renderers to see if one supports the ECW format image_format=ECW. Because MapViewer as supplied by Oracle does not support the ECW format, you must implement and register a custom image renderer that supports the format, as explained in Appendix C . 3. MapViewer calls the renderImages method, and image data retrieved from the user-supplied query is passed to the method as one of its parameters. 4. MapViewer retrieves and renders any requested vector data on top of the rendered image.

3.1.7 Map Request for Image of Map Legend Only

Example 3–7 requests a map with just the image of the map legend, but without rendering any spatial data. In this example, the legend explains the symbology used for identifying cities, state boundaries, interstate highways, and county population density. Map legends are explained in Section 3.2.11 . Example 3–7 Map Request for Image of Map Legend Only ?xml version=1.0 standalone=yes? map_request datasource = mvdemo format=PNG_URL legend bgstyle=fill:ffffff;stroke:ff0000 profile=MEDIUM position=SOUTH_ EAST column entry text=Map 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 3-8 Oracle Fusion Middleware Users Guide for Oracle MapViewer entry style=L.PH text=interstate highway entry text=County population: entry style=V.COUNTY_POP_DENSITY tab=1 column legend map_request Generating just the map legend image, as in Example 3–7 , can save processing time if you display the stored map legend image on a Web page separately from the actual displayed maps. This avoids the need to generate a legend each time there is a map request.

3.1.8 Map Request with SRID Different from Data SRID