Display full version of the post: Changing the logo in Floor plan application

ThuthikaS
22.02.2011, 12:02
Hi,
 
  Im working on Floor plans application which is my organization Inhouse project. My task is to replace the old logo with new one.But the problem is i couldnt able to make out the path of the old logo in order to replace with new one.
 
I have a server on which Autodeskmap guide is installed. i suppose my code is reading the logo from the above mentioned server but couldnt able to exactly pin point the location.
 
The following is the code snippet of my application :
 
The following is the function of javascript file:
 

function drawMap()
{
var map=getMap();
setup= map.getRedlineSetup();
map.enablePrintingEvents();
var ext= map.getMapExtent(true, true);
var mnX=ext.getMinX();
var mxX=ext.getMaxX();
var mnY=ext.getMinY();
var mxY=ext.getMaxY();
minX=mnX;
maxX=mxX;
minY=mnY;
maxY=mxY;
map.setAutoRefresh(false);
addAnnotationLayer();
layer=map.getMapLayer("box")
if (layer==null)
{
layer=map.createLayer("redline","box");
layer.setSelectability(false)
layer.setPriority(99.9)

}
if(borderOff!=1)
{
var coverLayer=map.getMapLayer("cover")
if(!coverLayer)
{
coverLayer=map.createLayer("redline","cover")
coverLayer.setSelectability(false)
coverLayer.setPriority(99.8)
}

createSquare(coverLayer,"coverbox",1,1,"solid",1,mxX-boxXOff,mxX-titleOff,mnY+titleOff,mxY-titleOff)

var sym=setup.getSymbolAttr();
sym.setSymbol("inhouse_logo")
var scalefactor=map.getMCSScaleFactor();
sym.setHeight(logoHeight*scalefactor,"M")
sym.setWidth(logoWidth*scalefactor,"M")
var logoInsert=map.createObject("MGPoint")
logoInsert.setX(mxX-logoInsertXOff)
logoInsert.setY(mxY-logoInsertYOff)
key="inhouse_logo"

logo=layer.getMapObject(key)
if(logo==null)
{
logo=layer.createMapObject(key,"inhouse_logo","")
logo.addSymbolPrimitive(logoInsert,true)
}
 
}
 
I've highlighted the logo reading portion in the above code , i need to replace the old logo with the new one.
 
Any ideas/solutions regarding the would be appreciated.
 
Thanks in Advace
Shivakumar