Created
September 12, 2011 15:37
-
-
Save mcenirm/1211576 to your computer and use it in GitHub Desktop.
Disable "powered by geomajas" watermark on a Geomajas MapWidget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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