JSP Example Several Tags for MapViewer
5.3 JSP Example Several Tags for MapViewer
This section presents an example of using JSP code to perform several MapViewer operations. Example 5–1 initializes a MapViewer bean, sets up map request parameters, issues a request, and displays the resulting map image. It also obtains the associated MapViewer bean and places it in a scripting variable myHandle, which is then accessed directly in the statement: Displaying map: B =myHandle.getMapTitle B basemap Base map whose predefined themes are to be rendered by MapViewer. The definition of a base map is stored in the user’s USER_SDO_MAPS view, as described in Section 2.9.1 . Use this parameter if you will always need a background map on which to plot your own themes and geometry features. No bgcolor The background color in the resulting map image. The default is water-blue RGB value A6CAF0. It must be specified as a hexadecimal value. No bgimage The background image GIF or JPEG format only in the resulting map image. The image is retrieved at run time when a map request is being processed, and it is rendered before any other map features, except that any bgcolor value is rendered before the background image. No centerX X ordinate of the map center in the data coordinate space No centerY Y ordinate of the map center in the data coordinate space No height The height in device units of the resulting map image No imagescaling When its value is TRUE the default, MapViewer attempts to scale the images to fit the current querying window and the generated map image size. When its value is FALSE, and if an image theme is included directly or indirectly such as through a base map, the images from the image theme are displayed in their original resolution. This parameter has no effect when no image theme is involved in a map request. No size Vertical span of the map in the data coordinate space No title The map title to be displayed on the top of the resulting map image No width The width in device units of the resulting map image No Table 5–10 Cont. setParam Tag Parameters Parameter Name Description Required 5-12 Oracle Fusion Middleware Users Guide for Oracle MapViewer Example 5–1 MapViewer Operations Using JSP Tags page contentType=texthtml page session=true page import=oracle.lbs.mapclient.MapViewer taglib uri=http:xmlns.oracle.comspatialmvtaglib prefix=mv HTML BODY Initializing client MapViewer bean. Save the bean in the session using key mvHandle....P mv:init url=http:my_corp.com:8888mapvieweromserver datasource=mvdemo id=mvHandle Setting MapViewer parameters...P mv:setParam title=Hello World bgcolor=ffffff width=500 height=375 antialiasing=true Adding themes from a base map...P mv:importBaseMap name=density_map Setting initial map center and size...P mv:setParam centerX=-122.0 centerY=37.8 size=1.5 Issuing a map request... P mv:run Place the MapViewer bean in a Java variable. MapViewer myHandle = MapViewer session.getAttributemvHandle; Displaying map: B =myHandle.getMapTitle B IMG SRC=mv:getMapURL ALIGN=top BODY HTML 6 MapViewer PLSQL API 6-1 6 MapViewer PLSQL API This chapter describes the PLSQL application programming interface API to MapViewer. This API consists of the PLSQL package SDO_MVCLIENT, which is intended for Oracle Database users who want to access MapViewer services from inside an Oracle database. This package exposes most capabilities of MapViewer, and it handles all communication with the actual MapViewer server running on a middle tier on behalf of a user making map requests.6.1 Installing the SDO_MVCLIENT Package
Parts
» Oracle Fusion Middleware Online Documentation Library
» Overview of MapViewer Oracle Fusion Middleware Online Documentation Library
» Unpacking the MapViewer EAR Archive Using the MapViewer Administration Page
» Deploying MapViewer in an Oracle Fusion Middleware 10gR3 Environment
» Verifying That the Deployment Was Successful
» Running SQL Scripts Creating MapViewer Array Types, if Necessary
» Specifying Logging Information Configuring MapViewer
» Specifying Map File Storage and Life Cycle Information
» Restricting Administrative Non-Map Requests
» Specifying a Web Proxy Specifying Global Map Configuration Options
» Customizing the Spatial Data Cache Specifying the Security Configuration
» Customizing SRS Mapping Customizing WMS GetCapabilities Responses
» Configuring the Map Tile Server for Oracle Maps Defining Permanent Map Data Sources
» Logging in to the MapViewer Administration Page Performing MapViewer Administrative Tasks
» Creating a Container Oracle RAC Data Source Creating a MapViewer Data Source
» Deploying MapViewer on a Multiprocess OC4J Instance Deploying MapViewer on a Middle-Tier Cluster
» How Secure Map Rendering Works
» Getting the User Name from a Cookie Authenticating Users: Options and Demo
» Getting Started with MapViewer Prerequisite Software for MapViewer MapViewer Demos and Tutorials
» Scaling the Size of a Style Scalable Styles
» Specifying a Label Style for a Bucket
» Controlling Text Style Orientation
» Making a Text Style Sticky Getting a Sample Image of Any Style
» Styling Rules in Predefined Spatial Geometry Themes
» How MapViewer Formulates a SQL Query for a Styling Rule
» Styling Rules with Binding Parameters Applying Multiple Rendering Styles in a Single Styling Rule
» Caching of Predefined Themes
» Prepare the translations. Feature Labels and Internationalization
» Defining a Point JDBC Theme Based on Two Columns
» Storing Complex JDBC Themes in the Database
» Creating Predefined Image Themes
» Using Bitmap Masks with GeoRaster Themes Reprojection of GeoRaster Themes
» Creating Predefined Network Themes
» Using MapViewer for Network Analysis
» Custom Geometry Themes Themes
» Thematic Mapping Using External Attribute Data
» Attributes Affecting Theme Appearance
» Cross-Schema Map Requests Oracle Fusion Middleware Online Documentation Library
» Workspace Manager Support in MapViewer
» Map Request with Center, Base Map, Dynamically Defined Theme, and Other Features
» Map Request with an Image Theme Map Request for Image of Map Legend Only
» Map Request with SRID Different from Data SRID Map Request Using a Pie Chart Theme
» Map Request Using Advanced Styles and Rendering Rules
» Map Request Using Stacked Styles WFS Map Requests
» Java Program Using MapViewer
» map_request Attributes map_request Element
» bounding_themes Element Map Request DTD
» geoFeature Element Map Request DTD
» jdbc_georaster_query Element jdbc_image_query Element
» jdbc_network_query Element jdbc_query Element
» jdbc_topology_query Element legend Element
» map_tile_theme Element north_arrow Element
» operation Element operations Element
» parameter Element scale_bar Element
» style Element styles Element theme Element
» themes Element theme_modifiers Element
» Information Request DTD Map Response DTD
» MapViewer Exception DTD Geometry DTD OGC
» Usage Model for the MapViewer JavaBean-Based API
» Creating the MapViewer Bean Setting Up Parameters of the Current Map Request
» Adding Themes or Features to the Current Map Request
» Adding Dynamically Defined Styles to a Map Request
» Manipulating Themes in the Current Map Request
» Sending a Request to the MapViewer Service
» Using Optimal Methods for Thick Clients
» Preparing to Use the MapViewer JavaBean-Based API Using MapViewer JSP Tags
» addJDBCTheme MapViewer JSP Tag Reference Information
» addPredefinedTheme getMapURL getParam MapViewer JSP Tag Reference Information
» identify MapViewer JSP Tag Reference Information
» importBaseMap init makeLegend MapViewer JSP Tag Reference Information
» run setParam MapViewer JSP Tag Reference Information
» JSP Example Several Tags for MapViewer
» Granting Network Access Creating a MapViewer Client Handle
» Adding a Data Source Administrative
» Removing a Data Source Administrative Redefining a Data Source
» Listing All Data Sources Administrative or General-Purpose
» Installing the SDO_MVCLIENT Package Listing All Maps General-Purpose
» Listing Themes General-Purpose Oracle Fusion Middleware Online Documentation Library
» Listing Styles General-Purpose Listing Styles Used by a Predefined Theme General-Purpose
» Architecture for Oracle Maps Applications Simple Example Using Oracle Maps
» Map Tile Layers How Map Content Is Organized
» Theme-Based FOI Layers User-Defined FOI Layers
» Map Tile Layers and Map Tile Sources Storage of Map Image Tiles Coordinate System for Map Tiles
» Tile Mesh Codes Tiling Rules
» Global Map Tile Server Configuration Map Tile Layer Configuration
» Predefined Theme-Based FOI Layers
» Templated Predefined Themes Dynamic JDBC Query Theme-Based FOI Layers
» Creating One or More Map Tile Layers Defining FOI Metadata
» Creating the Client Application
Show more