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;
}

Similar Messages

  • 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

  • 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

  • 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.

  • 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

  • [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.

  • 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

  • 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?

  • 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.

  • 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.

  • UNABLE TO CLCIK ON 1ST FOI LAYER WHEN ANOTHER LAYER IS DISPLAYED

    Hi Team !
    Using Mapviewer Javascript API to add layers to a map, with set visible = false.
    when 1 layer is made visible, the point item can be clicked on/selected. Make another layer visible and the 1st layer becomes deactivated.
    Is it expected behavior ?
    Thank you,
    Raj

    I have 2 theme based FOI layers.The 2nd layer covers the 1st layer. I need process an event "mouse_click" on 2nd layer.But 2nd layer doesn't get this event, the 1st layer gets. How may I propogate these event from 1st layer to 2nd layer? I tried to use a function enableEventPropagation() on 1st layer but it didn't help.

  • 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.

  • How theme-based text search work?

    Hello all,
    I want to use the theme-based text search feature of interMedia. I am not too understand about how it works.
    Is that I need to build up my own threasrus that map a word to a concept. e.g. Concept 'Internet' include words such as 'Computer', 'Web', 'http'. And then when I use theme-based search for the word 'Internet', then it will give me all the records that contain the words 'Computer', 'Web' and 'http' ?
    If it is the case, do it mean that I have to build up many many theasrus by myself?
    Thanks for everyone's help in advance.

    I am trying to do the same thing. I am successful in adding these related terms to thesaurus but unsuccessful in updating the knowledge base. If you got some success, let me know
    Gagan
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by fenton lui ([email protected]):
    Hello all,
    I want to use the theme-based text search feature of interMedia. I am not too understand about how it works.
    Is that I need to build up my own threasrus that map a word to a concept. e.g. Concept 'Internet' include words such as 'Computer', 'Web', 'http'. And then when I use theme-based search for the word 'Internet', then it will give me all the records that contain the words 'Computer', 'Web' and 'http' ?
    If it is the case, do it mean that I have to build up many many theasrus by myself?
    Thanks for everyone's help in advance.<HR></BLOCKQUOTE>
    null

  • 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

  • FOI Layer not Visible - Urgent

    Hi All,
    I have created a base map and able to view the map in HTML client. I have created one geometry theme for which I want to add as a themebasedFOI on the client side.
    I have gone through the mapviewer examples and coded accordingly. In the mapviewer server , I can see output statements which states that features found for FOI theme , but still not visible on client side on the basemap.
    and more query is regarding cache invalidation -- I created a tilelayer cache derived from the base map. What config should be done so that if any change in data , mapviewwer should invalidate the current tile cache image and generate new image based on the modified data. I have currently set the life time and interval time in mapviewer_Config.xml , but no change in tile cache if any data is changed.
    Can anyone help on this?
    Suresh

    your problem seems to be that you didn't purge the cache of the map
    you can purge chached metadata of the data source from
    localhost:7001/mapviewer/faces/admin/admin_ds.jspx
    if u changed some themes you can purge theme @ this page
    http://localhost:7001/mapviewer/faces/admin/admin_memcache.jspx
    about Map Tile layer
    you can search about action of the two buttons "Bring Online" and "Take offline" of your tile layer from Manage Map Tile layers pages
    http://localhost:7001/mapviewer/faces/admin/mcs_admin.jspx
    Regards,
    Abacy

Maybe you are looking for

  • How can I install one app on multiple iPads at the same time?

    We have a volume purchasing account, but when purchasing an app we get multiple serial numbers that all seem to need to be entered individually. The iPhone config Utility will not sync multiple iPads at the same time. Am I missing something? This can

  • How to add user in solaris

    i want to add new user to my soalris 10 ,but i can not find admintool commands like in solaris 9 i do not want to use useradd command . please let me know does it change admintool in solaris 10 or no?

  • Webcenter Portal large Site with Jar Files Deployment/Configuration

    Hi, I have a large WCS portal to deploy comprising of many "applications" from different groups. Ideally we want to deploy it as a .ear file, containing menus, templates, preferences, and some other common structures. We want to deliver each applicat

  • Remove un-used photos from library

    i have 68,000 photos in my library. About HALF of them are not used in any album. That is, after import, I have deleted half of the pictures from the albums. iPhoto is very slow to respond. I think it has to do with the large photo library. Is there

  • Where is low battery warning in Mountain Lion?

    Lion used to give low battery power alerts which I do not find after Mountain lion upgrade. Is it still there or...???