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
Highlighted
Contributor
Posts: 41
Registered: ‎05-30-2016

How to Set map background color to a different color than White?

Hi All,

I wish to Set a map background color for a Certain project to black, How can it be done? 

Thanks :-)

 

Staff
Posts: 512
Registered: ‎11-12-2015

Re: How to Set map background color to a different color than White?

Hi Gideon,

 

Changing the background color of the client application is currently not possible in GMSC.

You may wish to add a Product Idea to propose and consider such functionality.

Technical Evangelist
Posts: 1,034
Registered: ‎09-11-2015

Re: How to Set map background color to a different color than White?

You can possibly work-around this by creating a dummy single-geometry feature (bit larger than project bounds) in DB with black styling. A drawback is that it will display as a layer in the GMSC legend.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Staff
Posts: 966
Registered: ‎10-19-2015

Re: How to Set map background color to a different color than White?

brilliant approach Jan! The layer can also be added to a "hidden" theme, so the users won't see it. 

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Contributor
Posts: 62
Registered: ‎11-12-2015

Re: How to Set map background color to a different color than White?

If you are not afraid of programming, you can also do that with custom java plugin like this:

@Plugin(alias = "CustomBackground")
public class CustomBackgroundPlugin extends AbstractPlugin {

    @Action
    @Override
    public void loadOnStart() throws Exception {
if (ApplicationContext.getProject().getMetadata().getName()=="MyBlackProject")
{ GMap map = ApplicationContext.getBrowser().getMap(); map.setBackground(Color.BLACK);
} }
}

 

Tereza

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.