The attributes to the element must specify columns in the same table on which the theme definition is based. To do this, include a element in the styling rules of the theme. You can associate each styled feature (geometry) of a theme with attributes, which can be dynamically displayed when the user's mouse cursor moves over the feature. (These attributes are described in Section 3.2.2.) Replace with the value for %MAPVIEWER_HOME% /web/flashmap.swf, where %MAPVIEWER_HOME% is the name of the home directory where MapViewer is deployed.Įxample C-1 shows an excerpt from an HTML file in which the MapViewer Flash mapping client is included in a table.Įxample C-1 Including the Flash Mapping Client in an HTML File Ĭ.3 Creating a Theme with Clickable Styled Features Replace the strings in the square bracket pairs with the actual attribute values, to set the map size, data source, base map, and map center. To embed the Flash mapping client in a Web page, insert the following lines in the source HTML file. You can group features into themes, and you can allow users to select which themes are to be displayed.Ĭ.2 Embedding the Flash Mapping Client in a Web Page To display maps without clickable features, you can use your existing base map, theme, and style definitions, although you may need to modify styles that are used in relevant themes to use styles based on SVG markers or Flash markers, as explained in Section C.4. To associate styled features and attributes, use the element in the styling rules definition of a theme, as explained in Section C.3. The associated information can be displayed when a user clicks on or moves the mouse pointer over the styled feature. To provide clickable map features, you can associate any styled feature (geometry) with a hidden information string, which can specify nonspatial columns in the geometry table. Mapping operations such as zooming in, zooming out, and panning can be handled locally without sending new requests to the MapViewer server, if the necessary map data is already loaded on the client system. The Flash mapping client has full control over the map data, which makes rich client-side mapping capabilities possible. All vector graphic components are drawn locally by the client. Maps are represented by vectors inside the Flash mapping client. You cannot use image markers with the Flash mapping client, except for SVG and Flash markers, as explained in Section C.4. Most MapViewer style types are supported by the Flash mapping client. The Flash mapping client works with MapViewer by sending an XML request and receiving vector map data (represented by an XML document) from MapViewer. This SWF file can be referred to in Web pages, so that users can interact with maps in a Web browser. To use this client, you must copy the flashmap.swf file to the following directory: It is installed in the %MAPVIEWER_HOME% /demo directory, where %MAPVIEWER_HOME% is the top directory of the unpacked MapViewer files (such as /oracle/lbs/MapViewer). The client SWF file is named flashmap.swf. The Flash mapping client can send map requests to MapViewer, load vector map data from MapViewer, and display map data. Its capabilities are limited and its performance has not been tuned. This Flash mapping client is shipped only as a demonstration application. MapViewer provides limited Flash support through a mapping client that is a Macromedia Flash SWF file. This appendix explains how to use MapViewer to display maps within Macromedia Flash applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |