ThinkGeo.com    |     Documentation    |     Premium Support

Path of Theme folder

How can you change the location of the 'Theme' folder


I want to have everything under my own folder called 'blabla'


eg. c:/web/thinkgeo/blabla


but Mapsuite always create the theme folder under


c:/web/thinkgeo


Sometimes, this is a problem.


Thanks!



Thanks for the post! 
  
 We currently don’t expose the API to control this path, however we think it’s a good idea and have put it on our list for future enhancements. 
  
 Thanks!

Can this change be provided in the next beta ? 
  
 or not. 
  
 Please tell me how to modify using the javascript code. 
  
 Thanks!

Thanks for the post!


For now with following javascript code, you can customize your theme path.


-------------------------------------------------------------------------------


< head runat="server" >

    < script language="javascript" >

        function onMapCreating(map) {

            map.setOptions({ theme: "style.css" });

            OpenLayers.ImgPath = "NewThemeFolder/default/img/";

        }

    < /script >

< /head >


-------------------------------------------------------------------------------


 Notes:


1, With overriding the OnMapCreating(map) method, map will use the customized theme path, use "NewThemeFolder" in this case.


2, Do please set the theme and ImgPath under the same folder. This is a limitation and we will work on it.


I'm not quite sure when but in the future, we will provide some better ways to set the theme path. 


Please let me know if you have any questions.



Sorry for resurrecting such an old thread, but I couldn't find any other posts regarding the theme path.  Is this method still the only way to change the theme path, or has an additional interface been added since this post was made?



Iain, 
  
 I guess the method Ben has mentioned in the last post is the best way we can provide to users to set the Theme and the Image folder. 
  
 Also you can set the theme using the link tag on the aspx source page like our installed web edition samples. 
  
 Thanks, 
  
 Khali