Map Request Using Ratio Scale and Mixed Theme Scale Modes Map Request Using Predefined Theme Binding Parameter and Custom Type

MapViewer Map Request XML API 3-11 map_request basemap=CA_MAP datasource = mvdemo format=PNG_URL themes theme name=support_center jdbc_query spatial_column=geom datasource=tilsmenv label_column=dummy, label_style=V.PIECHART1 SELECT geom, ’dummy’, sales, service, training FROM support_centers jdbc_query theme themes map_request

3.1.10 Map Request Using Ratio Scale and Mixed Theme Scale Modes

Example 3–11 requests a map specifying a center and a ratio scale to define the map area. Two themes are used: a predefined theme named THEME_US_COUNTIES1, which uses the default screen inch scale mode, and a JDBC theme names STATES_TH, which uses the ratio mode. Example 3–11 Map Request Using Ratio Scale and Mixed Theme Scale Modes ?xml version=1.0 standalone=yes? map_request title=States ratio, counties screen inch, center and scale datasource=tilsmenv width=500 height=400 bgcolor=a6caf0 antialiase=true format=PNG_URL center scale=5000000 geoFeature geometricProperty typeName=center Point coordinates-90.0,32.0coordinates Point geometricProperty geoFeature center themes theme name=STATES_TH min_scale=5.0E7 max_scale=1.0E7 scale_mode=ratio jdbc_query label_column=STATE spatial_column=geom label_style=T.STATE NAME render_style=C.COUNTIES jdbc_srid=8265 datasource=tilsmenv asis=falseselect geom,state from states jdbc_query theme theme name=THEME_US_COUNTIES1 min_scale=2.286 themes map_request 3-12 Oracle Fusion Middleware Users Guide for Oracle MapViewer

3.1.11 Map Request Using Predefined Theme Binding Parameter and Custom Type

Example 3–12 requests a map using a predefined theme with a styling rule that selects all counties where a state abbreviation is in the selection list. When the predefined theme is created, the selection list is represented as a binding parameter, as follows: INSERT INTO user_sdo_themes VALUES COUNTIES_BY_STATES, null, COUNTIES, GEOM, styling_rules rule features style=C.COUNTIES state_abrv in select column_value from table:1 features label column=COUNTY style=T.CITY NAME 1 label rule styling_rules; This binding parameter can accept one or more values, for which you can create a custom SQL data type that represents this set of values, as follows: CREATE OR REPLACE TYPE string_array AS TABLE OF VARCHAR264; Then, you can use this custom data type on the binding parameter of the map request, as shown in Example 3–12 . Example 3–12 Map Request Using Predefined Theme Binding Parameter and Custom Type ?xml version=1.0 standalone=yes? map_request title=Binding Parameters and STRING_ARRAY type datasource = mvdemo width=640 height=480 bgcolor=a6cae0 antialiase=false format=PNG_STREAM themes theme name=COUNTIES_BY_STATES binding_parameters parameter value=FL,ME,CA,OH type=STRING_ARRAY binding_parameters theme themes map_request

3.1.12 Map Request Using Advanced Styles and Rendering Rules