Creating One or More Map Tile Layers Defining FOI Metadata

8-26 Oracle Fusion Middleware Users Guide for Oracle MapViewer

8.5.1 Creating One or More Map Tile Layers

For each map tile layer displayed on the client side that is served by MapViewer, you must create the corresponding map tile layer on the MapViewer server side. For example, for the sample application described in Section 8.1.2 , you must create a map tile layer on the server side to display oceans, county boundaries, cities and highways as a map tile layer on the client. However, if the tile layer is a custom or built-in eternal tile layer, you do not need to define the tile layer on the server side. Before you can create a map tile layer, you must ensure that the map source from which the map tiles images are to be rendered is ready. If the map tile images are rendered based on map data stored in the database, you must create a MapViewer base map that consists of a set of predefined themes. You can create the base map using the Map Builder tool, which is described in Chapter 9 . If the map tiles images are rendered by an external map provider, you must write a map source adapter that can fetch map images from the external server using the tile image definition specified by the map tile server. When the map source is ready, you can create the map tile layer using the MapViewer administration page, as described in Section 1.5.3 . When you create the map tile layer, you must provide proper coordinate system definition, map source definition internal or external, and zoom level definition number of zoom levels and map scales. After you create the map tile layer, you can test it by using a JavaServer Page JSP demo application shipped with MapViewer. The JSP demo application can be accessed at http:host:portmapviewerfsmcomaps.jsp. Based on your input, this application can display maps served by any map tile layer defined with the MapViewer instance.

8.5.2 Defining FOI Metadata

If your application needs to display dynamic features based on database query results as theme-based FOI layers, you must create a predefined MapViewer theme for each theme-based FOI layer. If your application needs to display individual dynamic features as user-defined FOIs, you must define the rendering style or styles used by the FOI server to render the FOI images. You can use the Map Builder tool described in Chapter 9 to create predefined themes and rendering styles.

8.5.3 Creating the Client Application