3-4 Oracle Fusion Middleware Users Guide for Oracle MapViewer
■
The center will be drawn with a marker of the M.MOTEL style and the label Motel 1 in the T.MOTEL style.
■
A circle with a radius of 300 meters will be drawn around the center.
3.1.4 Map Request with Center, Base Map, Dynamically Defined Theme, and Other Features
Example 3–4 requests a map with a specified center, a predefined theme named
theme_lbs_customers, a dynamically defined theme named sales_by_region, and all base themes in the base map us_base_road, plus two features: a polygon
representing the top sales region, and a point. The requested map will be stored at the MapViewer host and a URL to that GIF image format=GIF_URL will be returned
to the requester.
Example 3–4 Map Request with Center, Base Map, Dynamically Defined Theme, Other
Features
?xml version=1.0 encoding=UTF-8 ? map_request datasource=lbs_data2 title=LBS CUSTOMER MAP 2
width=400 height=300 format=GIF_URL basemap=us_base_road center size=1.5
geoFeature typeName=nil geometricProperty
Point coordinates-122.2615, 37.5266coordinates
Point geometricProperty
geoFeature center
themes theme name=theme_lbs_customers
theme name=sales_by_region jdbc_query spatial_column =region
label_column=manager render_style=V.SALES COLOR
label_style=T.SMALL TEXT jdbc_host=data.my_corp.com
jdbc_sid=orcl jdbc_port=1521
jdbc_user=scott jdbc_password=password
jdbc_mode=thin select region, sales, manager from my_corp_sales_2001
jdbc_query theme
themes geoFeature typeName=nil label=TopSalesRegion
text_style=9988 render_style=2837 geometricProperty
Polygon srsName=SDO:8265 outerBoundaryIs
LinearRing coordinates42.9,71.1 43.2,72.3 39.2,73.0 39.0,
73.1 42.9,71.1coordinates LinearRing
outerBoundaryIs Polygon
geometricProperty
MapViewer Map Request XML API 3-5
geoFeature geoFeature render_style=1397 text_style=9987
geometricProperty Point
coordinates-122.5615, 37.3266coordinates Point
geometricProperty geoFeature
map_request
In Example 3–4
, sales_by_region is a dynamically defined theme. For information about dynamically defining a theme, see
Section 3.2.20 and
Section 3.2.9 .
3.1.5 Map Request for Point Features with Attribute Value and Dynamically Defined Variable Marker Style
Example 3–5 shows a map request to render point features with a dynamically defined
variable marker style. The attribute_values attribute defines the value that will be used to find the appropriate bucket for the range into which the value falls, as
defined in the variable marker style.
Example 3–5 Map Request for Point Features with Attribute Value and Dynamically
Defined Variable Marker Style
?xml version=1.0 standalone=yes? map_request
title=Point Features with Variable Marker Style datasource=mvdemo
srid=0 width=500
height=375 bgcolor=a6caf0
antialiase=true format=PNG_URL
center size=19.2 geoFeature
geometricProperty typeName=center Point
coordinates-116.65,38.92coordinates Point
geometricProperty geoFeature
center geoFeature
render_style=varmarkerpf attribute_values=50000.0
geometricProperty Point
coordinates-112.0,43.0coordinates Point
geometricProperty geoFeature
geoFeature render_style=varmarkerpf
attribute_values=125000.0 geometricProperty
Point coordinates-123.0,40.0coordinates
Point
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