JDBC theme - dynamic advanced style

Hi
I'm using dynamic JDBC theme's from within javascript. For instance :
themebasedfoi=new MVThemeBasedFOI("XX","<themes><theme name='XX'><jdbc_query asis='true' spatial_column='GEOLOC' jdbc_srid='82343' render_style='DK_VALUE' datasource='PHV_MAP'>"+aip_sql+"</jdbc_query></theme></themes>");
that works nicely.
Now I want to be able to build the advanced bucket style on the fly instead of using a fixed advanced style(in the example DK_VALUE').
I can define the style as for instance:
vol_style="<style name='vol_style'><AdvancedStyle><BucketStyle><Buckets><RangedBucket seq='0' label='less than 100k' high='10000.0' style='C.RED_1'/><RangedBucket seq='1' label='100k - 150k' low='10000.0' high='15000.0' style='C.YEL_1'/><RangedBucket seq='2' label='150k - 250k' low='15000.0' high='20000.0' style='C.BLUE_1'/><RangedBucket seq='3' label='250k - 350k' low='20000.0' high='30000.0' style='C.GRE_1'/><RangedBucket seq='4' label='350k - 450k' low='30000.0' high='100000.0' style='C.GRE_2'/></Buckets></BucketStyle></AdvancedStyle></style>";
But how can I get the dynamic theme to use this dynamically created advanced style?
Jesper

With MapViewer 11 preview 1, you can define dynamic styles and use the dynamic styles in your jdbc themes. We provide classes such as MVStyleColor, MVStyleMarker, MVBucketStyle, MVBarCharStyle, MVPieCharStyle and the most generalized all, MVXMLStyle to define any MapViewer supported style.
Here is an example.
var dynStyle = new MVStyleColor("mycolor", "00FF00", "FF0000") ;
var themeDef =
'<theme name="mytheme" >' +
'<jdbc_query spatial_column="geometry" jdbc_srid="8307" ' +
'render_style="mycolor" datasource="mvdemo">'+
'select geometry from counties' +
'</jdbc_query></theme>' ;
var themeBasedFOI = new MVThemeBasedFOI('county_theme', themeDef);
themeBasedFOI.addStyle(dynStyle) ;
mapview.addThemeBasedFOI(themeBasedFOI);

Similar Messages

  • Complex predefined JDBC Theme with stacked styles ?

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

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

  • Advanced Styles with JDBC Themes

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

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

  • Dynamic thematic request - advanced style

    Hi,
    I'm using a dynamic theme to render a map using an advanced style. The values i'm rendering change from call to call - currently I am having to redefine the style every request (not ideal). I'm sure i've read somewhere that you can use an advanced style in your request but just change the high/low/buckets values.
    Please can someone help?!
    Thanks
    Steve H

    Yeah - I'm using that version (warm off the press!). I can define my styles fine - it's the "Low", "High" and "nBuckets" values of the style that I want to change at draw / request time. For example mapping population of different areas of the country means that my low and high values will change every map request - and I don't want to redefine the style (or create a new one) and clear the style cache on every request. I'm sure I read somewhere that one of the features of the new release was to be that you could change these values as part of the jdbc theme section of the request, but I can't find info on it anywhere!
    Thanks
    Steve

  • 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

  • Theme looking different before and after previewing an advanced style

    Hello,
    i have a problem with a theme looking different before and after previewing an advanced style in mapbuilder Ver11_1_1_5_B110527
    My style xml looks like this:
    <?xml version="1.0" ?>
    <AdvancedStyle>
        <CollectionStyle>
          <style name="color_style" shape="polygon"/>
          <style name="line_style"/>
      </CollectionStyle>
    </AdvancedStyle>It is a combination of a color style and a line style styles:
    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
        <desc/>
        <g class="color" style="fill:#B6D1CA">
            <rect width="50" height="50"/>
      </g>
    </svg>
    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
      <desc/>
      <g class="line" style="fill:#969696;stroke-width:2;stroke-linecap:BUTT">
        <line class="base"/>
      </g>
    </svg>The styles and theme are created using insert statements, and not the mapbuilder.
    When i take a look at the theme preview in mapbuilder, it will look like this: http://dl.dropbox.com/u/22117905/before_preview.PNG
    Now i open up the advanced style and hit the preview button.
    If i take another look at the theme preview, it will now look like this (and this is the desired output btw.): http://dl.dropbox.com/u/22117905/after_preview.PNG
    Now my question is, why does the same theme look different, after previewing the advanced style?
    I tried clearing the cached geometries and metadata cache of mapviewer, but that didn't help.
    Apart from previewing every style, what can i do to make sure that the themes are styled correctly?
    Thanks for help in advance,
    Dirk

    Hello Joao,
    i just found the error. It is in my pl/sql package where i create the styles.
    Mapbuilder showed the staly as in my first post, but that i created looks like this
    <?xml version="1.0" ?>
    <AdvancedStyle>
        <CollectionStyle>
          <style name="color_style" shape="polygon"/>
          <style name="line_style" shape="all"/>
      </CollectionStyle>
    </AdvancedStyle>Notice the "shape=all" attribute in line_style. Apperently Mapbuilder doesn't like it, if i set this in the style. After previewing or saving the style in mapbuilder, the sttribute is removed and the style is correct.
    I now edited my package and rerun it, and now the themes are displayed correctly.
    Regards,
    Dirk

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

  • Layering JDBC themes on an SVG without redrawing image

    Is there a way via Javascript or other means to add dynamic JDBC themes to an SVG, within a JSP, without having to refresh/redraw the page and subsequent SVG everytime? Thank you in advance...

    The only way to get Firefox to offer to save the SVG image would be to force a content type that Firefox doesn't recognize as supported natively.
    *Mason: https://addons.mozilla.org/firefox/addon/mason/

  • ThemeBasedFoi Not rendering with advanced style

    Hello,
    I have defined an advanced variable ranged bucket as:
    <?xml version="1.0" ?>
    <AdvancedStyle>
         <BucketStyle>
            <Buckets>
                <RangedBucket seq="0" label="Muito Pouco" low="0.0" high="19915.0" style="C.RED5" label_style="T.RIO"/>
                <RangedBucket seq="1" label="Pouco" low="19915.0" high="218128.12" style="C.RED4" label_style="T.RIO"/>
                <RangedBucket seq="2" label="Normal" low="218128.12" high="1992239.79" style="C.RED3" label_style="T.RIO"/>
                <RangedBucket seq="3" label="Muito" low="1992239.79" high="1.91553676E7" style="C.RED2" label_style="T.RIO"/>
                <RangedBucket seq="4" label="Elevado" low="1.91553676E7" high="1.1386E14" style="C.RED1" label_style="T.RIO"/>
        </Buckets>
       </BucketStyle>
    </AdvancedStyle>And the following theme, that makes use of the above style.
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
        <rule column="agg">
            <features style="V.VR_RED5">SELECT pk_instalacao, agg, geom
        FROM TABLE_I_GF_SQE </features>
      </rule>
    </styling_rules>When i render it in Oracle Maps all geometric elements are displayed in white color, not the color i specified in the advanced style.
    Any thoughts ...

    Hi J. Sharma, thank you for your response, sorry for my delay.
    This was just a test to see if i could specify, queries in the theme definition.
    I'm building a Spatial OLAP Server, and i need to define the themes dynamically, based on the spatial attributes, semantic attributes, and aggregated measures specified by the Spatial OLAP client.
    At the time i wrote my first post, i was realizing that mapviewer does not handle well the SDO_AGGR_UNION, so i decided to create a table with the result of a more complex query and render it with an advanced style.
    But the style failed, nevertheless i found a solution for the problem, as soon as i have some time i will post my results in the forum.

  • Load JDBC-Driver dynamically with JarClassLoader

    Hey!
    I have a problem loading JDBC drivers dynamically with a JarClassLoader:
    Code:
    public class URLLoaderTest {
      public static void main(String[] args) {
      try {
        URL[] urlList = {new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\mssqlserver.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msbase.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msutil.jar").toURL()};
        ClassLoader classLoader = new URLClassLoader(urlList);
        Class c = Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver",true,classLoader);
        Object d = c.newInstance();
        DriverManager.registerDriver((Driver)d);
        // DriverManager.getDrivers()    Enumeration is empty
        Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://Server:1433","test","test");
        DatabaseMetaData meta = conn.getMetaData();
        System.out.println("JDBC driver version is " + meta.getDriverVersion());
      catch (Exception e) {System.out.println(e.getMessage());}
    }Problem:
    Till the DriverManager registraton everything is ok.
    The registerDriver Method throws no exception but if I call DriverManager.getDrivers() after calling the registerDriver Method an empty Enumeration is returned.
    So the driver is not loaded and DriverManager.getConnection throws an Exception (no suitable driver).
    If I include the driver jars into the Classpath everything is running (but that isn't what I want to do).
    Is there a solution for this problem? Maybe it is possible to load the data into the AppClassLoader??!!
    Thanx in advance.

    Found a solution!
    For everyone who is interested:
    public class URLLoaderTest {
      public static void main(String[] args) {
      try {
        URL[] urlList = {new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\mssqlserver.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msbase.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msutil.jar").toURL()};
        ClassLoader classLoader = new URLClassLoader(urlList);
        Class c = Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver",true,classLoader);
        Object d = c.newInstance();
        Driver driver = (Driver)d;
        Properties prop = new Properties();
        prop.setProperty("user","test");
        prop.setProperty("password" ,"test");
        Connection conn = driver.connect("jdbc:microsoft:sqlserver://test:1433",prop);
        System.out.println("JDBC driver version is " + meta.getDriverVersion());
      catch (Exception e) {System.out.println(e.getMessage());}
    }

  • Problem Joining JDBC theme to XML NSDP file

    I've created a basic map of Germany with different layers for regions etc. I've then added a dynamic JDBC theme using the following code
    var baseQuery= "select geometry, name from world_sample.world_city_metropolis where iso_country_code = 'DEU'";
    var theme = "<themes><theme name='MY_JDBC_THEME' >" +
    "<jdbc_query spatial_column='geometry' jdbc_srid='8307' " +
    "render_style='C.RED' datasource='WORLD_SAMPLE'>" + baseQuery +
    "</jdbc_query></theme></themes>" ;
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi2',theme);
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    I've then tried to bind this theme to a small XML source using this code
    function setupNsdp(themebasedfoi)
    var nsdpInfo = new MVNSDP("defaultNSDP");
    nsdpInfo.setTheme("MY_JDBC_THEME");
    nsdpInfo.setKeyColumn("name");
    var xml_data = "<nsdp_xml>"+
    "<table>"+
         "<tr><th>name</th> <th>Revenue (M)</th></tr>"+
         "<tr><td>BERLIN</td> <td>120.0</td></tr>"+
    "</table>"+
    "</nsdp_xml>";
    var ps = new Object();
    ps["xml"] = xml_data;
    nsdpInfo.setParameters(ps);
    themebasedfoi.setNSDP(nsdpInfo);
    The problem is that when I click on the Berlin FOI on the map I get a pop up box that contains only the name of the city and not the Revenue Column which was defined in the XML sample.
    I think that the setNSDP method must be failing but I'm not sure how to debug this. I've read many different tutorials and I'm sure that I ahve followed them correctly but if anyone could provide any info that may help me debug or fix this problem then that would be much appreciated
    Thanks
    David

    I just upgraded to Mapviewer 11 preview and it has fixed this issue.

  • Advanced style rule (attribute) column can be a sql expr

    Just wondering if folks have used complex formulas or sql expressions for the rule column for an advanced style. If yes please post examples in response.
    The rule column used in an advanced style can be a sql expression. e.g. (TOTPOP/LANDSQMI) POPDENSITY to display a thematic map of population density instead of total population. The theme def would look like
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <rule column="(TOTPOP/LANDSQMI) POPDENSITY">
    <features style="V.POPPSQMI"> (landsqmi is not null AND
    landsqmi &gt; 0) </features>
    </rule>
    </styling_rules>
    In particular has anyone used CASE, DECODE, NTILE etc.?

    Try changing the following properties:
    autosubmit = true;
    immediate = true;
    Here is a link where the user uses a transient attribute for the rows in his table:
    Technology on my way...:): ADF 11g : CheckBox Demo (Select one checkbox in table, Select all/Deselect all)
    Hope that helps.
    Regards,
    Frederico.

  • Double attributes in info window with advanced style

    Hi,
    I have a MapViewer theme with an advanced style and several attributes to display. The attribute column to render the advanced style should be displayed in the info window, too.
    Its working so far but this attribute is displayed twice!
    I only have this problem with advanced styles.
    My MapViewer version: Ver1033p5_B081010
    Does anybody know this problem?
    Regards,
    Cord

    Hi Joao,
    my theme XML definition:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules key_column="SP_KEY">
    <hidden_info>
    <field column="SP_ROUTENR" name="Routennr"/>
    <field column="SP_STARTDATUM" name="Startdatum"/>
    <field column="SP_STARTZEIT" name="Startzeit"/>
    <field column="SP_ENDZEIT" name="Endzeit"/>
    <field column="SP_BC" name="Bordcomputer"/>
    <field column="SP_VEHICLE" name="Fahrzeug"/>
    <field column="*SP_MENGEINKG*" name="Menge (kg)"/>
    <field column="SP_KEY" name="SP_KEY"/>
    </hidden_info>
    <rule column="*SP_MENGEINKG*">
    <features style="V.FAHRTEN"> (SP_STARTDATUM = :1) AND
    (SP_STARTZEIT BETWEEN :2 AND :3) AND
    (SP_VEHICLE = :4) </features>
    <label column="SP_ROUTENR" style="T.TEXT"> 1 </label>
    </rule>
    </styling_rules>
    The column value "Menge (kg)" (node SP_MENGEINKG) is displayed twice.
    Cord

  • JDBC THEME-MAPVIEWER-05517 Request string is too long for Oracle Maps' non-

    hi,
    if I need a quite complex query to be added to dynamic JDBC theme I get this error:
    [MAPVIEWER-05517] Request string is too long for Oracle Maps' non-AJAX remoting.
    -why? I am using Oracle Maps JS API so it is AJAX remoting, or not?
    -what is the limit of a JDBC theme definition?
    regards,
    Brano

    hi,
    yes, having look at MVMapView.enableXMLHTTP(true) in doc explains a lot...
    thanks,
    Brano

  • How to change the master page and theme dynamically in sharepoint2013 anonymous site

    hi
    I have to change the master page and theme dynamically in sharepoint2013 anonymous site. i have to show one master page to authenticated user  another master page to anonymous user through code
    Srinivas

    Hi Srinivas,
    According to your description, my understanding is that you want to change the master page and theme dynamically based on the anonymous users or authenticated users.
    Per my knowledge, there is not an OOB way to change the master page and theme dynamically.
    SharePoint is based on Asp.net, as we know Asp.Net request processing is based on pipeline model, so we can delevlop a custom HttpModule to dynamic change the master page based on current logon user profile(using SP Object Model to get).
    Another solution could be to use the SecurityTrimmed control that injects the CSS depending on global user permissions, more information, please refer to
    it.
    Some similar posts for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/c2b2d0da-c752-4aea-9c2d-e31a5b1a2988/sharepoint-2010-dynamic-masterpage-based-on-userprofile-property
    http://johanleino.wordpress.com/2011/10/20/using-a-different-master-page-for-authenticated-users-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/21679/how-can-we-use-a-different-masterpage-for-annoymous-and-authenticated-users
    http://sivarajan.me/post/How-to-customize-the-SharePoint-2013-Master-Page-for-Anonymous-Users
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • [SOLVED] Self-hosted file syncing options?

    Relevant previous threads and/or posts: * https://bbs.archlinux.org/viewtopic.php?id=172887 * https://bbs.archlinux.org/viewtopic.php … 3#p1478523 I think this is where this would go (other likely sections include "Applications & Desktop Environments

  • File download - file name with spaces

    I use the resp.setHeader("Content-disposition", "attachment; filename="+filename) method. it works. However, when the file name contains spaces the dowloaded file's name is only the part of the string up to the space, nothing more. Is there a way to

  • Media Browser thumbnails

    When can we get thumbnail previews inside the media browser? It functions in premiere but not ae. Why? I'm on CC 2014

  • Adobe Reader for W98 pc

    My current version (Acrobat Reader 4.0)frequently encounters errors in loading pdf files. Is there a later version for a W98 pc that I can download? Thanks.

  • Port forward stopped working after update

    i updated my software and the port forward stopped working and it will no longer allow access to my ip camera.