Skip to content

Instantly share code, notes, and snippets.

@mcenirm
Created September 12, 2011 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcenirm/1211576 to your computer and use it in GitHub Desktop.
Save mcenirm/1211576 to your computer and use it in GitHub Desktop.
Disable "powered by geomajas" watermark on a Geomajas MapWidget
public class Application implements EntryPoint {
...
public void onModuleLoad() {
...
final MapWidget map = new MapWidget("mapMain", "app") {
@Override
protected void initializationCallback(GetMapConfigurationResponse r) {
super.initializationCallback(r);
Map<String, MapAddon> mapAddons = getMapAddons();
for (MapAddon addon : mapAddons.values()) {
if (addon instanceof Watermark) {
unregisterMapAddon(addon);
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment