Is there a way to build a theme with JavaScript SQL or an XML API?

Hello

I need to display some of the themes and a Tiler.

I created a HTML document that contains code JavaScript to build a Tiler, and it works. It is a simplified version:

* < html > *.
* < head > *.
* < META http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "> *"
* < Oracle TITLE cards application > < /title > *.

* < script language = "Javascript" src = "http://localhost:8888/mapviewer/fsmc/jslib/oraclemaps.js" > < / script > *.

* < script language = javascript > *.
MapView var;
a var scale;
var ovcontainer;

function showMap()
*{*
baseURL var = "http://localhost: 8888/mapviewer.
var mapCenterLon = 0.0;
var mapCenterLat = 0.0;
var mapZoom = 1;
Browse var = MVSdoGeometry.createPoint (mapCenterLon, mapCenterLat, 3785);
MapView = new MVMapView (document.getElementById ("map"), baseURL);
mapview.addMapTileLayer (new MVMapTileLayer ("Prue.GOOGLE_MAP"));
mapview.setCenter (mpoint);
mapview.setZoomLevel (mapZoom);

scale = new MVMapDecoration (new MVScaleBar (), 0, 1, null, null, 4, -45);
mapview.addMapDecoration (scaleBar);

MapView.Display ();
*}*

* < /script > *.
* < / head > *.
* < body onload javascript =:showMap(); > *.
* < / body > *.
* < / html > *.

I need to also represent themes via SQL. For example in the API Java-Bean, is there a function to do this:

mapViewer.addJDBCTheme ("Test", "Geo_Theme", "SELECT GEOM FROM GEOMETRIES", "GEOM", "8307", "colors", NULL, NULL, false)

But this Geo_Theme is not persistent. So, is there a way to do this with MapViewer in JavaScript or XML? I have to build in an HTML document. Or can I create this theme in Java and then continuing to use then in the HTML document like themes created in Mapbuilder?

I need to build a theme with JavaScript or XML, or in the other case SQL, build with addJDBCTheme in Java-Bean and then use it in the HTML document (you must be persistent as MapBuilder themes).

Thank you.

Published by: 863217 on June 20, 2011 05:32

You can create a JDBC ThemeBasedFOI (i.e. a sql theme) in Javascript. It's just a MVThemeBasedFOI where the theme is defined using the xml API syntax to set a theme of jdbc. The tutorial example "JDBC theme based FAITH" gives more details. The key element in this example is:

function addBuffertheme (themeTable, RADIUS)
{
baseQuery = "select sdo_geom.sdo_buffer (A.location," + RADIUS + radius +.
«(, 0,005, ' unité = arc_tolerance mile = 0,005') location «+»»
"of" + themeTable + "A"; "
var theme = '' +.
"
' render_style = "' + bufferStyle + '" datasource = "mvdemo" > ' + baseQuery +.
"
" ;
buffertheme = new MVThemeBasedFOI ('buffertheme', theme);
buffertheme.setBringToTopOnMouseOver (true);
buffertheme.setVisible (false);
mapview.addThemeBasedFOI (buffertheme);
Place the theme of the buffer under the theme of customer
mapview.setThemeIndex (buffertheme, 1);
mapview.setThemeIndex (customertheme, 2);

}

Tags: Fusion Middleware

Similar Questions

Maybe you are looking for

  • Bootcamp after upgrade went Win10

    Running Win 7 on El Capitan on my MBP 2011 end 17 "for months, then awoke to find that Windows has automatically upgraded to Win10. Everything was very good, but had lost the Bluetooth device. I rebooted to Mac to try sorting this side here and then

  • Configurable custom control of reference for NI VeriStand

    I'm working on an application of VeriStand where I'm modeling more than 100 pieces of similar material, each demanding a set of controls and indicators on the VeriStand workspace. Because I have a few hundreds of orders and total indicators to config

  • HP impossible to scan - Scan question of privilege? -other working tools

    O/s - Yosemite OS X 10.10.1 Subsequently by (re-setup of HP scanning documents): http://h30434.www3.HP.com/T5/scanning-faxing-and-copying/where-can-I-download-HP-scan-for-Mac/m-p/48... Question: Having confirmed that the printer/scanner is available

  • I got a message "no audio device is installed", not its how I can solve this problem?

    I got a message "no audio device is installed", not its how I can solve this problem?ToshibaWindows VistaNo 'audio, video controller, game' on Device Manager

  • Cannot install HP D110a on Dell laptop

    Windows 8 on Dell Inspiron 15. Cannot install my printer.  The Wizzard install will not work.  My HP Photosmart e-all in one series D110 disc will not work because this is for XP, Vista, 7 Version 14.0.1 this has worked on my Acer laptop, but who die