11-27-2017 06:32 AM
I browse an html page using an action defined in GMSC administrator.
Is it possible to interact with GMSC from js embeded in the HTML?
I tried something like window.IG.getActiveFeature() with no success.
11-29-2017 12:53 AM
are you doing this within Java (means you are loading your html page in the Java integrated browser)? If this is the case you must include the map.js (deployed in the content\scripts\map of you workflow application) in your page scripts.
The scripting object to communicate with the map is not available outside of Java context.
12-05-2017 11:21 PM
The problem was that I tried to use window.Smartclient before it was instancied.
By waiting for this object to be created, I can then use the JS API and interact with GMSC.
No need for map.js reference.