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

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

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

  • 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

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

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

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

  • How to flip a layer without flipping whole image?

    How do I flip a layer (horizontally or vertically) without flipping the whole image?

    Choose the Layer
    Edit> Transform> Flip Horizontal

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

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

  • IPad retina via iOS simulator can not display the whole image (2048x1536)

    Hi,
    I am developing cartoon ebooks with iOS simulatort 7.0. The target device is iPad retina. I use the image whose size is 2048x1356. After building by iOS simulator--iPad retina, only center part of image was displayed. I hope to show the whole image with simulator, how should I do?
    Thanks!

    You would do better to ask your question on the developers' forum. We are but simple users here....

  • Display of PS files w/layer masks in Aperture

    I frequently use the "open in external editor" command to edit images in PS. Mostly, this works very well and I'm able to view the edited image in Aperture without a problem. However, for some images with layer masks created in PS, when I save them and return to Aperture only the layer mask is visible (not the image as it should appear). Has anyone else had this problem? Is it a bug, or intentional? Any way around it?
    Thanks,
    Chris

    Hi,
    I've seen this too. I think it is the bug related to displaying PS-files in 10.4.6
    see: http://www.completedigitalphotography.com/?p=422#more-422
    We can just hope 10.4.7 deals with it.
    cheers,
    ceffe

Maybe you are looking for

  • RFC - XI  Commit Fault error

    Hi All I have created an RFC (from R/3) that I am using to trigger a BPM in XI (3.0).  <b>RFC Destination - SM59</b> I have set up the RFC Destination in R/3 as follows: Connection Type = T Activation Type = Registration Program ID = zabfcxi GatewayH

  • Media card music wont play on phone

    I have downloaded some wma files onto a new, formatted media card but can't get them to play on the Blackberry 8800. The screen opens ok as for other audio files but no sound except for a quick little buzz. The files open and play on the computor. An

  • Execution time of a simple vi too long

    I'm working with LabVIEW 6.0.2 on a computer (AMD ~700MHz) under Windows 2000. The computer is connected to the instruments (eg Keithley 2400 Sourcemeter) via GPIB (NI PCI-GPIB Card). When trying to read the output of the K2400 with a very simple vi

  • Cannot install LAN driver on Satellite M100-221

    I reinstalled OS on my Satellite M100 - 221 PSMA0E. IT previously used Windows XP Home Edition, and now I installed Windows XP Professional SP2. I have an error in my DEVICE MANAGER with ethernet controller, mass storage controller,SM bus controller.

  • I have downloaded Flash 10 times, Safari apparently cannot see it.  I cannot view videos on facebook

    According to Adobe it's installed. But it's not installed according to any video i try to view. I have no idea what to do now.  I'm in a class and need to view the videos. Any help for this nonsense? Thank you.