Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AIMS 2013 getSessionID API change?

1 REPLY 1
Reply
Message 1 of 2
gluckett
1353 Views, 1 Reply

AIMS 2013 getSessionID API change?

Ok I found a difference between AIMS 2012 and AIMS 2013

 

With 2012 you get the session id with Fusion like this:

 

 

 
	var mapWidget =Fusion.getWidgetById('Map');
   
 	var SESSION = mapWidget.getSessionID();
 	var MAPNAME = mapWidget.getMapName(); 

 

 
BUT with AIMS 2013 I have to do this:

 
	var mapWidget =Fusion.getWidgetById('Map').aMaps[0];
   
 	var SESSION = mapWidget.getSessionID();
 	var MAPNAME = mapWidget.getMapName(); 

 

 
So a lot of code changes and searches and replaces....
1 REPLY 1
Message 2 of 2
Daniel.Du
in reply to: gluckett

Yes, I notice getSessionID() is removed from  Fusion.Widget.Map of AIMS 2013. Thank you for raising this!

 

The code comment of AIMS 2012 saying :

 

getSessionID: function() {

        //TODO: what is the mapname in the case of multiple map layer objects?

        //just return baselayer session ID for now

        return this.aMaps[0].getSessionID();

},

 

so it seems that it was a temparary implementation is AIMS2012.  I am checking with development team for the exact reason of this change. I will update this thread when I get a response.

 



Daniel Du
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report