Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 14
Registered: ‎06-17-2019
Accepted Solution

SC.Map.reloadFeatures vs. IG.reloadFeatures

Hi all,

 

because IG.reloadFeatures does not support the "then" syntax when reload has finished to continue with other stuff I am now using:

SC.Map.reloadFeatures

 

I am wondering if there are any technical differences between these 2 methods or are both executing the same stuff behind the scenes?

 

I use it like this:

...
if (itmSuccess.getValue() == 'J') {
IG.clearSelectedElements();
SC.Map.reloadFeatures(window.SmartClient.getVisibleFeatures()).then(function()
{
IG.closeWebBrowser();
});
...

Is it correct that way or should I rethink this approach?

 

 

Thx for help,

Bernhard

 

PS: I got inspired by this thread/answer:

https://community.hexagongeospatial.com/t5/GeoMedia-Smart-Client/Zoom-problem/m-p/25082#M1704

Highlighted
Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: SC.Map.reloadFeatures vs. IG.reloadFeatures

hi Bernhard,

 

the JS methods to communicate with the map are deprecated (still there at the moment, but it is not guaranteed they will be in the future).

Please use the SC namespace to do this job, a detailed description can be found here:

https://community.hexagongeospatial.com/t5/GMSC-Tutorials/Javascript-API/ta-p/25119

 

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.