Defining the Built-in Map Tile Layers on the Client Side Defining the Built-In Map Tile Layers on the Server Side
8.6 Built-in Map Tile Layers Google Maps and Bing Maps
Applications can display Google Maps tiles or Microsoft Bing Maps tiles as a built-in map tile layer. Internally, the Oracle Maps client uses the official Google Maps or Bing Maps API to display the map that is directly served by the Google Maps or Microsoft Bing Maps server. ■ To use the Google Maps tiles, you must obtain a Google Maps API key for your application. Your usage of the Google Maps tiles must meet the terms of service specified by Google see http:code.google.comapismapsterms.html . ■ To use the Bing Maps tiles, you must get a Bing Maps account. Your usage must meet the licensing requirement specified by Microsoft see http:www.microsoft.commapsproductlicensing.aspx . If you need to overlay your own spatial data on top of the Google Maps or Microsoft Bing Maps tile layer, see also Section 8.7, Transforming Data to a Spherical Mercator Coordinate System . The following sections describe the two options for using built-in map tile layers: ■ Section 8.6.1, Defining the Built-in Map Tile Layers on the Client Side ■ Section 8.6.2, Defining the Built-In Map Tile Layers on the Server Side8.6.1 Defining the Built-in Map Tile Layers on the Client Side
To define a built-in map tile layer on the client side, you need to add a script tag to your application web page to load the Google or Bing Maps JavaScript library, create a MVGoogleTileLayer or MVBingTileLayer object, and add it to the MVMapView object. For example, to use Google tiles, add the following script tag to your application Web page: script src=http:maps.google.commaps?file=apiv=2key=[your_api_key] type=textjavascriptscript Also, add the Google tile layer to your map: mapview = new MVMapViewdocument.getElementByIdmap, baseURL; tileLayer = new MVGoogleTileLayer ; mapview.addMapTileLayertileLayer; In your application, you can invoke the method MVGoogleTileLayer.setMapType or MVBingTileLayer.setMapType to set the map type to be one of the types supported by the map providers, such as road, satellite, or hybrid. For usage examples and more information, see the JavaScript API documentation for MVGoogleTileLayer and MVBingTileLayer, and the tutorial demos Built-in Google Maps Tile Layer and Built-in Bing Maps Tile Layer.8.6.2 Defining the Built-In Map Tile Layers on the Server Side
You can define a built=-in map tile layer on the server side and use it as a regular MapViewer tile layer on the client side. To define a built-in map tile layer on the server side, follow these steps: 1. Log into the MapViewer Administration Page explained in Section 1.5.1 .2. Select the Manage Map Tile Layers tab and click Create.
Oracle Maps 8-293. When you are asked to select the type of map source, choose Google Maps or
Bing Maps and click Continue. 4. Select the data source where the tile layer is to be defined. 5. Set the license key that you have obtained from the map provider.6. Click Submit to create the tile layer.
After you have created the built-in map tile layer on the server side, you can use it like any other tile layer served by MapViewer. You do not need to add any script tag to load the external JavaScript library. The following example shows a Bing Maps tile layer defined on the server side: mapview = new MVMapViewdocument.getElementByIdmap, baseURL; The Bing tile layer is defined in data source “mvdemo”. tileLayer = new MVMapTileLayermvdemo.BING_MAP ; mapview.addMapTileLayertileLayer; In your application, you can invoke the method MVMapTileLayer.setMapType to set the map type to be one of the types supported by the map providers, such as road, satellite, or hybrid.8.7 Transforming Data to a Spherical Mercator Coordinate System
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