Java Code Examples for org.gwtopenmaps.openlayers.client.MapOptions#removeDefaultControls()

The following examples show how to use org.gwtopenmaps.openlayers.client.MapOptions#removeDefaultControls() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OverviewMap.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void addMapControls(MapOptions mapOptions) {
   	// FIXME does not work .. navigation panel is still drawn
	mapOptions.removeDefaultControls();
	map.addControl(new ZoomIn());
	map.addControl(new ZoomOut());
}
 
Example 2
Source File: GeoMap.java    From geowe-core with GNU General Public License v3.0 4 votes vote down vote up
public GeoMap() {
	final MapOptions defaultMapOptions = new MapOptions();
	defaultMapOptions.removeDefaultControls();
	mapWidget = new MapWidget("100%", "100%", defaultMapOptions);		
	getMap().addControl(navHistory);
}
 
Example 3
Source File: OpenLayersMapWrapper.java    From SensorWebClient with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Override, if you want custom controls on the map. Per default the {@link Navigation} control is added
 * only.
 * 
 * @param mapOptions
 *        the map options where to set the map controls
 */
protected void addMapControls(MapOptions mapOptions) {
    mapOptions.removeDefaultControls();
    map.addControl(new Navigation());
}