Predefined theme

Hi MapViewer users,
Is there a way to set query parameters using the MapViewer PL/SQL API ? Like in Oracle Maps API (Javascript)...
Thanks
Karl

Not in the PL/SQL API. Paramterized pre-defined themes are relatively new while the PL/SQL API hasnt been updated for a while.
If your map isnt too complex, you might consider manually construct an XML map request and set the parameter values in it. You can check what kind of XML map request your current PL/SQL procedure is sending to the MapViewer server by setting the server's logging level to FINEST and check the server log file which should contain the incoming XML map request string. Then modify this XML string in your PL/SQL code accordingly.
-LJ

Similar Messages

  • Refreshing predefined theme based FOI in ADF 11g

    I am working on Jdeveloper 11g using ADF on a mapviewer application (i.e. geographical maps). I managed to display the base map and predefined theme FOI. I am now trying to just refresh the theme based FOI (predefinedTheme1) on user clicking the 'Refresh Now' command button, How do I do it?. I am attaching the JSPX file with the code.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <script type="text/javascript">
    <![CDATA[
    var mapview;
    baseURL = "http://"+document.location.host+"/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    alert(baseURL);
    function refreshFoi()
    var themebasedfoi1 = mapview.getThemeBasedFOI('themebasedfoi1');
    var themebasedfoi2 = mapview.getThemeBasedFOI('themebasedfoi2');
    var themebasedfoi3 = mapview.getThemeBasedFOI('themebasedfoi3');
    var themebasedfoi4 = mapview.getThemeBasedFOI('themebasedfoi4');
    themebasedfoi1.refresh();
    themebasedfoi2.refresh();
    themebasedfoi3.refresh();
    themebasedfoi4.refresh();
    function autoRefresh()
    if ((document.getElementById('foiVisible').checked) && (document.getElementById('refreshAuto').checked))
    refreshFoi();
    ]]>
    </script>
    <af:messages/>
    <af:form>
    <af:panelWindow closeIconVisible="false"
    title="Oracle Maps in JDeveloper 11g" id="pw1">
    <dvt:mapToolbar mapId="map"/>
    <dvt:map id="map" startingX="-100.04" mapServerConfigId="mapConfig1"
    baseMapName="MVDEMO.DEMO_MAP" mapZoom="0"
    startingY="40" unit="METERS"
    inlineStyle="width:100%; height:600px;"
    partialTriggers="::cb1">
    <dvt:predefinedTheme id="predefinedTheme1"
    themeName="MVDEMO.CUSTOMERS"/>
    </dvt:map>
    </af:panelWindow>
    <af:selectBooleanCheckbox
    label="Show Locations" id="foiVisible"/>
    <af:selectBooleanCheckbox
    label="Auto Refresh" id="refreshAuto"/>
    <af:commandButton text="Refresh Now" id="cb1" action="refreshFoi()"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks

    I am attaching the jspx file and the backing bean. I want to know how do I now refresh the predefinedtheme1.
    JSPX file
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces" >
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="d1" binding="#{backingBeanScope.backing_AVMap.d1}">
          <af:form id="f1" binding="#{backingBeanScope.backing_AVMap.f1}">
            <af:panelStretchLayout binding="#{backingBeanScope.backing_AVMap.psl1}"
                                   id="psl1" bottomHeight="55px">
              <f:facet name="bottom">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     binding="#{backingBeanScope.backing_AVMap.pgl1}"
                                     id="pgl1">
                  <af:panelGroupLayout binding="#{backingBeanScope.backing_AVMap.pgl2}"
                                       id="pgl2">
                    <af:commandButton text="Refresh Now"
                                      binding="#{backingBeanScope.backing_AVMap.cb1}"
                                      id="cb1"
                                      action="#{backingBeanScope.backing_AVMap.refresh}"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="center">
                <af:group binding="#{backingBeanScope.backing_AVMap.g1}" id="g1">
                  <dvt:mapToolbar mapId="map"/>
                  <dvt:map startingY="40.0" startingX="-100.04" mapZoom="0"
                           mapServerConfigId="mapConfig1"
                           baseMapName="MVDEMO.DEMO_MAP"
                           inlineStyle="width:97%; height:681px;"
                           binding="#{backingBeanScope.backing_AVMap.m1}" id="map">
                    <f:facet name="rtPopup"/>
                    <f:facet name="popup"/>
                    <dvt:predefinedTheme id="*predefinedTheme1*"
                                         themeName="CUSTOMERS"/>
                  </dvt:map>
                </af:group>
              </f:facet>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_AVMap-->
    </jsp:root>Backing bean
    package backing;
    import oracle.adf.view.faces.bi.component.geoMap.ThemeFOI;
    import oracle.adf.view.faces.bi.component.geoMap.UIGeoMap;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
    import oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import org.apache.myfaces.trinidad.component.UIXGroup;
    public class AVMap {
        private RichForm f1;
        private RichDocument d1;
        private RichPanelStretchLayout psl1;
        private UIGeoMap m1;
        private UIXGroup g1;
        private RichCommandButton cb1;
        private RichPanelGroupLayout pgl1;
        private RichPanelGroupLayout pgl2;
        public void setF1(RichForm f1) {
            this.f1 = f1;
        public RichForm getF1() {
            return f1;
        public void setD1(RichDocument d1) {
            this.d1 = d1;
        public RichDocument getD1() {
            return d1;
        public void setPsl1(RichPanelStretchLayout psl1) {
            this.psl1 = psl1;
        public RichPanelStretchLayout getPsl1() {
            return psl1;
        public void setM1(UIGeoMap m1) {
            this.m1 = m1;
        public UIGeoMap getM1() {
            return m1;
        public void setG1(UIXGroup g1) {
            this.g1 = g1;
        public UIXGroup getG1() {
            return g1;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public void setPgl1(RichPanelGroupLayout pgl1) {
            this.pgl1 = pgl1;
        public RichPanelGroupLayout getPgl1() {
            return pgl1;
        public void setPgl2(RichPanelGroupLayout pgl2) {
            this.pgl2 = pgl2;
        public RichPanelGroupLayout getPgl2() {
            return pgl2;
        *public void refresh(){*        System.out.println("In refresh method");
    }Edited by: Shay Shmeltzer on Apr 2, 2010 10:15 AM

  • Feature request for Mapviewer for styling rules in predefined themes

    Hi,
    i have a bunch of predefined themes in MapViewer with quite a lot of rules for each of them. They are all of the same structure
    <ruleA>...
    <ruleB>...
    <ruleOtherwise> If not ruleA and not ruleB ....
    Since every rule is being processed, you have to define a quite big "where" cirteria in ruleOtherwise in order to process only when no other rule fit.
    I think an explicit "default" or "otherwise" rule would be a great enhancement for these cases. It should be called when no other rule fits,
    Regards,
    Holger

    I launch this resquest with 2 themes. First one for geometries 2001 and the secound one for the others. But only get the results for the first theme. Think there is something wrong, is possible that the request only allow one theme? so it wouldn't make any sense the <themes> tag.
    <map_request>
    <themes>
         <theme name='JDBC_THEME'>
              <jdbc_query asis='true' spatial_column='value' jdbc_srid='8307' label_column='label' render_style='M.MARKER' datasource='DSTest'>
              SELECT g.value,g.annotation as label FROM geometries g WHERE g.value.sdo_gtype = 2001</jdbc_query>
         </theme>
         <theme name='JDBC_THEME'>
              <jdbc_query asis='true' spatial_column='value' jdbc_srid='8307' label_column='label' render_style='colorScheme' datasource='DSTest'>
              SELECT g.value,g.annotation as label FROM geometries g WHERE g.value.sdo_gtype != 2001</jdbc_query>
         </theme>
    </themes>
    </map_request>
    Thanks again.

  • QueryParamter on predefined themes in V2

    It seems that the ability to set the queryParameter value in vectorlayer , predefined theme is not in the documentation in v2?  Is it available?

    Sorry,  the setqueryparameter method is documented under the  VectorLayer object. 

  • Possible to change style of predefined theme ?

    Using Java API - is it possible to dynamically change style of a predefined theme ?

    There is no API method that allows you to change the predefined theme styling rules definition. In your request you can create dynamic styles and also dynamic themes that uses these dynamic styles.

  • Templated predefined theme and JavaBean MapViewer API

    Hello,
    i have problems using a templated predefined theme and the JavaBean Mapviewer API.
    I defined a theme with a styling rule:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
      <rule>
        <features style="MYSTYLE">id in ( select column_value from table(:1))</features>
      </rule>
    </styling_rules>When i use the javascript api i can provide the parameter to my Foi using a MVArrayParameter :
    var myparams = "\"aaa\",\"bbb\"";
    var myArrayPar = new MVArrayParameter(myparams,'sarray','id_list');
    myFoi.setQueryParameters(myArrayPar);id_list is a table of varchar2(64).
    This works fine in OracleMaps, but i have troubles to get this working with the JavaBean API.
    String[] sArr = new String[2];
    sArr[0] = "aaa";
    sArr[1] = "bbb";
    mv.addPredefinedTheme(themeName);
    mv.setPredefinedThemeParameters(themeName,sArr);
    ...This results in a theme node with two parameter nodes in the xml map_request:
    <theme name="MYTHEME">
      <binding_parameters>
        <parameter value="aaa" type="String"/>
        <parameter value="bbb" type="String"/>
      </binding_parameters>
    </theme>
    ...But the output does not include the theme. Instead i get this error message:
    2007-12-20 09:14:36.081 ERROR *** Exception while querying theme: MYTHEME
    2007-12-20 09:14:36.081 ERROR Exception fetching data for theme MYTHEME.How can i solve this problem?
    Thanks for help in advance,
    Dirk

    Hi Dirk,
    your type in this case is 'id_list' and the XML should be something like:
    <theme name="MYTHEME">
      <binding_parameters>
        <parameter value="aaa,bbb" type="id_list"/>
      </binding_parameters>
    </theme>
    ...However, if you are using version 10.1.3.1 (sending a direct XML request or using the API) it does not support this binding_parameter with a custom type. With version 11 preview that we posted recently, you should be able to send a direct xml request using the example above, but it seems that using the API, you will not be able to get the correct XML. We will check that.
    Joao

  • Unable to find entry in ALL_SDO_GEOM_METADATA in predefined  theme

    Hello I've a strange problem with mapviewer.
    I've diferents themes, all with its definition in USER_SDO_THEMES. I've created the metadata information for the georaster table in USER_SDO_GEOM_METADATA and I've created the spatial index on the spatial extent (georaster.spatialextent) of the georaster table.
    When I restart mapviewer and I access to a map, the map is well renderized but I obtain next error. This error appears only the first time that I access to the map, the rest of access dont produce this error. Strange no?
    +SEVERE: MAPVIEWER-01023: Unable to find entry in ALL_SDO_GEOM_METADATA table for theme: [TEMA_FOTO_VHR_2007]+
    select SRID from ALL_SDO_GEOM_METADATA where TABLE_NAME=? and (COLUMN_NAME=? OR COLUMN_NAME=? or COLUMN_NAME=?) and OWNER=?
    Mar 23, 2010 1:34:24 PM oracle.sdovis.ThemeTable getSrid
    SEVERE: Juego de resultados agotado
    java.sql.SQLException: Juego de resultados agotado
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)
    at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:493)
    at oracle.sdovis.ThemeTable.getSrid(ThemeTable.java:1882)
    at oracle.sdovis.ThemeTable.getThemeDefinition(ThemeTable.java:363)
    at oracle.sdovis.DBThemeCache.getOrLoadThemeDefinition(DBThemeCache.java:111)
    at oracle.sdovis.DBMapMaker.addPredefinedTheme(DBMapMaker.java:640)
    at oracle.sdovis.BaseMap.addPredefinedTheme(BaseMap.java:140)
    at oracle.sdovis.BaseMap.addMapToMapMaker(BaseMap.java:129)
    at oracle.lbs.mapserver.core.RealWorker.addRequestedThemes(RealWorker.java:1089)
    at oracle.lbs.mapserver.core.RealWorker.generateMapImage(RealWorker.java:586)
    at oracle.lbs.mapserver.core.RealWorker.process(RealWorker.java:359)
    at oracle.lbs.mapserver.MapServerImpl.renderMap(MapServerImpl.java:181)
    at oracle.lbs.mapserver.oms.doPost(oms.java:517)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    I can't find a solution, and I'm crazy trying to solve this problem.
    Can somebody helps me?

    Hi,
    It was always documented that users need to insert into USER_SDO_GEOM_METADATA and select from the ALL_SDO_GEOM_METADATA.
    All of the documentation mentions that users should not insert into ALL_SDO_GEOM_METADATA directly.
    But we have noticed that some users try to insert into ALL_SDO_GEOM_METADATA directly and some times use the wrong owner information while doing so.
    And this causes problems in queries, so we explicitly revoked the privs on that view to prevent users from corrupting the metadata by mistake.
    This change was made in 10.2.0.4 and 11.1.0.6.
    siva

  • Predefined network  model themes

    I am having a problem whilst trying to load one of the above into mapviewer. I have a network model that is working, valid and I can perform analysis using the SQL API. I am trying to create a theme with
    insert into user_sdo_themes values(
    'RAILNET',
    'UK Rail Network',
    'LINK',
    'L_GEOM',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules
    theme_type="network"
    network_name="RAILNET"
    network_level="1">
    <rule>
    <features>
    <link
    style="C.YELLOW"
    direction_style="M.DIRECTION"
    direction_position="0.5"
    direction_markersize="7">
    </link>
    <node
    style="M.NODE"
    markersize="5">
    </node>
    </features>
    </rule>
    </styling_rules>');
    The mapviewer returns the following (in FINEST)
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
    <map_request
    datasource="mvdemo"
    width="1159"
    height="793"
    bgcolor="#ffffff"
    bgimage=""
    antialiase="true"
    format="SVGZ_URL" zoomlevels="1" zoomfactor="2.0" zoomratio="1.0" infoon="true" navbar="no" onclick="shiftPressed(evt.shiftKey);svgClicked" onrectselect="shiftPressed(evt.shiftKey);svgRect">
    <center size="10.0">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>-1.4,53.0</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <legend bgstyle="fill:#ffffff;fill-opacity:128;stroke:#ff0000" profile="SMALL" position="NORTH_EAST"><column><entry is_separator="true" /><entry text=" Map Legend " is_title="true" /><entry is_separator="true" /><entry style="L_DOWN" text="Down Track Level" /><entry style="L_UP" text="Up Track Level" /><entry style="L_BI" text="Bi-Dir Track Level" /><entry style="L_UNVAL" text="Unvalidated link" /><entry style="M.NODE" text="Track Level Node" /></column></legend>
    <themes>
    <theme name="RAILNET" min_scale="50000.0" max_scale="0.0" />
    </themes>
    </map_request>
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(mvdemo) begins...
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a predefined theme RAILNET
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=RAILNET]
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :8307
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] before adjusting: minX = -8.707692307692307, maxX=5.907692307692308 minY=48.0, maxY=58.0 w=14.615384615384615, h=10.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.SRS] After adjusting: minX = -8.707692307692307, maxX=5.907692307692308 minY=48.0, maxY=58.0 w=14.615384615384615, h=10.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-8
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Master scale] 1.2105926860025222 [Scale factor for theme RAILNET] 1.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] ptvpxfmfxed: xl=-9.0
    05/09/29 10:22:20 Thu Sep 29 10:22:20 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Geometry Network link query]: select ROWID, L_GEOM from LINK WHERE MDSYS.SDO_FILTER(L_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-9.0,48.0,5.907692307692308,58.0)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 WARN [oracle.sdovis.theme.ntp] java.lang.NullPointerException
    at oracle.sdovis.theme.NetworkThemeProducer.processGeomLinkQuery(NetworkThemeProducer.java:2467)
    at oracle.sdovis.theme.NetworkThemeProducer.prepareData(NetworkThemeProducer.java:329)
    at oracle.sdovis.NetworkTheme.prepareData(NetworkTheme.java:64)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 ERROR [oracle.sdovis.DBMapMaker] Message:null
    Description: Nested exception is:
    Message:null
    Description: Nested exception is:
    java.lang.NullPointerException
    Message:null
    Description: Nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at oracle.sdovis.theme.NetworkThemeProducer.processGeomLinkQuery(NetworkThemeProducer.java:2467)
    at oracle.sdovis.theme.NetworkThemeProducer.prepareData(NetworkThemeProducer.java:329)
    at oracle.sdovis.NetworkTheme.prepareData(NetworkTheme.java:64)
    at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 202ms.
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 FINEST [oracle.sdovis.RE] xfm: 79.3 0.0 0.0 -79.3 690.5199999999999 4599.4
    05/09/29 10:22:21 Thu Sep 29 10:22:21 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme RAILNET with 0 styled features: 0ms
    If i leave the <link> tag out of the theme definition then the mapviewer loads and renders the nodes, but with the <link> included nothing is rendered.
    Help!

    That works, here is the output. I assume then that there is a bug?
    <map_request
    datasource="mvdemo"
    width="1159"
    height="793"
    bgcolor="#ffffff"
    bgimage=""
    antialiase="true"
    format="SVGZ_URL" zoomlevels="1" zoomfactor="2.0" zoomratio="1.0" infoon="true" navbar="no" onclick="shiftPressed(evt.shiftKey);svgClicked" onrectselect="shiftPressed(evt.shiftKey);svgRect">
    <center size="0.00639386189258312">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>-1.9082991021265139,51.53651515982236</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name="RAILNET" >
    <jdbc_network_query
    network_name="RAILNET"
    network_level="1"
    jdbc_srid="8307"
    datasource="mvdemo"
    link_style="C.YELLOW"
    direction_style="M.DIRECTION"
    direction_position="0.5"
    direction_markersize="10"
    node_style="M.NODE"
    node_markersize="5"
    asis="false">
    </jdbc_network_query>
    </theme>
    </themes>
    </map_request>
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(mvdemo) begins...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Network Theme:
    ThemeDescriptor=
    name=RAILNET
    type=6
    minScale=Infinity
    maxScale=-Infinity
    srid=8307
    localThem=null
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.theme.ntd] [Network Metadata Query] select * from user_sdo_network_metadata where network = 'RAILNET'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :8307
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] *** local adjustment will be performed on this req. ***
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] before adjusting: minX = -1.9158108694149043, maxX=-1.9007873348381232 minY=51.53331822887607, maxY=51.53971209076865 w=0.015023534576780994, h=0.00639386189258312
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.SRS] After adjusting: minX = -1.9158108694149043, maxX=-1.9007873348381232 minY=51.53331822887607, maxY=51.53971209076865 w=0.015023534576780994, h=0.00639386189258312
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-22
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Master scale] 7.740362442471369E-4 [Scale factor for theme RAILNET] 1.0
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Geometry Network link query]: select L_GEOM from LINK WHERE MDSYS.SDO_FILTER(L_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-1.9158108694149043,51.53331822887607,-1.9007873348381232,51.53971209076865)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.theme.ntp] [Network node query]: select N_GEOM from NODE WHERE MDSYS.SDO_FILTER(N_GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-1.9158108694149043,51.53331822887607,-1.9007873348381232,51.53971209076865)), 'querytype=WINDOW') = 'TRUE'
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 50ms.
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 FINEST [oracle.sdovis.RE] xfm: 77145.62735398066 0.0 0.0 -124025.19999999895 147796.43141258793 6392223.099999947
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme RAILNET with 41 styled features: 0ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering SVG: 79ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 13ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 139ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 1ms
    05/09/29 15:52:10 Thu Sep 29 15:52:10 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 153ms
    15:52:10,319 INFO MapAction - THE ACTION IS = ZoomTo
    15:52:10,319 DEBUG MapAction - class omnieng.mapviewer.beans.PublicMapControler
    15:52:10,319 DEBUG MapAction - class omnieng.mapviewer.beans.PublicMapControler
    15:52:10,319 FATAL MapAction - NOW DOING POST PROCESS
    15:52:10,319 FATAL MapAction - NOW DONE POST PROCESS
    15:52:10,321 DEBUG HttpRequestControllerFactory - Getting controller
    15:52:10,322 DEBUG ControllerFactory - MAP_CONTROLLER
    15:52:10,322 INFO ControllerFactory - Current type is 5
    15:52:10,322 DEBUG ControllerFactory - current type is 5
    15:52:10,322 DEBUG HttpRequestControllerFactory - setting the controller omnieng.mapviewer.beans.PublicMapControler
    15:52:10,322 DEBUG HttpRequestControllerFactory - done

  • Complex predefined JDBC Theme with stacked styles ?

    Is it possible to have a predefined Complex JDBC Theme and use stacked styles ?
    complex JDBC themes use the features element of the theme to store a sql statement. I have tried adding other styles but it seems mapviewer only uses the first style rule.
    Just want to check if there are workarounds to this or if I'm missing something.
    I can always add extra predefined themes but I'm worried about the performance hit of querying the same table multiple times just to get different styles applied to the same data.

    Predefined themes with full SQL query defined use just one styling rule (the first one).
    If you are able to define query conditions for your theme, then you may have a couple of options:
    1) define several styling rules, each one with its query condition and styles.
    2) define one rule with query condition and an advanced rendering rules. On the advanced rendering
    rules section you can define several styles to be applied on your theme data.
    Joao

  • Refreshing predefined FOI in 11g

    I am working on Mapviewer 11g on Jdeveloper 11g using ADF. I managed to display the base map and predefined theme FOI. I am now trying to just refresh the theme based FOI (predefinedTheme1) on user clicking the 'Refresh Now' command button, How do I do it?. I am attaching the JSPX file with the code.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <script type="text/javascript">
    <![CDATA[
    var mapview;
    baseURL = "http://"+document.location.host+"/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    alert(baseURL);
    function refreshFoi()
    var themebasedfoi1 = mapview.getThemeBasedFOI('themebasedfoi1');
    var themebasedfoi2 = mapview.getThemeBasedFOI('themebasedfoi2');
    var themebasedfoi3 = mapview.getThemeBasedFOI('themebasedfoi3');
    var themebasedfoi4 = mapview.getThemeBasedFOI('themebasedfoi4');
    themebasedfoi1.refresh();
    themebasedfoi2.refresh();
    themebasedfoi3.refresh();
    themebasedfoi4.refresh();
    function autoRefresh()
    if ((document.getElementById('foiVisible').checked) && (document.getElementById('refreshAuto').checked))
    refreshFoi();
    ]]>
    </script>
    <af:messages/>
    <af:form>
    <af:panelWindow closeIconVisible="false"
    title="Oracle Maps in JDeveloper 11g" id="pw1">
    <dvt:mapToolbar mapId="map"/>
    <dvt:map id="map" startingX="-100.04" mapServerConfigId="mapConfig1"
    baseMapName="MVDEMO.DEMO_MAP" mapZoom="0"
    startingY="40" unit="METERS"
    inlineStyle="width:100%; height:600px;"
    partialTriggers="::cb1">
    <dvt:predefinedTheme id="predefinedTheme1"
    themeName="MVDEMO.CUSTOMERS"/>
    </dvt:map>
    </af:panelWindow>
    <af:selectBooleanCheckbox
    label="Show Locations" id="foiVisible"/>
    <af:selectBooleanCheckbox
    label="Auto Refresh" id="refreshAuto"/>
    <af:commandButton text="Refresh Now" id="cb1" action="refreshFoi()"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks

    Hello!
    And why you create new MVMapView ?
    (mapview = new MVMapView(document.getElementById("map"), baseURL);)
    If you use dvt:map the variable "map" alredy is in javascript page scope.
    This is AdfDhtmlGeoMap object.
    This code find the current map instance:
    if (map) {
    var mapview = map.getMVMapView();
    You may use Firebug in FF to check this.
    If you use dvt:map jsp page contains _AdfDhtmlGeoMap-SHEPHERD-PS1-9296.js.
    It includes AdfDhtmlGeoMap prototype and other mapviewer object such MVMapView, MVSdoGeometry, MVMenu etc.

  • Trouble with passing parameters to a dynamic theme

    Hello experts,
    I have been wrestling with this for days now, and can't seem to understand what is going on here. I don't think it's difficult to figure out and I'm sure I'm not the only one who has come across this, I just feel like I am missing something.
    In a nutshell - I have a predefined theme called TEST_DYNAMIC_THEME_NEW2. Its styling rules are as follow:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules caching="NONE">
        <rule>
            <features style="C.RED"> select geom, :1 FROM TRACT_CURRENT_GEO </features>
      </rule>
    </styling_rules>I am obviously trying to pass a parameter to this theme, representing a column name. Perhaps this is not possible, but I don't know why not.
    The error message I'm getting in Firebug is as follows:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:SQLException: ORA-01722: invalid number
    </oms_error>On the other hand, when I am in mapbuilder and I Preview the theme it works fine. It asks for a parameter value for :1, I give it a column name, and a big red map displays in the Preview screen (this is what I want to see [at least for now]).
    Any ideas, folks?
    Thank you all very much for your time,
    John

    jpaiva,
    I thought that this might be the case. What I was clearly attempting to do is set up a predefined theme that would reference a specific table, but then the queried column could change based on a bind variable. If I want to continue down this path, perhaps the best solution would be to simply create a dynamic jdbc theme query on the client side.
    Thanks!

  • Setting Theme's Max Whole Image Level from Java

    Hi,
    I'm using JDeveloper11g and I have problems with predefined themes.
    I have developed an application which shows a predefined theme through the <dvt:predefinedTheme> component.
    Because there too many FOIs , I want to set the "Max Whole Image Level" for the theme.
    I know it' is possible from Javascript with function "setMaxWholeImageLevel".
    Is it possible from Java too?
    In Java I have instances of classes UIGeoMap and ThemeFOI, but I don't find methods to set the "Max Whole Image Level" for the theme.
    How can I do it?
    I tried another method too. I put an <af:clientListener> component to listen to page loading. So when page load event fires, a javascript method calls the "setMaxWholeImageLevel" function. The problem is that when page load fires, the object MVThemeBasedFOI (returned from object MVMapView) is null.
    This is the javascript code:
    function test()
    var mapView = null;
    var theme = null;
    var geoMap = AdfPage.PAGE.findComponent('map1');
    mapView = geoMap.getMVMapView();
    if(mapView != null)
    theme = mapView.getThemeBasedFOI('predefinedTheme1');
    if(theme != null)
    theme.setMaxWholeImageLevel(11);
    theme.setMinClickableZoomLevel(11);
    What can I do?
    However, do you know if Java functions, setting "Max Whole Image Level" parameter, will be implemented?
    Thank you,
    Arturo

    Hi,
    I have found a solution for my problem.
    If I call Javascript from backing bean, it works well.
    I have inserted the calling to javascript function test() in method setMap1():
    public void setMap1(UIGeoMap map1)
    this.map1 = map1;
    if(map1 != null)
    ThemeFOI theme = map1.getThemeFOIById("predefinedTheme1");
    if(theme != null)
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "test();");
    However I have these questions:
    1) What is the best method to work? Is this method better than using an <af:clientListener> component listening to page loading ?
    2) In the next release of JDeveloper, will it be possible to set a predefined theme as a "whole image" from Java ?
    Thank you,
    Arturo

  • Advanced Styles with JDBC Themes

    Hi,
    I am trying to use the Java API to add a JDBC theme to a map request (no problem we have been doing this for some time). However, I now want to apply a predefined Advanced style to that theme but am struggling to do so. If I predefine a theme and use the predefined advanced style them it works fine. When I user the .addJDBCTheme call with the advanced style as the style parameter it does not work. I am guessing I have to use the setThemeRenderingRules to get this to work but the documentation is not great and I can't find any examples. Has anyone applied an advanced theme to JDBC layers and if so how did you do it, any help much appreciated.
    Chris

    Hi Chris,
    when using a predefined theme the attribute column (or columns) to be used by the advanced style are defined on the theme definition.
    For dynamic themes, you need to select the attribute on the dynamic SQL expression. On the following example, the column TOTPOP is used for the render style.
      <themes>
        <theme name="states" >
           <jdbc_query
             spatial_column="GEOM"
             render_style="V.USSTATES TOTPOP"
             jdbc_srid="8265"
             datasource="mvdemo"
             asis="false">select GEOM, TOTPOP from STATES
           </jdbc_query>
         </theme>
      </themes>Joao

  • Nokia 500 - Hang up with theme Nokia Evolve

    I bought a 500 with 2 preinstalled themes. When I set up nokia evolve as predefined theme , sometimes the phone habg up and I want to plug and play the battery to reset the phone.
    Do some of you have happened this ?
    How can I remove this theme since it doesn't appear in the list to remove ?
    How can I fix this error ?

    @jspoleti
    Nokia Evolve theme not compatible with Symbian Belle but S60 5th Ed. devices and Nokia Store should not offer it.
    Happy to have helped forum with a Support Ratio = 42.5

  • Make custom theme available for the "Create new app" wizard

    Hi all,
    I have a general problem. Imagine you have created a theme for ApEx. The theme makes applications look as demanded by the design principles of a company. The company now wants everyone developing ApEx applications to use the developed theme.
    But It seems to me that there is no easy way of doing this. When I create a new application, I can only see the standard themes defined in the repository. If I want a new application to use the developed theme, I have to exort the theme once, and import it for any application I create (after creating the application, of course :-( ). This is cumbersome. And maybe a point of discussion in many companies.
    Is there a way to exchange a predefined theme in the repository through a custom theme? Or even better: Add a predefined theme to the repository? The important thing is to make the theme available for all applications in an instance without importing the theme again and again.
    If there is no possibility to do this, this is an enhancement request. How about a possibility to import new themes globally for all applications (maybe from the INTERNAL workspace). Or how about putting a "Import Theme" Upload field on the "Select Theme" page in the application creation wizard?
    Regards.
    Stephan

    Hello,
    I'll put an enhancement request for that, there might even already be one. The way you are doing it right now is pretty much the easiest way.
    One way I do it is I have a stub application that has just a couple blank pages and the proper themes and templates. Then all someone has to do is install the blank application and start working on that, it just takes a couple steps out of the theme switching issue.
    Carl

Maybe you are looking for