Styling rules in Javascript

I am working with ThemBasedFOIs that contains different types of geometries. When I want to display points as markers and polygons as colored shapes so I need to define a complex styling.
On the one hand I have a javascript theme query:
var baseQuery = "SELECT value,annotation as label  FROM " + value;
var theme = "<map_request><themes><theme name='JDBC_THEME'>"
+ "<jdbc_query asis='true' spatial_column='value' jdbc_srid='8307' label_column='label' "
+ "render_style='colorScheme' datasource='DSTest'>" + baseQuery
+ "</jdbc_query></theme></themes></map_request>";
buffertheme = new MVThemeBasedFOI('buffertheme1', theme);
buffertheme.addStyle(sc1);
Where sc1 contains the render style 'colorScheme'. But I need 2 render styles one for the polygons and the other one for the points.
On the other hand I have a styling rules:
<?xml version="1.0" standalone="yes"?>
<styling_rules key_column="ID" table_alias="t">
    <rule>
        <features style="M.POINTSTYLE"> t.geom_31466.get_gtype() = 1 </features>
  </rule>
    <rule>
        <features style="M.POLYGONSTYLE"> t.geom_31466.get_gtype() = 3 </features>
  </rule>
</styling_rules>
How can I add the styling_rules in the theme query instead using the render_style param? And anyone can my explain why is used 'geom_31466' to get the gtype?
Thanks in advance.

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

Similar Messages

  • HOW can I apply the styling rules?

    now I use the styling ruls that defined in styles of database,but it not affect my map effect!why?
    thank you very much!

    Did you read the performance section in the new mapviewer FAQ? It is located in the otn mapviewer home page:
    http://otn.oracle.com/products/mapviewer
    In addition, there is performance white paper on Spatial's home page:
    http://otn.oracle.com/products/spatial.
    lj

  • Styling rule question in mapbuilder

    To define query in Styling Rules, can I join spatila data table with another non-spatial data table by non-spatial column? If yes, can you give me any link?
    Thanks

    Forgot to mention if you use a view, you need to
    - add geometry metadata for the view and
    - make sure your non-spatial table has a unique constraint so they are key-preserved tables
    (rows from the base tables will appear at most once in your view) or mapbuilder cannot select rowids from the view and you will
    see
    ORA-01445: cannot select ROWID from, or sample, a join view without a
    key-preserved table
    your spatial table my_geom
    (id number , geom sdo_geometry)
    your non-spatial table my_data
    (id number not null,
    constraint u_id  unique(id))
    -- view to create your theme(styling rules)
    create my_geom_view
    as select a.id. a.geom from my_geom a, my_data b
    where a.id = b.id;
    jack

  • Feature request for Mapviewer for styling rules in predefined themes

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

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

  • Styling Rules, can anyone explain to me why this will not work?

    I am creating a Custom Theme, for some reason Mapviewer generates the first two rules of this and then ignore the last two rules. It does not matter if the 2nd rules is any of the last 3, it will generate the markers associates with the query, but after it does that it ignore the last two styles. In the code below, the state labels all work fine. M.Green is displayed but not M.Amber or M.Red, if I was to put M.Red or M.Amber in the place of M.Green it will only display that style. So I know the queries are correct. I their some sort of limit on the amount of Rules I can have? In the MapDef tool it all looks correct but I can't edit the queries as I reach the character limit of the tool so I have to do this in SQL.
    INSERT INTO user_sdo_themes VALUES(
    'FORSCOM',
    'FORSCOM Sites',
    'MAP_DATA',
    'MAP_LOC_DATA',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules asis="true">
    <rule>
    <features style="RESOURCES:C.SEQ6_02" ASIS="TRUE"> (US_ID IN(''AR'',''AZ'',''CA'',''LA'',''NM'',''NV'',''OK'',''TX'',''AL'',''FL'',''GA'',''KY'',''MS'',''NC'',''PR'',''SC'',''TN'',''MA'',''ME'',''NH'',''MD'',''RI'',''CT'',''NY'',''PA'',''DC'',''WV'',''DE'',''NJ'',''VA'',''VT'',''CO'',''IA'',''ID'',''IL'',''IN'',''KS'',''MI'',''MN'',''MO'',''MT'',''ND'',''NE'',''OH'',''OR'',''SD'',''UT'',''WA'',''WY'',''WI''))</features>
    <label column="US_ID" style="RESOURCES:T.STATE NAME">1</label>
    </rule>
    <rule>
    <features style="RESOURCES:M.GREEN" asis="true">
    SELECT location,
    map_loc_data
    FROM resources.map_data ml
    WHERE ml.location_id IN (SELECT d_loc_id
    FROM cii.devices
    WHERE d_loc_id IN (SELECT DISTINCT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = ''FORSCOM''))
    </features>
    </rule>
    <rule>
    <features style="RESOURCES:M.RED">
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,2,'Red') status,
    et_type type,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (2)
    AND d.d_loc_id IN (SELECT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = 'FORSCOM')
    </features>
    </rule>
    <rule>
    <features style="RESOURCES:M.AMBER">
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,1,''Amber'') status,
    et_type type,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (1)
    AND d.d_loc_id IN (SELECT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = ''FORSCOM'')
    </features>
    </rule>
    </styling_rules>');

    Hi LJ,
    I should have all this figured out. I have created my advanced theme, and it seems to be working fine. The problem I am running into is when I try and get the data for my mouseover infotip window the Mapviewer is failing saying that the decription string I am trying to display in my infotip window is failing whenever it is trying to display any text string:
    05/05/05 11:14:27 Thu May 05 11:14:27 GMT-07:00 2005 ERROR [oracle.lbs.mapserver.core.RealWorker] java.lang.NumberFormatException: For input string: "DEVENS RESERVE FORCES TRAINING AREA"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1207)
    at java.lang.Double.valueOf(Double.java:202)
    My query is as follows:
    INSERT INTO user_sdo_themes VALUES(
    'FORSCOM',
    'All Forscom',
    'ALL_MAP_LOCATIONS',
    'MAP_LOC_DATA',
    <?xml version="1.0" standalone="yes"?>
    <styling_rules >
    <rule >
    <features style="RESOURCES:A.STATUS">
         SELECT md.map_loc_data, me.LOCATION, me.DEVICE, me.STATUS, me.TYPE, me.DOWN, me.ETR, me.TITLE, cl.location_id
         FROM resources.MAP_LOCATION_EVENTS_VIEW me, resources.MAP_DATA md, command_locations_view cl
    WHERE cl.location_id = md.location_id AND md.location = me.location(+) AND acronym = 'FORSCOM'
    </features>
    </rule>
    </styling_rules>');
    If I just have the following SQL this works fine and the infotip window will show me the status of the locations, but of course I need to have the descrition, and title, etc.. Any strings that are called seem to fail.
    SELECT cl.location,
    md.map_loc_data,
    cl.status
    FROM command_locations_view cl,
    map_data md,
    map_location_events_view mle
    WHERE cl.location_id = md.location_id
    AND md.location = mle.location(+)
    AND acronym = 'FORSCOM'
    My 2 views are as follows:
    SELECT cl.location,
    md.map_loc_data,
    cl.status
    FROM command_locations_view cl,
    map_data md,
    map_location_events_view mle
    WHERE cl.location_id = md.location_id
    AND md.location = mle.location(+)
    AND acronym = 'FORSCOM'
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,1,'Amber',
    2,'Red') status,
    et_type type,
    ev_short_desc title,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (1,2)
    Any ideas??
    Thanks!!!

  • How To Use a css File To Watermark A Report

    Hello.
    I am using Apex 4.0.1 and have a need to place a watermark (that is, a background image) over a report, both a "classic" type and Interactive Report.
    I have two questions about this.
    1) I've searched this Forum and found several good questions/responses about this subject. What I think is the most maintainable solution is to create a .css file and reference this file within the Template section of a copy of, say, the "Reports Region" template used by my application theme. And so, I made a copy of the "Reports Region" template and called it "Watermark Reports Region". I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    I uploaded this css file via the Apex "Shared Components -> Cascading Style Sheets" option. I also made sure that menu_bug.png is, in fact, among my workspace images.
    I also made sure that my "Watermark Reports Region" template contains the substitution variable "REGION_STATIC_ID" and that my actual report region has a value in the Region Static Id field.
    Within my "Watermark Reports Region" template, I tried to reference my .css file. This is where I think my problem is.
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    So, how does one reference this css file within the template?
    =================================================
    2) I tried using my css tags as an internal style by placing it within the "HTML Header" section of my application page. I used:
    <style type="text/css">
    #empreport {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    </style>
    I assigned a div tag to my report region header and footer that looks like:
    In Header: <div id="empreport">
    In Footer: </div>
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.
    Thank you all for any help/advice/code example.
    Elie

    Elie
    Thanks for taking the time to post sufficient information to understand the problem. In future if you're going to such efforts you might want to use them to reproduce the problem on apex.oracle.com, which means you can share actual working (or more likely not working!) code. Please also always wrap code posted on the forum in tags<tt>\...\</tt> tags to preserve formatting and special characters.
    >
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    >
    According to the relevant HTML 4.01 and XHTML 1.x standards, <tt>style</tt> and <tt>link rel="stylesheet"</tt> elements should only appear within the <tt>head</tt> element of a document.
    This changes in HTML5. The new <tt>scoped</tt> attribute allows <tt>style</tt> to be used in a prescribed way elsewhere in the document, with the effect that the styling rules specified are only to be applied to the other descendant elements of that <tt>style</tt> element's parent (in the way you're trying to do here). I'd expect <tt>link</tt> with a <tt>rel="stylesheet"</tt> to remain restricted to <tt>head</tt> content in HTML5: off the top of my head I can't see a use case for referencing external stylesheets in a non-metadata context.
    That said, current browsers apply CSS regardless of where in the document it appears, and future HTML5-compliant ones will continue to continue to do so for backwards compatibility. For myself, when using XHTML 1.0 I'll continue to follow the only put <tt>style</tt> and <tt>link</tt> elements in the page <tt>head</tt>. When I get round to using HTML5 for real I'll follow the standards for that as well.
    I strongly recommend that you follow the standards and only put <tt>link rel="stylesheet"</tt> elements in the page <tt>head</tt>.
    >
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    >
    Use <tt>!important</tt> only where it's actually needed. It's over-represented in this forum because Oracle changed the order of style sheet inclusion in APEX 4.0 and made it more difficult to override theme styles using CSS in the page HTML Header without modifying page templates.
    Try your styles initially without using <tt>!important</tt>, and also consider using the cascade to provide any necessary overrides by including your CSS after other style sheets.
    >
    I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    >
    Because <tt>#WORKSPACE_IMAGES#</tt> is not substituted in external CSS files: +{thread:id=986329}+
    If possible it's much better to locate image, CSS and JavaScript files externally on the file system. Otherwise you'll have to use the workaround suggested in that thread and include a <tt>style</tt> element in the page templates to specify the background image.
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.Reports are descendants of their region containers and may be subject to additional built-in or theme styles that overrides that specified for the region. Your CSS selector has to specify the report element, not the entire region.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.I'd use a <tt>class</tt> attribute in the region template: this removes the need to use the <tt>#REGION_STATIC_ID#</tt> selector, and allows the CSS to go in the page <tt>head</tt> where it belongs. Add <tt>watermark-report-region</tt> in addition to any existing <tt>class</tt> values in the region template:
    <div class="borderless-region watermark-report-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="bl-body">#BODY#</div>
    </div>You may have to inspect the page source (use a web inspector like that found in Safari, or the Firefox+Firebug combo) to figure out what has to be overridden in the theme/templates you're using. This worked for an Interactive Report using theme 17:
    .watermark-report-region .apexir_WORKSHEET_DATA {
      background: #fff url(/i/menu/blank_app_32.gif);
    .watermark-report-region .apexir_WORKSHEET_DATA tr.even td,
    .watermark-report-region .apexir_WORKSHEET_DATA tr.odd td {
      background-color: transparent;
    }For a standard report you'll need to identify the selector required for the actual report element (equivalent to the <tt>apexir_WORKSHEET_DATA</tt> table) using the web inspector or from the report template. It would be a good idea to create standard report template(s) incorporating a <tt>watermark-report</tt> class on the report table to provide a simple selector for such reports.

  • How To Clear Mapviewer Tile Cache

    I am running a standalone version of Mapviewer using Weblogic Server.
    Weblogic and Mapviewer are running on a linux server with CentOS 5.8 64bit.
    - MapViewer Version: Ver11_1_1_7_1_B130516
    - Weblogic Server 10.3.6
    I am using Mapbuilder installed on a Win7 64bit client.
    - Mapbuilder Build: Ver11_1_1_7_1_B130516
    My datasource is an Oracle 11.2.0.3 database running on a linux server with CentOS 5.8 64bit.
    I am using the new HTML5 JavaScript mapping API to render my map.  I am using any one of the following browsers:
    IE10 (v10.0.9200.16635)
    Firefox (v23.0)
    Chrome (v28.0.1500.95 m
    I have created the following Mapbuilder objects:
    Geometry Theme: SRA_SUITE304_F1_ROOM
    - for the label styling rules, I have set the Label Function = 1, so that labels will be displayed for the objects
    Base Map: SRA_ALL
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
          <theme name="SRA_SUITE304_F1_ROOM"/>
      </map_definition>
    Tile Layer: SRA_ALL
    <map_tile_layer name="SRA_ALL" image_format="PNG" http_header_expires="168.0" concurrent_fetching_threads="3">
         <internal_map_source data_source="ICLOGIT1" base_map="SRA_ALL" bgcolor="#ccccff"/>
         <coordinate_system srid="4326" minX="-74.54" minY="39.407" maxX="-74.53" maxY="39.41"/>
         <tile_image width="256" height="256"/>
         <zoom_levels levels="10" min_scale="100.0" max_scale="1600.0" min_tile_width="6.097560975612876E-5" min_tile_height="9.090909090913742E-4">
              <zoom_level level="0" name="level0" description="" scale="1600.0" tile_width="9.090909090913742E-4" tile_height="9.090909090913742E-4"/>
              <zoom_level level="1" name="level1" description="" scale="1175.0" tile_width="7.142857142860797E-4" tile_height="7.142857142860797E-4"/>
              <zoom_level level="2" name="level2" description="" scale="864.0" tile_width="5.263157894739535E-4" tile_height="5.263157894739535E-4"/>
              <zoom_level level="3" name="level3" description="" scale="634.0" tile_width="3.846153846155814E-4" tile_height="3.846153846155814E-4"/>
              <zoom_level level="4" name="level4" description="" scale="466.0" tile_width="2.7777777777791986E-4" tile_height="2.7777777777791986E-4"/>
              <zoom_level level="5" name="level5" description="" scale="342.0" tile_width="2.0833333333343992E-4" tile_height="2.0833333333343992E-4"/>
              <zoom_level level="6" name="level6" description="" scale="251.0" tile_width="1.5151515151522904E-4" tile_height="1.5151515151522904E-4"/>
              <zoom_level level="7" name="level7" description="" scale="185.0" tile_width="1.1235955056185523E-4" tile_height="1.1235955056185523E-4"/>
              <zoom_level level="8" name="level8" description="" scale="136.0" tile_width="8.264462809921583E-5" tile_height="8.264462809921583E-5"/>
              <zoom_level level="9" name="level9" description="" scale="100.0" tile_width="6.097560975612876E-5" tile_height="6.097560975612876E-5"/>
       </zoom_levels>
    </map_tile_layer>
    I am using the following HTML to display the map using the Tile Layer SRA_ALL:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>SRA2 - Map 01 - 10 Zoom Levels</title>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <script type='text/javascript' src='http://xxxx.xxxx.com:7002/mapviewer/jslib/v2/oraclemapsv2.js'></script>
    <style type= 'text/css '>body {cursor:default;}</style>
    <script language="JavaScript" type="text/javascript">
    var baseURL="http://xxxx.xxxx.com:7002/mapviewer";  // location of mapviewer
        function showMap()
            var map = new OM.Map(
            document.getElementById('map'),
                mapviewerURL:baseURL
            var tileLayer2 = new OM.layer.TileLayer(
            "SRA_ALL",
                dataSource:"xxxx",
                tileLayer:"SRA_ALL"
            map.addLayer(tileLayer2) ;
            map.addScaleBar() ;
            map.addNavigationPanelBar() ;
            map.setMapCenter(new OM.geometry.Point(-74.537446,39.409008,4326) );
            map.setMapZoomLevel(3) ;
            map.init() ;
    </script>
    </head>
    <body onload="javascript:showMap()">
        <DIV id=map style="width:99%;height:99%"></DIV>
    </body>
    </html>
    This produces a correctly rendered map in my browsers, which displays the labels I expect.
    Next, I changed the Labeling Function on my Geometry Theme: SRA_SUITE304_F1_ROOM, setting it to -1, so that object labels would not be displayed.
    In Mapbuilder, I can preview the geometry theme, and it shows that no labels are displayed.
    Still in Mapbuilder, I can preview the base map that the geometry theme is assigned to, and the basemap also shows that no labels are displayed for that theme.
    I saved all my changes in Mapbuilder.
    However, when I view my map (using the same HTML code) in the browser, the map still shows the labels.
    I have tried all of the following:
    1) purging the geometry cache for the affected map datasource using the MapViewer Administration Console
    2) purging the browser cache
    3) restarting the mapviewer server
    4) restarting the entire supporting weblogic server
    None of these actions cause the map viewed in my browser to be updated to show the map without labels.
    Note: If I create a new Tile Layer using the same base map, my changes are visible in the browser map.
    What am I missing here?
    What cache do I need to clear so that my map is displayed correctly in my browser after I make changes to the underlying Mapbuilder objects?
    Thanks in advance for your help.

    Thanks.  That was the last key to the puzzle.
    Here are the steps I now follow to ensure that changes made to underlying MapBuilder objects are visible in the browser.
    Perform the following steps:
    1) Modify the object (style, theme, base map, tile layer) in MapBuilder, and save all changes.
    2) Using MapViewer Administration Console, Purge Cached Metadata for each affected datasource.
    3) On the MapViewer server, clear the Map Cache directory.  The location of the Map Cache directory is specified in the mapViewerConfig.xml file under the section "Map Cache Server Setting".
    e.g.
    cd <map cache dir>
    rm -rf *
    4) Clear the browser cache and temp files for the browser you are using (e.g. IE, Firefox, Chrome).  If you think you are not clearing the cache completely, then use the appropriate "private browsing" feature of the browser to view the map.  You should then be able to see the changes made to the map in the browser.

  • Templated predefined theme and JavaBean MapViewer API

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

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

  • Text orientation and Text size

    Gurus,
    I have been beating my brains out to find a way to orient labels on map and also be able to control their size with different zoom levels, but with little success.
    I have Master map spatial data stored in our database. I am taking advantage of the Oracle Maps Javascript APIs on the build "Ver1033p5_B081010".
    Here is what I am upto:
    1. Created a GEOMETRY THEME "AREA" to display the topological area.
    2. Created another GEOMETRY THEME "Road Names" to display the road/street names. The Styling rule used for the "Label Style" has the "Smart path following" property enabled.
    3. Created a BASE MAP out of these two themes and have defined the scale at which the "Road Names" needs to be displayed.
    4. Created a TILE LAYER out of the base map.
    I run my web application and it displays the map correctly and the theme switches on/off exactly at the zoom level which I had defined. Things are slick, but i am not happy with couple of things.
    When the "Road Names" theme switches on, the labels do not do a "Smart path following" which I had hope to see happening out of the box.
    Also, the label size of the theme remains the same on every different zoom level which is a bit annoying.
    Could anyone please advise me on how to tackle these issues?
    Many thanks,
    Sumanth

    Did you find a solution?
    Thanks,
    Alberto

  • OBIEE 11g . Transparency of the color fill in Mapviewer

    Hi,
    How to set transparency level of the color fill in Mapviewer integrated with OBIEE 11g?
    Thank you for your time!
    Pavel

    Hi,
    Go into the styling rules of your map in MapBuilder and change the render style to a darker color, so when it is rendered over the map in OBIEE it becomes opaque.
    See if this helps you
    W.

  • Design view in DreamWeaver CS3 disabled for CSS & Java

    I currently use Adobe Dreamweaver CS3, and only some files have the option to view them in code AND in design view. This works for most files (HTML, PHP, etc). However, anytime I create a new CSS or Java file, the design view is disabled:
    I have already tried the two other solutions I've found in this forum.
    First I tried Preferences > File Types / Editors, and I deleted all of the file types in the "Open in Code View" menu (pictured below).
    I restarted DW, and it didn't work.
    Then I tried several steps to re-create the Configuration folder (which it did, but the problem remained) listed here: http://kb2.adobe.com/cps/401/kb401118.html.
    Still nothing. HTML, PHP, ASP and all other files have the Design View and Split View available, but CSS and Java do not. I would really like to use DW to start editing CSS, but do not know it well enough to write in code and therefore could really use that handy Design View so I can learn as I tweak it.
    Any help much appreciated - thanks!

    HTML, PHP, ASP and all other files have the Design View and Split View available, but CSS and Java do not.
    That's correct. That's as it should be.
    A CSS file contains a bunch of text only CSS rules. Javascript is text-only script. There's no layout to see for CSS and JS files in Design and Split View so they're disabled.
    Files with layout e.g. .htm, .php have Design View because they're web pages with a layout which can be viewed.
    I would really like to use DW to start editing CSS, but do not know it well enough to write in code and therefore could really use that handy Design View so I can learn as I tweak it.
    Open any .htm or .php (or other) web page and its associated CSS file.
    Then tweak the CSS either via Code View in the CSS file, or using the DW CSS Editor when viewing the .htm/.php file, and see the formatting changes applied in Design View in the .htm (or .php) file.
    Do not rely on DW's Design View as an absolute reference for pixel perfect accuracy. It will always be an approximation only to assist visually oriented web designers while editing.
    Always test all CSS rules and edits in a range of browsers. Browser support for CSS rules and effects varies. Not all browsers support everything on offer in CSS1, CSS2 and CSS3.

  • Using WE to display a custom box

    I have a report that I want the user to be able to sort or filter by clicking on a col header. When the user clicks on a col header, I want a small box to appear just below the col header with radio buttons to choose Asc or Desc and a drop-down list to choose a value to filter the col on.  I worked out the javascript for this in a text editor and it works (and I thought it was pretty cool). I've converted the javascript to Crystal Reports syntax and created some Webelements functions:
    This first one sets up the styles and js functions -
    // WEsortfilter
    // Add options to sort A/D and to filter on columne clicked
    // Pass in string of values from main rpt and sort ASC
    // When col header is clicked - display form with radio buttons and drop
    //      down list of values.
    //When sort is selected or member of list execute sort/filter.
    Function ()         
    '<STYLE type="text/css">'
    + '.Test{border-style:solid;border-width:1px;border-color:navy;'
    + 'position:absolute; z-index:66; background-color:lightblue;width:6cm;'
    + 'height:.83cm;padding-left:10px;padding-top:5px;font-family:Verdana;font-size:9pt;}'
    + '.sortlink{font-size:10;font-family:Verdana;color:blue;}'
    + '</STYLE>'
    //End of styles
    //Javascript  to call sort/filter box
    + '<SCRIPT LANGUAGE="JavaScript">'
    + 'function displaySortFilter(myid){'
    + 'var topObj=document.getElementById(myid).offsetTop;'
    + 'var leftObj=document.getElementById(myid).offsetLeft;'
    + 'var cdObj=document.getElementById("Test").style;'
    + 'cdObj.display="";'
    + 'cdObj.left=leftObj;'
    + 'cdObj.top=topObj+26;'
    + '}</SCRIPT>'   //End of function
    + '<form name="sortfilter">'
    + '<div ID="Test" NAME="Test" class="Test"'
    + 'STYLE="display:none">'
    + '<div id="divradio" STYLE="position:absolute">
    + '<input type=radio name=radio ID=radio value="asc">'
    + '<Span>ASC</Span>'
    + '<input type=radio name=radio ID=radio value="desc">'
    + '<Span>DESC</Span>'
    + '<SELECT NAME="filteroptions" ID="filteroptions" >'
    + '<OPTION VALUE="0" selected>Choose One<BR>'
    + '<OPTION Value="00">First<BR>'
    + '</SELECT>'+ '</div></div></form>'
    The second function creates a link for the user to click:
    //WEcallSortFilter
    Function ()
    '<A Style="text-decoration:underline" ID="sbu" class="sortlink" href="" onClick="'
    + 'displaySortFilter(this.id);return false">SBU</A>'
    The third one adds the style and js functionality to the report:
    //Display sortfilter custom function
    WhilePrintingRecords;
    WEsortfilter
    The last one adds the link to the report for the user
    //Call sortfilter custom function
    WhilePrintingRecords;
    WEcallSortFilter
    When I run this in the report through Infoview, the box pops up, however,
    1)     it doesn't show up right under the link clicked, but in the location where it was placed in Crystal Reports design view. It shows up like a static object instead of at the location clicked.
    2)     When the box displays, it is transparent. The other text on the rpt shows right through the box. I've tried changing the z-index to no avail. And no, making the box a solid color doesn't make it opaque. The other text showing through makes it difficult to click on any of the radio buttons.
    All this is beyond the WE examples, but I''ve to kick it up  a level (or three) to get this project done.
    Thanks

    hey, ran some tests on your scenario. to answer your questions...
    1) all of the functions are designed so that you don't have to make copies of them...all controls should be aok with being on a report more than once, as long as the element names are different...the ones that create on-click functionality (such as the collapsible section) require a different name for each control or you'll run into problems...the last iteration of the control on the report will be the only one that (sort of) works.
    that being said, i created 2 formulae and ran your code without any issues with a duplicate of the function.
    the only things that should cause something like this is
    (a) a control name starting with a number or containing certain non alpha-numeric characters...they follow the same rules as javascript...unfortunately this little tip was not in the user guide even though it was on the list (my fault, sorry) or
    (b) two control names that are the same or
    (c) a duplicate of the same formula on the report.
    2) another little tip that seemed to not make it into the user guide is to follow the same ordering principles on a report that you would with normal layering when designing a crystal report...i.e. right-click on objects in the designer and choose Format, then use the Move object action to bring the objects to the front.
    note that if there is a select menu below these controls you will not be able to have the collapsible section (or any other control) cover that select menu up...this is a known issue in internet explorer and there is no workaround for that one.
    hope that this helps,
    jw

  • Hyperlink text colour styles won't apply in master page

    Hello,
    I've applied hyperlinks and changed the link styles with ease in all of the content pages.  However, I'm unable to change anything on the master page.
    All of the hyperlinks work - I am able to link to the content pages/emails - but none of the edit link styles will apply. 
    But it's a bit wonky, I have had it apply, but completely randomly and only on 1 menu item.
    I designed the menu from scratch, without the use of a widget.  I thought maybe it was that, so I made a widget menu, and I can't get it to apply any edit link styles as well.
    All I want is a simple rollover where the text changes to a different colour.  This should be easy!
    Please help if you can, it's driving me bonkers!
    Thanks.
    Matthew

    maceyah wrote:
    @fac586 - Would adding the CSS to page0 to make it's effect global be frowned upon?I'd certainly frown upon it. According to the relevant HTML 4.01 and XHTML 1.x standards, <tt>style</tt> and <tt>link rel="stylesheet"</tt> elements should only appear within the <tt>head</tt> element of a document.
    IN HTML5 the new <tt>scoped</tt> attribute allows <tt>style</tt> to be used in a prescribed way elsewhere in the document, with the effect that the styling rules specified are only to be applied to the other descendant elements of that <tt>style</tt> element's parent. No browsers yet support this feature.
    Current browsers apply CSS from <tt>style</tt> elements globally, regardless of where in the document it appears, and future HTML5-compliant ones will continue to do so for backwards compatibility.
    As a standards-based developer I follow the specs and only put <tt>style</tt> and <tt>link</tt> elements in the page <tt>head</tt>. When browsers get round to supporting the <tt>scoped</tt> attribute I'll follow the standards for that as well if it's necessary to use it.
    In APEX, Page 0 doesn't provide any normal means to create <tt>style</tt> elements in the <tt>head</tt> of the document so as to conform with the specs.
    Why bother following the standards if the browser is going to apply styling irrespective of whether <tt>style</tt> elements conform or not? Mainly to provide a better user experience. Rendering a document that contains stylesheets in the body causes flickering and jumping of content as the browser re-renders already visible content affected by CSS rules found later in the document.

  • About label Oracle Map Builder

    Hello! I have a question about Oracle Map Builder.
    There are three layers in basemap: the first - a polyline, the second - a point, and the third - a polygon with a solid color (top). Labels are included to the first two signatures. While viewing the map shows a third (polygon) layer, and the signature of the first two.
    Question: Is there a possibility to remove the appearance of signatures of the lower layers (disabling signatures by minimum scale for display is not suitable, as they are used outside of polygon layer), and how to do it?
    Thank you!

    I'm not sure I understand the question. Here's is my assumption of what the question is.
    You have three layers in a basemap : a polyline, a point, and a polygon in that order. That is polyline rendered first, points on top of it, and then the color-filled polygon layer on top of those two.
    The part I don't understand is what you mean by signatures of the polyline and point layers.
    Anyway, if the solid color-filled polygon layer is rendered last (i.e. on top) then the other two layers should not be visible at all unless their extent (the area they cover) differs from the extent for the polygon layer or the polygon layer does not completely cover the map extent or it's not a solid color fill but one with some transparency setting.
    Scale ranges can be applied to each layer when adding them to a basemap in MapBuilder. Choose the scale mode (e.g. ratio) and set the max and min scale values for each layer. e.g.
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
    <theme name="STATES_DENSITY" min_scale="Infinity" max_scale="2.5E7" scale_mode="RATIO"/>
    <theme name="COUNTY_POPDENSITY" min_scale="2.5E7" max_scale="0.0" scale_mode="RATIO"/>
    <theme name="HIGHWAYS_LINE"/>
    <theme name="CITIES" min_scale="1000000.0" max_scale="1000.0" scale_mode="RATIO"/>
    </map_definition>
    The above says render the states_density layer while zoomed out to the full extent and up until the user zooms in to a 1:250,000,000 scale. When zoomed in further do not render/display the states population density layer. Display the county population density instead. Always display the highways. And start to display cities when the map in zoomed to 1:1,000,000 and up until 1:1,000 scale.
    If you want to set the labeling scale ranges on a per layer (theme) basis then set it using the Other Properties panel in Map Builder. For the Cities layer above the styling rule with label scale ranges set is:
    <styling_rules>
    <scale_ranges>
    <mode> RATIO </mode>
    <min_labeling_scale> 1.0E8 </min_labeling_scale>
    <max_labeling_scale> 10000.0 </max_labeling_scale>
    </scale_ranges>
    <rule>
    <features style="M.ALL_CITY_L1_8X8"> (POP90 &gt; 1000000) </features>
    <label column="CITY" style="T.S03_CITIES_L1"> 1 </label>
    </rule>
    </styling_rules>
    i.e. show city names from 1:100,000,000 till 1:10,000
    1/100,000,000 is a smaller number than 1/10,000
    Hope this helps.

  • Can't change iTunes display language back to english

    After upgrading to iOS 5 on iPad 2 ITunes and Apps are in French. Have tried to correct settings, keyboard language, etc but still can't correct. Have same problem on IPhone. Any suggestions thks

    I am unsure of where you have looked or have tried at this point. However, the following should be of help.
    Click on firefox in top left>options. in the options menu select the content tab, and locate the colors and fonts. Next, locate color dialog further explained below.
    '''Colors Dialog'''
    Text and Background: Here you can change the default text and background color to be used on web pages that haven't specified that information. Click on the color samples to select colors.
    Use system colors Check this option to use the colors defined in your operating system settings instead of the colors specified above.
    Link Colors: Here you can change the default colors for Web links. Click on the color samples to select colors.
    Underline links: By default, links are underlined on web pages. Uncheck this option to disable this. Note that many sites specify their own styling rules and this option has no effect on those sites.
    Allow pages to choose their own colors, instead of my selections above: By default, Firefox uses the colors specified by the web page author. Disabling this option will force all sites to use your default colors instead.
    See:
    [[Options window - Content panel]]
    '''If this answer solved your issue, please click 'solved' thanks'''

Maybe you are looking for