05-15-2019 06:48 AM
Hi All,
I wish to Set a map background color for a Certain project to black, How can it be done?
Thanks :-)
05-22-2019 09:57 AM
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.
05-23-2019 12:36 AM
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.
05-23-2019 12:48 AM
brilliant approach Jan! The layer can also be added to a "hidden" theme, so the users won't see it.
05-24-2019 02:41 AM
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