GMSC Discussions

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: 61
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 :-)

 

Highlighted
Technical Evangelist
Posts: 832
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.

Highlighted
Technical Evangelist
Posts: 1,382
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

Highlighted
Staff
Posts: 1,131
Registered: ‎10-18-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
Highlighted
Contributor
Posts: 67
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