Problem refreshing theme based FOI

Hi,
We have a map and we want to display shops on it. That works, however new new call containing a different collection of shop IDs does not result in a refresh of the map in the sense that these new shops appear on it. I have been studying the JavaScript API, and I thought that I did find the (best) way to do this, namely the following flow (omitting less relevant code):
1. First we start with a function that initializes the MapViewer object:
function showRasterMap(){
raster_mvo = new MVMapView(document.getElementById("rastermap"), baseURL);
var base_map = new MVBaseMap("MVDS.RASTER_MAPCACHE");
base_map.setVisible(true);
raster_mvo.addBaseMapLayer(base_map);
raster_mvo.setCenter(MVSdoGeometry.createPoint(center_x, center_y, 90112));
raster_mvo.setZoomLevel(0);
raster_mvo.addScaleBar();
raster_mvo.display();      
2. Then when the end user clicks on a node of a tree widget, a second function is called that collects the shop IDs and passes that array to a function that sets the query parameter.
function RasterWindow_loadRasterKaart(){
var data = dojo.json.serialize({nodeId: list.activeNodeId});
request = {data: data, action: "getBaseIds"};
     dojo.io.bind({
     url: "list.do",
     load: rasterWindow.bolletjesCallback,
     mimetype: "text/plain",
     content: request,
     preventCache: true
function RasterWindow_bolletjesCallback(type, data, evt){
var arr = dojo.json.evalJson(data);
prepareArraydMap(arr);
3. Now the interesting part comes, namely the question how to (best) refresh the map. I solved like this: when the ThemeBasedFOI doesn't exist yet, then it will be initialized and added to the MapView object. But when it already exists, then it needs to bind the new query parameter, execute the query and refresh the MapView object. The reason for proceeding like this, is of course to avoid to re-create the ThemeBasedFOI and MapView objects again and again (which doesn't look like a good coding practise and intuitively looks less performing). So my little function became something like this:
function prepareArraydMap(arr){
var myArrayParam = new ArrayParameter(arr,'narray','t_unitids')
if (raster_foi == null) {
raster_foi = new MVThemeBasedFOI('rasterUnitsFoi','MVDS.THEMERASTERUNITS', baseURL);
raster_foi.setQueryParameters(myArrayParam);      
raster_foi.setBringToTopOnMouseOver(true);
raster_foi.addEventListener("mouse_right_click", foiRightClick);
raster_foi.enableInfoTip(true);
raster_foi.setVisible(true);
raster_mvo.addThemeBasedFOI(raster_foi);
else {
     raster_foi.setQueryParameters(myArrayParam);
     raster_foi.setVisible(true);
     raster_foi.refresh(false);
raster_mvo.display();
The problem is however, it does not work. The first request to display the shops on the map is: request=getfoi&version=1.0&theme=MVDS.THEMERASTERUNITS&bbox=-265933.3333333333:29066.666666666686:546866.6666666666:841866.6666666666&width=1536&height=1536&paramnum=1&param1=257476,118262&paramtype1=narray&sqltype1=t_unitids&area=yes&dstsrid=90112
Subsequent requests (for different shops) have a likewise request, but do not result in shops being displayed (only the map is visible). Also: a strange post appeared (in FireBug), namely: POST http://localhost:8888/mapviewer/ReturnLocaleOper, which contains:
i0=Pan%20NorthWest&i1=Pan%20North&_i2=Pan%20NorthEast&_i3=Pan%20West&_i4=Pan%20East&_i5=Pan%20SouthWest&_i6=Pan%20South&_i7=Pan%20SouthEast&_i8=Slider%20Bar&_i9=Drag%20To%20Zoom&_i10=Zoom%20In&_i11=Zoom%20Out&_i12=Scale%20at%20the%20center%20of%20the%20map&_i13=MapView%20baseURL%20is%20not%20set,%20please%20check&_i14=km&_i15=mi&_i16=m&_i17=ft&_i18=Home
_i17="ft";
_i11="Zoom Out";
_i7="Pan SouthEast";
_i3="Pan West";
_i18="Home";
_i15="mi";
_i14="km";
_i10="Zoom In";
_i6="Pan South";
_i0="Pan NorthWest";
_i9="Drag To Zoom";
_i1="Pan North";
_i13="MapView baseURL is not set, please check";
_i5="Pan SouthWest";
_i12="Scale at the center of the map";
_i8="Slider Bar";
_i2="Pan NorthEast";
_i16="m";
_i4="Pan East";
Date: Fri, 22 Dec 2006 00:41:37 GMT
Server: Oracle Containers for J2EE
Connection: Keep-Alive
Keep-Alive: timeout=15, max=100
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
I am lost. I would very much appreciate any help.
Greetings, Erik

I have separated the map code from the main application, and it works now: I can display FOIs and display another set of FOIs by calling the refresh method of the MVThemeBasedFOI. The JavaScript code is quite simple:
function showRasterMap() {
raster_mvo = new MVMapView(document.getElementById("rastermap"), baseURL);
raster_mvo.addBaseMapLayer(new MVBaseMap("MVDS.RASTER_MAPCACHE"));
raster_mvo.setCenter(MVSdoGeometry.createPoint(150000, 450000, 90112));
raster_mvo.setZoomLevel(0);
raster_mvo.addScaleBar();
raster_mvo.display();
function showRasterFOI(arr) {
var t0 = new Date();
var arrParam = new ArrayParameter(arr, 'narray', 't_unitids');
if (raster_foi == null) {
raster_foi = new MVThemeBasedFOI('rasterUnitsFoi', 'MVDS.THEMERASTERUNITS', baseURL);
raster_foi.setQueryParameters(arrParam);
//raster_foi.setBringToTopOnMouseOver(true);
raster_foi.enableInfoTip(true);
raster_foi.setVisible(true);
raster_mvo.addThemeBasedFOI(raster_foi);
else {
raster_foi.addEventListener('after_refresh', function() {
var t1 = new Date();
var diff = t1 - t0;
alert('timer: ' + diff + ' msec');
raster_foi.setQueryParameters(arrParam);
raster_foi.refresh(true);
//TODO: check if zooming is required
//raster_mvo.display(); THIS KILLS PERFORMANCE
So everything looks fine here, except the performance, namely in my browser it takes 33 seconds to display a single FOI !
However I had a look on the code again, and I found that the last call to display the MVMapView object resulted into the gigantic perfomance breakdown as mentioned above. When reading the API, I didn't get consious of this performance penalty. The API just says about the display method: "This method displays all map content inside the map container (which is an HTML DIV element defined in the web page)."
Maybe you could find time to extend the API with information and advices of how to best use it, especially witn respect to performance.
I am happy that I managed to solve this issue that turned our hear into grey color.

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

  • [HELP] Error: "JDBC theme based FOI support is disabled for the given data"

    Hi all,
    I have already set up MapViewer version 10.1.3.3 on BISE1 10g OC4J server. I am current using JDK 1.6. I create a mvdemo/mvdemo user for demo data.
    The MapViewer demo is running fine with some demo without CHART. But give this error with some maps that have CHART like: "Dynamic theme, BI data and Pie chart style", "Dynamic theme and dynamic Bar chart style". The error is:
    ----------ERROR------------
    Cannot process the FOI response from MapViewer server. Server message is: <?xml version=\"1.0\" encoding=\"UTF-8\" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.\nRoot cause:FOIServlet:MAPVIEWER-06016: JDBC theme based FOI support is disabled for the given data source. [mvdemo]</oms_error>.
    ----------END ERROR------
    I searched many threads on this forum, some point me to have this allow_jdbc_theme_based_foi="true" in mapViewerConfig.xml and restart MapViewer.
    <map_data_source name="mvdemo"
    jdbc_host="localhost"
    jdbc_sid="bise1db"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    />
    Error Images: [http://i264.photobucket.com/albums/ii176/necrombi/misc/jdbcerror.png|http://i264.photobucket.com/albums/ii176/necrombi/misc/jdbcerror.png]
    I have this configuration, but no luck. Could anyone show me how to resolve this problem?
    Rgds,
    Dung Nguyen

    Oop, i managed to have this prob resolved!
    My prob may come from this I use both scott and mvdemo schema for keeping demo data (import demo data).
    Steps i made to resolve my prob are:
    1) Undeploy MapViewer from Application Server Control (http://localhost:9704/em in my case)
    2) Drop user mvdemo
    3) Download mapviewer kit from Oracle Fusion Middleware MapViewer & Map Builder Version 11.1.1.2
    4) Deploy MapViewer again
    5) Recreate mvdemo and import demo data
    6) Run mcsdefinition.sql, mvdemo.sql with mvdemo user (granted dba already)
    7) Edit mapViewerConfig.xml
    <map_data_source name="mvdemo"
    jdbc_host="dungnguyen-pc"
    jdbc_sid="bise1db"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="!mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    />
    Save & Restart MapViewer
    And now, all demos run fine. Hope this helpful for who meet prob like my case.

  • Displaying default styles in an advanced style as theme based foi

    Hi,
    I have a problem to display the default style of an advanced style as theme based foi.
    According to the mapviewer log x feature were found to display but no one was rendered into the map.
    MapViewer with image layer works, MapBuilder, too.
    MapViewer version:
    Ver1033p5_B081010
    MapBuilder marker definition:
    <?xml version="1.0" ?>
    <AdvancedStyle>
    <BucketStyle>
    <Buckets default_style="C.ORANGE">
    <CollectionBucket seq="0" type="string" style="C.BLUE">90002,19208</CollectionBucket>
    <CollectionBucket seq="1" type="string" style="C.RED">14002,13004</CollectionBucket>
    </Buckets>
    </BucketStyle>
    </AdvancedStyle>
    The mapviewer log indicates 7 found featuers, but only 2 of them are displayed. The 5 items are using the default style and are not visible.
    LOG
    May 28, 2009 3:46:26 PM oracle.sdovis.LoadThemeData run
    FINER: LoadThemeData running thread: Thread-6894
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINER: [Master scale] 46.091784655389 [Theme scale factor] 1.0
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINEST: [ TEST_FOI_POI_2 ]: 2xxx973.7866666666,5xxx599.714666666,2xxx466.072533333,5xxx968.929066666
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINEST: Theme query [ TEST_FOI_POI_2 ]: SELECT ID, GEOM, 'M.TEST_IMAGE2', null, 'null', -1, 'rule#0', ID, BEMERKUNG FROM FOI_TEST_POI WHERE MDSYS.SDO_FILTER(GEOM, MDSYS.SDO_GEOMETRY(2003, 31466, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(:mvqboxxl, :mvqboxyl, :mvqboxxh, :mvqboxyh)), 'querytype=WINDOW') = 'TRUE'
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINER: [ TEST_FOI_POI_2 ] Fetch size: 100
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    INFO: [ TEST_FOI_POI_2 ] sql exec time: 0ms, total time loading 7 features: 31ms.
    May 28, 2009 3:46:26 PM oracle.lbs.mapserver.core.MapperPool freeMapper
    FINER: freeMapper() begins...
    May 28, 2009 3:46:26 PM oracle.lbs.foi.ThemeRenderingThread render
    FINER: 7 features loaded.31
    May 28, 2009 3:46:26 PM oracle.lbs.foi.ThemeRenderingThread render
    FINER: Total time rendering foi data:0
    May 28, 2009 3:46:26 PM oracle.lbs.foi.FOIServlet doPost
    FINEST: ---- begin FOI response ----
    {"foiarray":[{"id":"201","gtype":"2001","imgurl":"http://server02/mapviewer/images/foi/23_p_Sj_28_24.png","x":2xxx200,"y":5xxx800,"width":28,"height":24,"attrs":["201",]},{"id":"200","gtype":"2001","imgurl":"http://server02/mapviewer/images/foi/23_p_Sj_28_24.png","x":2xxx200,"y":5xxx866,"width":28,"height":24,"attrs":["200",]}],attrnames:["Bezeichnung","BEMERKUNG"],themeMBR:[1.0,0.0,0.0,2xxx422.22678222],hiliteImgPref:"Sh",hiliteMW:10,hiliteMH:10,isWholeImg:false}
    ---- end FOI response ----
    May 28, 2009 3:46:26 PM oracle.lbs.foi.FOIServlet sendGZippedResponse
    FINEST: Sending FOI response in gzip format.
    Regards,
    Cord

    Hi Joao,
    thanks!
    Do you know a workaround or alternative for that problem?
    I have a request of our customer. He has about 400 different group items. Only a few of them (40-60) should be defined with an individual style and the rest with a default style.
    The problem is, that the number of group items rises nearly daily. The new ones should automatically be displayed with the default style.
    Cord

  • Overlapped theme based FOIs in FireFox

    Hi. Ive got problem with using overlapped theme based foi's in firefox. The problem is that only one foi is clickable, and the foi under the upper one is only displayed but not active. It works in IE. One foi is polyline and other is polygon. Is there any solution ?

    I've got the same issue.
    Have you managed to deal with this somehow?

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • Templated Theme Based FOI layer Error

    I'm trying to add FOI like in an example - Templated Theme Based FOI layer.
    Javascript:
    var tbfc = 0;
    function addMyFOI(oKOD){
    tbfc++;
    var foi_name = 'foi'+tbfc;
    var tbg = new MVThemeBasedFOI(foi_name,'cad.dj');
    tbg.setQueryParameters("'"+oKOD+"'");
    tbg.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(tbg);
    dynamic theme:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <hidden_info>
    <field column="NOMER" name="ffff"/>
    <field column="DOM" name="ffff"/>
    <field column="LIT" name="dff"/>
    </hidden_info>
    <rule>
    <features style="M.CYAN PIN"> (NOMER=:1) </features>
    </rule>
    </styling_rules>
    When i call addMyFOI function i get error looks like this:
    06/10/20 01:06:10 ERROR [oracle.lbs.foi.FOIServlet] [Foi Server] foi width value is wrong.
    Does anybody know what it is?

    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 18429.573997;//getCenterLon(MAP_NAME);
    var mapCenterLat = 17544.041656;//getCenterLat(MAP_NAME);
    var mapZoom = 5;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,262148);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(new MVBaseMap("CAD.TYUMEN"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    mapview.addCopyRightNote("&#169;2006 powered by &#8482;");
    ovcontainer = new MVMapDecoration(null,null,null,200,150) ;
    ovcontainer.setCollapsible(true);
    mapview.addMapDecoration(ovcontainer);
    var over=new MVOverviewMap(ovcontainer.getContainerDiv(),3);
    mapview.addOverviewMap(over);
    mapview.display();
    I use this code to initialize my map.
    Hmmm, I still cannot solve that problem

  • How refresh(redraw) one element in dynamic (JDBC) theme-based FOI layer?

    MapViewer version: Ver11_B090501
    I'm add layer on map:
    var QFM = createQuery('formosat', ordsArray.toString(), begd, endd);
    var TFM = createTheme(QFM);
    var HTFM = new MVThemeBasedFOI('HTFM', TFM);
    HTFM.setRenderingStyle("C.FM");
    HTFM.enableHighlight(true);
         HTFM.setHighlightStyle("C.SP");
         HTFM.setHighlightMode("multiple");
         HTFM.setMaxWholeImageLevel(maxImgLev); // 7
         //HTFM.enableImageCaching(true);
    mapview.addThemeBasedFOI(HTFM);// add on map
    If i try click on FOI element, it will be not Highlighted (because im used setMaxWholeImageLevel(maxImgLev); // 7). Can i redraw only selected elemet?

    Feature highlighting only works when the theme is NOT displayed as a whole image.

  • Uncorrect HightLight  theme-based FOI layer

    Im add 2 ThemeBasedFoiLaywer
    if (document.getElementById('HTQB').checked) {
    var QQB = createQuery('QBRD', ordsArray.toString(), begd, endd);
    var TQB = createTheme(QQB,"C.QB");
    var HTQB = new MVThemeBasedFOI('HTQB', TQB);
              HTQB.enableHighlight(true);
              HTQB.setHighlightStyle("C.HSP");
              HTQB.setHighlightMode("multiple");
              HTQB.setBringToTopOnMouseOver(true);
              HTQB.setAutoRefresh(false);
              HTQB.attachEventListener('mouse_click',foiEvent);
              HTQB.attachEventListener('after_refresh', fo2 = function(){
                   createResultTable('HTQB');
                   var t = mapview.getThemeBasedFOI('HTQB');
                   t.detachEventListener('after_refresh',fo2);
    mapview.addThemeBasedFOI(HTQB);
    if (document.getElementById('HTWV').checked) {
    var QWV = createQuery('WorldVW', ordsArray.toString(), begd, endd);
    var TWV = createTheme(QWV,"C.WV");
    var HTWV = new MVThemeBasedFOI('HTWV', TWV);
              HTWV.enableHighlight(true);
              HTWV.setHighlightStyle("C.HWV");
              HTWV.setHighlightMode("multiple");
    HTWV.setBringToTopOnMouseOver(true);
              HTWV.setAutoRefresh(false);
              HTWV.attachEventListener('mouse_click',foiEvent);
              HTWV.attachEventListener('after_refresh', fo3 = function(){
                   createResultTable('HTWV');
                   var t = mapview.getThemeBasedFOI('HTWV');
                   t.detachEventListener('after_refresh',fo3);
    mapview.addThemeBasedFOI(HTWV);
    When im click on FOI element - he is hiding!
    Firebug say me what image is not found:
    !http://pic.ipicture.ru/uploads/090709/cStUVOX67O.jpg!
    Ок, im look at */mapviewer/images/fig/* and see what name of any images is wrong (look at the picture)
    !http://pic.ipicture.ru/uploads/090709/b9iO1tTrNL.jpg!
    Edited by: user11305894 on 09.07.2009 7:21
    Edited by: user11305894 on 09.07.2009 7:23

    You must use ROWID
    function createTheme(q,s){
    var t = "<themes><theme name='MY_JDBC_THEME' >" +
    "<jdbc_query asis='true' key_column='*rowid*' spatial_column='geom' jdbc_srid='40998' " +
    "render_style='"+s+"' datasource='sovzond'>" +
    q +
    "</jdbc_query>" +
    "</theme></themes>";
    return t;
    }

  • Theme based FOI

    Is it possible to get the theme name from a FOI when it is clicked.
    I am adding a number of themebased layers to my map.
    Each layer has a mouse click event listener so that can use displayInfoWindow and show more details about the FOI from the database.
    in order to do this I need to get the layer the FOI belongs to so that I can create the correct query.
    Thanks in advance
    Ian.

    Do all the themes share the same click event listener function?
    1) If they don't, then you know which listener function is attached to which theme. As shown below, it's easy to add code in the listener function to tell which theme it belongs to.
    theme1.attachEventListener(MVEvent.MOUSE_CLICK, listener1) ;
    theme2.attachEventListener(MVEvent.MOUSE_CLICK, listener2) ;
    function listener1(...)
    var theme = "theme1" ;
    function listener1(...)
    var theme = "theme2" ;
    2) If the themes share the same listener function, then for every theme, you can create a new listener function that invokes the original listener function. As the result, the themes no longer share the same listener and we're talking about scenario 1) again.

  • Displaying themes based on Zoom levels in base map

    I am using Oracle AS MapViewer 10131.I have 3 themes added to a base map.
    I am using Oracle Mapbuilder to create Mapping metadata.I want to display the 3rd theme based on the zoom levels.I want to display it only at lower zoom levels.I have followed necessary instructions given in the Mapviwer user guide and mapbuilder help.
    But I am not able to display particular theme based on Zoom levels.
    For example I have min/max scale 70,000/0 for Streets theme set using mapbuilder.This theme should be displayed only at that scale.But I am getting this theme displayed at all min/max scales (zoom levels).While creating the Map Cache Instance given the min/max scales 1000/25000000, the default values.Here the scale values look contradictory to the theme scale values given in mapbuilder.Is this where I am going wrong? or while setting scale for themes?
    I hope you understand my problem.Please help me about this.this is urgent.
    Thanks in advance!!

    My problem is solved now.I am able to display themes on zoom levels.The solution is, I set the min/max scale (zoom levels) in Map Cache Instance as "Ratio" and in theme i set it to "Screen-Inch".The scale of theme is not understood by the map cache instance.So finally i set both the scales to "Ratio" and it is working fine as i expected.
    Anyway thanks for yout interest in helping me.I will surely make a post here if i got stuck in further work.

  • Problem with replication based on materialized view

    Problem with replication based on materialized view...
    Given:
    1. Source: S-1
    2. Targets: T-1, T-2
    3. DB links: from T-1 to S-1, from T-2 to S-1
    Required replicate table TBL on S-1 to T-1, T-2 via db links.
    On S-1 was created materialized view log with PK on TBL. On T-1, T-2 were created mat.views as "on prebuilt table refresh fast on demand". In case of get "ORA-12034: materialized view log younger than last refresh" or initial load - perform complete refresh. Initial load on T-1 takes about 1 hour, on T-2 - about 12 hours. Refresh is executed via job with minutely interval. If refresh is running then it is not performed.
    Problem: after initial load on T-1 performs fast refresh, but on T-2 raised ORA-12034 and complete performs again.
    What's wrong?

    34MCA2K2, Google lover?
    I confess perhaps I gave a little info.
    View log was created before MV.
    It was the first initial load.
    No refresh failed.
    No DDL.
    No purge log.
    Not warehouse.
    There is no such behavior for MVs on another sites.
    P.S. I ask help someone who knows what's wrong or who faced with it or can me  follow by usefull link.
    P.P.S. It's a pity that there is no button "Useless answer"

  • Problem refreshing AW Dimension

    I am trying to create an analytic workspace and I am using the AWM wizard for this job.
    I want to build a cube that is based only on two dimensions. To this end, I have created OLAP catalog metadata for the two dimensions and the cube via OEM successfully.
    Selecting on ALL_OLAP2_DIMENSIONS and ALL_OLAP2_CUBES returns that all objects are valid.
    However when the AWM wizard runs I get the following error
    when DBMS_AWM.REFRESH_AWDIMENSION is called for the first dimension:
    Processing Refreshing Dimension : TC6ACCOUNT_DIM
    Error Message from Server = Problem refreshing dimension:
    TC6ACCOUNT_DIM
    Failed to Build(Refresh) OLAPDUN.TESTCUBE6_AW Analytic Workspace. Error Validating Dimension Mappings TC6ACCOUNT_DIM.DIMENSION. Key Expression DUNMART.ACCOUNT_DIM.ACCNT_ID for Mapping Group TC6ACCOUNT_DIM.MARKET_SEGMENT_H.ACCOUNT_DIM_L.DUNMART_ACCOUNT_DIM_TC6ACCOUNT_DIM_MARKET_SEGMENT_H_ACCOUNT_DIM_L.DIMENSIONMAPGROUP, Level TC6ACCOUNT_DIM.ACCOUNT_DIM_L.LEVEL, Hierarchy TC6ACCOUNT_DIM.MARKET_SEGMENT_H.HIERARCHY is Incorrectly Mapped to RDBMS.
    I dont know what I'm doing wrong. If there was an error in the hierarchy, then why do I get a valid state for these objects from the ALL_OLAP2 views?
    I would appreciate it if anyone could help me out!
    Nikos

    Thanks Sharon for the tip. I have applied patch 10.1.0.3E and the dimensions were refreshed successfully.
    Unfortunately now another error was raised during the cube refreshing.
    More specifically I got the following error during the call:
    execute DBMS_AWM.REFRESH_AWCUBE('OLAPDUN', 'TESTCUBE7', 'TC7TESTCUBE7', 'TESTThu Mar 10 16:10:19 EET 2005');
    Error Message from Server = Problem getting dimensions for cube:
    DUNMART
    TESTCUBE7
    Aggregation Definition TC7TESTCUBE7.TC7TESTCUBE7_DA.AGGREGATIONDEFINITION is Invalid. Aggregation Definition TC7TESTCUBE7.TC7TESTCUBE7_DA.AGGREGATIONDEFINITION can not be Compiled.
    (AW$XML) AW$XML
    In SYS.AWXML!__XML_HANDLE_ERROR PROGRAM:
    SqlException = ORA-06502: PL/SQL: numeric or value error string
    ORA-06512: in "OLAPSYS.DBMS_AWM", line 1213
    ORA-06512: in line 1
    Error Code = 6502
    Sql State = 65000
    All the cubes could not be added to the Analytic Workspace TESTCUBE7;
    The following cubes could not be added : TESTCUBE7
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error string
    ORA-06512: in "OLAPSYS.DBMS_AWM", line 1213
    ORA-06512: in line 1
    Tidying Up
    Failed to create the analytic workspace
    Are there any suggestions for this error?
    thanks,
    Nikos

  • Possible to edit theme-based navigation (ie. the "back" arrow)?

    Hello.
    I'm just wondering if anyone knows if it's possible to edit the "back" arrow navigation that automatically appears in a theme when you've created a sub-menu? the auto-generated arrow used does not fit very well with the rest of the theme and I'm hoping to move/edit it?
    Mainly this is a problem because I've created a custom theme (based on an apple theme) and the arrow style really doesn't fit (nor does the location). Is there a way to start a theme from scratch rather than based on an Apple built-in theme (thus I wouldn't be stuck with the weird looking "back" arrow)?
    Thanks,
    Kristin.

    This is something I want to do myself. I haven't perfected it yet but you need to do something like this:
    Press Control and Click (Right Click) on the iDVD icon in Applications > Choose Show Package Contents.
    Then choose Resources then select a xxxx.theme file
    Right Click again and 'Show Package Contents', then > Contents > Resources.
    Pick the relevant files and alter the shape/style in a suitable application.
    I'm going to have a play tonight on my Night Watch to see if I can change the colours of the arrows I want to. But at this time I can't actually find the buttons.
    Remember always work on a copy of software when looking for this kind of thing.
    regards
    mrtotes

  • Is there a way to play video clips that use adobe flash and if not when are you going to resolve your problem with them ? I won't buy another apple product until you do and I Know I,m not the online.

    Is there a way to play video clips that use adobe flash and if not when are you going to resolve your problem with them ? I won't buy another apple product until you do and I Know I,m not the only one.

    Use the search feature and type in Flash and there are like thousands of posts on this.
    You seem to think you are addressing Apple with your post.  This is a user forum and we are all users just like you.

Maybe you are looking for

  • How to add search help for field in ALV object

    Hello, In a program, we use ALV object ( container) to create a liste like : field1, field2 .. but when display we do not have search help for this . Could you please help me how to add match code in this case for field 1 and field2, We use set_table

  • MANAGEMENT SOFTWARE

    teams administration software · Support display 30 network devices such as routers and switches · Display the network topology structure type tree and access to equipment from this window. · Monitoring of switches including packet errors, temperature

  • How can I swap black to a spot color (HKS) in a 1c (Dot Gain Black) PDF?

    Hi, does anybody know if this is possible in Acrobat at all? I have exported a cmyk ID file as a b&w Dot Gain x3-PDF. I would now like to swap the black color for a HKS spot color, but I don't know if this works at all. Thanks for any help, Ralf Acro

  • Would the last upgrade to 10.9.3 OXS change my internet settings?

    Can the new upgrade to 10.9.3 change my internet settings?  I cant get my email on my Mac Air but I have no problem getting it on the IPad?

  • Itunes 11.01 crashes on updating match

    Hello iTunes crashes every time it tries to accomplish the match-update. Crash-Reporter says: Crashed Thread:  21 Exception Type:  EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000011b689000 It is always near the end of step