Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 38
Registered: ‎07-12-2016

Implementing a custom loading gif in Portal

Hi all,

 

Has anyone implemented a loading\waiting gif in Portal?

 

We have some custom javascript which uses $GP.map.featureInfo to override the default featureInfo and open a report in a ui browser window when a feature is clicked. The browser window takes a little while to open however and I'd like the user to know that it is loading, so a gif over the map window would be ideal.

 

Any help/ideas would be appreciated.

 

Thanks,

Jason

Technical Evangelist
Posts: 806
Registered: ‎09-11-2015

Re: Implementing a custom loading gif in Portal

Hi Jason,

 

How about injecting a floating DIV just before you call $GP.map.featureInfo function?

https://www.w3schools.com/howto/howto_css_loader.asp

 

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Contributor
Posts: 65
Registered: ‎02-10-2017

Re: Implementing a custom loading gif in Portal

Maybe you could try something like this:

 

var mask = new Ext.LoadMask(Ext.getBody(), {
msg: "YOUR_MESSAGE_HERE"
});

 

mask.show();

 

...override $GP.map.featureInfo

 

mask.hide();

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.